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

Disassembly:
push ebp
sub esp, 0x58
lea ebp, [esp - 4]
mov eax, dword [0x4960a8]
xor eax, ebp
mov dword [ebp + 0x58], eax
push 0x40
mov eax, 0x46d685
call fcn.0045d47b
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.0042a635
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp + 4]
mov dword [ebp + 0x34], edi
mov byte [ebp - 4], 1
call fcn.00457d6b
mov byte [ebp - 4], 2
cmp dword [ebp + 0x6c], edi
je 0x42bad4
push dword [ebp + 0x64]
lea ecx, [ebp + 4]
call fcn.0042b8d0
lea ecx, [ebp + 4]
cmp edi, dword [ebp + 0x64]
jae 0x42baca
lea eax, [esi + edi*4]
push eax
call fcn.0042ba03
inc edi
jmp 0x42bab6
push 0
call fcn.0042b95c
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x28], eax
mov ebx, 0x472540
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.00441165
add esp, 0x10
test al, al
jne 0x42bb08
mov dword [ebp + 0x34], 0x102
jmp 0x42be36
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 0x42be36
cmp eax, 0xffffffff
jne 0x42bb81
mov eax, dword [0x497644]
cmp eax, 0x497644
je 0x42be36
test byte [eax + 0x1c], 1
je 0x42be36
cmp byte [eax + 0x19], 2
jb 0x42be36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x497644]
push ebx
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0042a72b
add esp, 0x14
jmp 0x42be36
cmp dword [ebp + 0x34], 0xc0
je 0x42be36
cmp dword [ebp + 0x34], esi
jne 0x42bd93
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 0x42bd44
inc dword [ebp + 0x2c]
cmp dword [ebp + 0x40], 0x12
jne 0x42bc37
mov eax, dword [0x497644]
mov esi, 0x497644
cmp eax, esi
je 0x42bbfd
test byte [eax + 0x1c], 1
je 0x42bbfd
cmp byte [eax + 0x19], 4
jb 0x42bbfd
push ebx
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0040d1fe
mov eax, dword [0x497644]
add esp, 0x10
mov ecx, dword [ebp]
cmp dword [ecx + 8], edi
je 0x42bc37
cmp eax, esi
je 0x42bc2b
test byte [eax + 0x1c], 1
je 0x42bc2b
cmp byte [eax + 0x19], 4
jb 0x42bc2b
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0040d1fe
mov eax, dword [0x497644]
add esp, 0x10
mov dword [ebp + 0x20], 1
jmp 0x42bd49
cmp dword [ebp + 0x3c], edi
jne 0x42bca5
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 0x42bc8b
cmp dword [ebp + 0x40], 0x12
je 0x42bc8b
mov eax, dword [0x497644]
cmp eax, 0x497644
je 0x42bc8b
test byte [eax + 0x1c], 1
je 0x42bc8b
cmp byte [eax + 0x19], 2
jb 0x42bc8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0xe
mov eax, dword [0x497644]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0042a72b
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 0x42bcef
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x42bcf5
push dword [ebp + 0x3c]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
mov esi, eax
cmp esi, edi
jne 0x42bc3f
push edi
push edi
push edi
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x42bc8b
cmp dword [ebp + 0x40], 0x12
je 0x42bc8b
mov eax, dword [0x497644]
cmp eax, 0x497644
je 0x42bc8b
test byte [eax + 0x1c], 1
je 0x42bc8b
cmp byte [eax + 0x19], 2
jb 0x42bc8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0xd
jmp 0x42bc78
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.0042bfa3
pop ecx
test eax, eax
je 0x42bd15
mov dword [ebp + 0x34], esi
jmp 0x42bd44
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.00441165
add esp, 0x10
test al, al
jne 0x42bbae
mov dword [ebp + 0x34], 0x102
mov dword [ebp + 0x20], 1
mov eax, dword [0x497644]
cmp dword [ebp + 0x2c], edi
jne 0x42bd7e
cmp eax, 0x497644
je 0x42bd7e
test byte [eax + 0x1c], 1
je 0x42bd7e
cmp byte [eax + 0x19], 4
jb 0x42bd7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x497644]
push ebx
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0042a72b
add esp, 0x14
cmp dword [ebp + 0x20], edi
jne 0x42be36
mov eax, dword [ebp + 0x64]
cmp dword [ebp + 0x34], eax
je 0x42badf
push dword [ebp + 0x34]
call fcn.0042bfa3
pop ecx
test eax, eax
je 0x42be0d
cmp dword [ebp + 0x6c], 0
je 0x42be36
push dword [ebp + 0x34]
call fcn.0042bfbb
pop ecx
mov esi, eax
lea eax, [ebp + 4]
push eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x44]
call fcn.0042b60c
push esi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0042b5df
push dword [eax + 4]
lea ecx, [ebp + 4]
push dword [eax]
lea eax, [ebp + 0x1c]
push eax
call fcn.0042b6bc
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
test eax, 0xfffffffc
je 0x42be36
push 0
lea ecx, [ebp + 4]
call fcn.0042b95c
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
sar eax, 2
mov dword [ebp + 0x64], eax
jmp 0x42badf
mov eax, dword [0x497644]
cmp eax, 0x497644
je 0x42be36
test byte [eax + 0x1c], 1
je 0x42be36
cmp byte [eax + 0x19], 2
jb 0x42be36
push ebx
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0040d1fe
add esp, 0x10
lea ecx, [ebp + 4]
call fcn.00457462
push dword [ebp + 4]
call fcn.0041cd48
pop ecx
lea ecx, [ebp - 0x34]
call fcn.0042a5f3
test al, al
je 0x42bf5f
or esi, 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0042a615
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.00459871
add ebp, 0x5c
leave
ret 0x14
mov esi, dword [ebp + 0x34]
jmp 0x42be5a