Function at 0x402160
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4118c6
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x41a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004029e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
cmp dword [0x41a820], 0
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x4021e2
call ebx
push eax
mov dword [0x41aaa0], 1
call edi
add esp, 4
mov dword [0x41a820], 1
lea ecx, [esi + 0x10]
mov dword [ebp - 0x1c], 6
mov dword [ebp - 0x18], ecx
jmp 0x4021f4
mov esi, dword [ebp - 0x14]
cmp dword [0x41aaa0], 0
jne 0x40220f
mov dword [0x41aaa0], 1
call ebx
push eax
call edi
add esp, 4
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x80000001
jns 0x402221
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x4022f0
cmp dword [0x41aaa0], 0
jne 0x402240
mov dword [0x41aaa0], eax
call ebx
push eax
call edi
add esp, 4
mov eax, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call eax
cdq
mov ecx, 0x1a
idiv ecx
add edx, 0x61
mov dword [ebp - 4], 0x13
lea ecx, [ebp - 0x48]
call fcn.004029e0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x48]
movsx ax, dl
mov dword [ebp - 0x48], vtable.CWString.0
movzx eax, ax
push eax
call fcn.0040fc50
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x48]
or dword [ebp - 0x10], 8
lea ecx, [ebp - 0xa0]
push eax
mov edx, esi
call fcn.00410210
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edx + 8], ecx
lea ecx, [edx + 0x10]
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 0x10]
push eax
call fcn.00401760
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xa0]
call fcn.004026c0
and dword [ebp - 0x10], 0xfffffff7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
jmp 0x4023b6
cmp dword [0x41aaa0], 0
jne 0x40230b
mov dword [0x41aaa0], 1
call ebx
push eax
call edi
add esp, 4
mov eax, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call eax
cdq
mov ecx, 0x1a
idiv ecx
add edx, 0x41
mov dword [ebp - 4], 0x16
lea ecx, [ebp - 0x74]
call fcn.004029e0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x74]
movsx ax, dl
mov dword [ebp - 0x74], vtable.CWString.0
movzx eax, ax
push eax
call fcn.0040fc50
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x74]
or dword [ebp - 0x10], 0x10
lea ecx, [ebp - 0xcc]
push eax
mov edx, esi
call fcn.00410210
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edx + 8], ecx
lea ecx, [edx + 0x10]
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 0x10]
push eax
call fcn.00401760
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xcc]
call fcn.004026c0
and dword [ebp - 0x10], 0xffffffef
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.004026c0
sub dword [ebp - 0x1c], 1
jne 0x4021f1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4