Function at 0x404390
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x54
mov dword [esp + 0x20], 2
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x40], eax
push 5
call fcn.00413a40
mov dword [esp + 0x48], eax
add esp, 4
cmp dword [esp + 0x70], 0
je 0x4043c8
mov eax, dword [esp + 0x70]
mov dword [eax], 0
cmp dword [esp + 0x7c], 0
je 0x4043d9
mov eax, dword [esp + 0x7c]
mov dword [eax], 0
mov esi, dword [esp + 0x80]
test esi, esi
je 0x4043e7
mov byte [esi], 0
xor ecx, ecx
cmp dword [esp + 0x68], ecx
je 0x4047eb
cmp dword [esp + 0x7c], ecx
je 0x4047eb
test esi, esi
je 0x4047eb
mov eax, dword [esp + 0x68]
cmp byte [eax], cl
je 0x4047f3
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ecx
cmp dword [0x5052a8], ecx
jne 0x404453
push 0x5052a8
push 0x500e28
push 0x500e18
call fcn.0048fe20
push eax
call fcn.004e5870
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
jne 0x40451c
lea eax, [esp + 0x24]
mov ecx, dword [0x5052a8]
push eax
push 0x500e38
push ecx
mov eax, dword [ecx]
call dword [eax]
cmp dword [esp + 0x14], 0
jne 0x40451c
lea eax, [esp + 0x18]
push eax
push 0x500d38
push 0x500d28
call fcn.0048fe20
push eax
call fcn.004e5870
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4044b7
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push 0x500c48
push ecx
mov eax, dword [ecx]
call dword [eax]
mov dword [esp + 0x14], eax
xor edi, edi
cmp dword [esp + 0x14], edi
jne 0x40451c
push 0x42
push 0x200
call fcn.00488d30
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x4044fa
mov dword [esp + 0x34], 8
mov eax, dword [esp + 0x18]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], edi
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [esp + 0x1c], edi
jmp 0x40451c
push 0x400
push ebx
call fcn.00489000
add esp, 4
push eax
push ebx
mov eax, dword [esp + 0x24]
push 1
mov ebx, dword [eax]
push 0
push eax
call dword [ebx + 0xc]
mov dword [esp + 0x14], eax
xor ebx, ebx
cmp dword [esp + 0x34], ebx
jne 0x404754
cmp dword [esp + 0x14], ebx
jne 0x404754
cmp dword [esp + 0x18], ebx
je 0x404754
lea eax, [esp + 0x28]
push eax
push 0x500e08
push 0x500e68
call fcn.0048fe20
push eax
call fcn.004e5870
test eax, eax
jne 0x404754
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x28]
push eax
push 0x500e58
push ecx
mov eax, dword [ecx]
call dword [eax]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x404754
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x68]
push eax
push ecx
mov eax, dword [0x5052a8]
mov ebp, dword [eax]
push edx
push eax
call dword [ebp + 0xc]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x404754
mov edi, dword [esp + 0x6c]
mov byte [esp + 0x13], bl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], ebx
cmp edi, 1
sbb ebp, ebp
call fcn.004d9ae0
and ebp, 0x7530
mov eax, dword [esp + 0x20]
push ebp
push eax
mov ebp, dword [eax]
call dword [ebp + 0xc]
cmp dword [esp + 0x14], ebx
jne 0x4046e0
cmp byte [esp + 0x13], bl
jne 0x4046e0
cmp byte [esi], bl
jne 0x4046e0
cmp dword [esp + 0x38], ebx
jne 0x4046e0
mov ebp, dword [esp + 0x2c]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x30]
push esi
lea eax, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x2c], ebp
jle 0x40462a
call fcn.004d9b10
cmp dword [esp + 0x24], ebx
je 0x40463a
mov eax, dword [esp + 0x24]
push eax
mov ebp, dword [eax]
call dword [ebp + 0x10]
cmp byte [esp + 0x13], bl
jne 0x4046bd
cmp dword [esp + 0x70], ebx
jne 0x40465a
cmp dword [esp + 0x2c], ebx
jg 0x4046e0
cmp dword [esp + 0x3c], ebx
jg 0x4046e0
cmp byte [esi], bl
jne 0x404694
call fcn.004d7520
test eax, eax
jne 0x4046c9
lea eax, [esp + 0x48]
push 1
push 0x100
push 0x100
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x404694
cmp dword [esp + 0x4c], 0x100
jne 0x404694
cmp dword [esp + 0x50], 0x1b
je 0x4046ce
test edi, edi
jle 0x4046a6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x40]
cmp eax, edi
jg 0x4046d3
cmp byte [esi], bl
je 0x4046ae
test edi, edi
je 0x4046d8
push 4
call fcn.004d2200
add esp, 4
call fcn.00461b20
cmp dword [esp + 0x14], ebx
je 0x4045dc
jmp 0x4046e0
mov byte [esi], 1
jmp 0x4046e0
mov byte [esi], 1
jmp 0x4046e0
mov byte [esi], 1
jmp 0x4046e0
mov dword [esp + 0x34], 2
push 0
mov eax, dword [0x5052a8]
push eax
mov ebx, dword [eax]
call dword [ebx + 0x18]
call fcn.004d9b70
cmp dword [esp + 0x34], 0
jne 0x404754
cmp dword [esp + 0x38], 0
jne 0x404754
cmp dword [esp + 0x2c], 0
jle 0x404754
cmp byte [esp + 0x13], 0
jne 0x404715
cmp dword [esp + 0x70], 0
jne 0x404754
cmp dword [esp + 0x70], 0
je 0x40474c
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x10]
test eax, eax
jne 0x404754
mov eax, dword [esp + 0x70]
cmp dword [eax], 0
je 0x404754
mov eax, dword [esp + 0x7c]
cmp dword [eax], 0
je 0x404754
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
mov dword [esp + 0x30], 0
cmp dword [esp + 0x24], 0
je 0x404765
mov eax, dword [esp + 0x24]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [esp + 0x18], 0
je 0x404776
mov eax, dword [esp + 0x18]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [esp + 0x1c], 0
je 0x404787
mov eax, dword [esp + 0x1c]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [esp + 0x28], 0
je 0x404798
mov eax, dword [esp + 0x28]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [esp + 0x20], 0
je 0x4047a9
mov eax, dword [esp + 0x20]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
cmp dword [0x5052a8], 0
je 0x4047c7
mov eax, dword [0x5052a8]
push eax
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [0x5052a8], 0
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4047f3
cmp dword [esp + 0x30], 0
jne 0x4047f3
mov ecx, dword [esp + 0x78]
push ecx
push eax
mov eax, dword [esp + 0x70]
push eax
call fcn.00404350
add esp, 0xc
jmp 0x4047f3
mov dword [esp + 0x30], 0x1f44
mov eax, dword [esp + 0x44]
push eax
call fcn.00413a40
mov eax, dword [esp + 0x34]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x54
ret