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

Disassembly:
push ebp
sub esp, 0x58
lea ebp, [esp - 4]
mov eax, dword [0x485df0]
xor eax, ebp
mov dword [ebp + 0x58], eax
push 0x40
mov eax, 0x464ef1
call fcn.0043e9db
mov dword [ebp], ecx
mov esi, dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x34]
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x30], esi
call fcn.00424050
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp + 4]
mov dword [ebp + 0x34], edi
mov byte [ebp - 4], 1
call fcn.0043b8bf
mov byte [ebp - 4], 2
cmp dword [ebp + 0x6c], edi
je 0x42b7ee
push dword [ebp + 0x64]
lea ecx, [ebp + 4]
call fcn.0042b5ea
lea ecx, [ebp + 4]
cmp edi, dword [ebp + 0x64]
jae 0x42b7e4
lea eax, [esi + edi*4]
push eax
call fcn.0042b71d
inc edi
jmp 0x42b7d0
push 0
call fcn.0042b676
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x28], eax
mov ebx, 0x476fd0
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp + 0x24]
call fcn.0043454b
add esp, 0x10
test al, al
jne 0x42b822
mov dword [ebp + 0x34], 0x102
jmp 0x42bb50
mov eax, dword [ebp + 0x74]
mov esi, dword [ebp + 0x64]
neg eax
sbb eax, eax
and eax, 2
push eax
push 0x4ff
push dword [ebp + 0x28]
push dword [ebp + 0x30]
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov dword [ebp + 0x34], eax
cmp eax, 0x102
je 0x42bb50
cmp eax, 0xffffffff
jne 0x42b89b
mov eax, dword [0x485d60]
cmp eax, 0x485d60
je 0x42bb50
test byte [eax + 0x1c], 1
je 0x42bb50
cmp byte [eax + 0x19], 2
jb 0x42bb50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x485d60]
push ebx
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00431cff
add esp, 0x14
jmp 0x42bb50
cmp dword [ebp + 0x34], 0xc0
je 0x42bb50
cmp dword [ebp + 0x34], esi
jne 0x42baad
and dword [ebp + 0x3c], 0
and dword [ebp + 0x20], 0
push 6
xor eax, eax
pop ecx
lea edi, [ebp + 0x40]
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp + 0x2c], edi
push edi
push edi
push edi
push edi
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x42ba5e
inc dword [ebp + 0x2c]
cmp dword [ebp + 0x40], 0x12
jne 0x42b951
mov eax, dword [0x485d60]
mov esi, 0x485d60
cmp eax, esi
je 0x42b917
test byte [eax + 0x1c], 1
je 0x42b917
cmp byte [eax + 0x19], 4
jb 0x42b917
push ebx
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041646b
mov eax, dword [0x485d60]
add esp, 0x10
mov ecx, dword [ebp]
cmp dword [ecx + 8], edi
je 0x42b951
cmp eax, esi
je 0x42b945
test byte [eax + 0x1c], 1
je 0x42b945
cmp byte [eax + 0x19], 4
jb 0x42b945
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041646b
mov eax, dword [0x485d60]
add esp, 0x10
mov dword [ebp + 0x20], 1
jmp 0x42ba63
cmp dword [ebp + 0x3c], edi
jne 0x42b9bf
xor esi, esi
inc esi
push edi
push edi
push edi
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x42b9a5
cmp dword [ebp + 0x40], 0x12
je 0x42b9a5
mov eax, dword [0x485d60]
cmp eax, 0x485d60
je 0x42b9a5
test byte [eax + 0x1c], 1
je 0x42b9a5
cmp byte [eax + 0x19], 2
jb 0x42b9a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0xe
mov eax, dword [0x485d60]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00431cff
add esp, 0x14
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp + 0x3c]
push eax
cmp esi, edi
jne 0x42ba09
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x42ba0f
push dword [ebp + 0x3c]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
mov esi, eax
cmp esi, edi
jne 0x42b959
push edi
push edi
push edi
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x42b9a5
cmp dword [ebp + 0x40], 0x12
je 0x42b9a5
mov eax, dword [0x485d60]
cmp eax, 0x485d60
je 0x42b9a5
test byte [eax + 0x1c], 1
je 0x42b9a5
cmp byte [eax + 0x19], 2
jb 0x42b9a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0xd
jmp 0x42b992
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push dword [ebp + 0x30]
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
push esi
call fcn.0042b115
pop ecx
test eax, eax
je 0x42ba2f
mov dword [ebp + 0x34], esi
jmp 0x42ba5e
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp + 0x24]
call fcn.0043454b
add esp, 0x10
test al, al
jne 0x42b8c8
mov dword [ebp + 0x34], 0x102
mov dword [ebp + 0x20], 1
mov eax, dword [0x485d60]
cmp dword [ebp + 0x2c], edi
jne 0x42ba98
cmp eax, 0x485d60
je 0x42ba98
test byte [eax + 0x1c], 1
je 0x42ba98
cmp byte [eax + 0x19], 4
jb 0x42ba98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x485d60]
push ebx
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00431cff
add esp, 0x14
cmp dword [ebp + 0x20], edi
jne 0x42bb50
mov eax, dword [ebp + 0x64]
cmp dword [ebp + 0x34], eax
je 0x42b7f9
push dword [ebp + 0x34]
call fcn.0042b115
pop ecx
test eax, eax
je 0x42bb27
cmp dword [ebp + 0x6c], 0
je 0x42bb50
push dword [ebp + 0x34]
call fcn.0042b12d
pop ecx
mov esi, eax
lea eax, [ebp + 4]
push eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x44]
call fcn.0043b069
push esi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0041b885
push dword [eax + 4]
lea ecx, [ebp + 4]
push dword [eax]
lea eax, [ebp + 0x1c]
push eax
call fcn.0042b3d6
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
test eax, 0xfffffffc
je 0x42bb50
push 0
lea ecx, [ebp + 4]
call fcn.0042b676
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
sar eax, 2
mov dword [ebp + 0x64], eax
jmp 0x42b7f9
mov eax, dword [0x485d60]
cmp eax, 0x485d60
je 0x42bb50
test byte [eax + 0x1c], 1
je 0x42bb50
cmp byte [eax + 0x19], 2
jb 0x42bb50
push ebx
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041646b
add esp, 0x10
lea ecx, [ebp + 4]
call fcn.0045b9ec
push dword [ebp + 4]
call fcn.0043d831
pop ecx
lea ecx, [ebp - 0x34]
call fcn.004249cc
test al, al
je 0x42bc79
or esi, 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00424030
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x58]
xor ecx, ebp
call fcn.0043e999
add ebp, 0x5c
leave
ret 0x14
mov esi, dword [ebp + 0x34]
jmp 0x42bb74