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

Disassembly:
push ebp
sub esp, 0x58
lea ebp, [esp - 4]
mov eax, dword [0x4c3360]
xor eax, ebp
mov dword [ebp + 0x58], eax
push 0x40
mov eax, 0x49a0e4
call fcn.00454d31
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.0043d9d0
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp + 4]
mov dword [ebp + 0x34], edi
mov byte [ebp - 4], 1
call fcn.00477507
mov byte [ebp - 4], 2
cmp dword [ebp + 0x6c], edi
je 0x441417
push dword [ebp + 0x64]
lea ecx, [ebp + 4]
call fcn.00441213
lea ecx, [ebp + 4]
cmp edi, dword [ebp + 0x64]
jae 0x44140d
lea eax, [esi + edi*4]
push eax
call fcn.00441346
inc edi
jmp 0x4413f9
push 0
call fcn.0044129f
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x28], eax
mov ebx, 0x4a4c88
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.004440de
add esp, 0x10
test al, al
jne 0x44144b
mov dword [ebp + 0x34], 0x102
jmp 0x441779
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 0x441779
cmp eax, 0xffffffff
jne 0x4414c4
mov eax, dword [0x4c6094]
cmp eax, 0x4c6094
je 0x441779
test byte [eax + 0x1c], 1
je 0x441779
cmp byte [eax + 0x19], 2
jb 0x441779
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x4c6094]
push ebx
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00425267
add esp, 0x14
jmp 0x441779
cmp dword [ebp + 0x34], 0xc0
je 0x441779
cmp dword [ebp + 0x34], esi
jne 0x4416d6
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 0x441687
inc dword [ebp + 0x2c]
cmp dword [ebp + 0x40], 0x12
jne 0x44157a
mov eax, dword [0x4c6094]
mov esi, 0x4c6094
cmp eax, esi
je 0x441540
test byte [eax + 0x1c], 1
je 0x441540
cmp byte [eax + 0x19], 4
jb 0x441540
push ebx
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0042524a
mov eax, dword [0x4c6094]
add esp, 0x10
mov ecx, dword [ebp]
cmp dword [ecx + 8], edi
je 0x44157a
cmp eax, esi
je 0x44156e
test byte [eax + 0x1c], 1
je 0x44156e
cmp byte [eax + 0x19], 4
jb 0x44156e
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0042524a
mov eax, dword [0x4c6094]
add esp, 0x10
mov dword [ebp + 0x20], 1
jmp 0x44168c
cmp dword [ebp + 0x3c], edi
jne 0x4415e8
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 0x4415ce
cmp dword [ebp + 0x40], 0x12
je 0x4415ce
mov eax, dword [0x4c6094]
cmp eax, 0x4c6094
je 0x4415ce
test byte [eax + 0x1c], 1
je 0x4415ce
cmp byte [eax + 0x19], 2
jb 0x4415ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0xe
mov eax, dword [0x4c6094]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00425267
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 0x441632
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x441638
push dword [ebp + 0x3c]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
mov esi, eax
cmp esi, edi
jne 0x441582
push edi
push edi
push edi
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4415ce
cmp dword [ebp + 0x40], 0x12
je 0x4415ce
mov eax, dword [0x4c6094]
cmp eax, 0x4c6094
je 0x4415ce
test byte [eax + 0x1c], 1
je 0x4415ce
cmp byte [eax + 0x19], 2
jb 0x4415ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0xd
jmp 0x4415bb
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.00440c72
pop ecx
test eax, eax
je 0x441658
mov dword [ebp + 0x34], esi
jmp 0x441687
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.004440de
add esp, 0x10
test al, al
jne 0x4414f1
mov dword [ebp + 0x34], 0x102
mov dword [ebp + 0x20], 1
mov eax, dword [0x4c6094]
cmp dword [ebp + 0x2c], edi
jne 0x4416c1
cmp eax, 0x4c6094
je 0x4416c1
test byte [eax + 0x1c], 1
je 0x4416c1
cmp byte [eax + 0x19], 4
jb 0x4416c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x4c6094]
push ebx
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00425267
add esp, 0x14
cmp dword [ebp + 0x20], edi
jne 0x441779
mov eax, dword [ebp + 0x64]
cmp dword [ebp + 0x34], eax
je 0x441422
push dword [ebp + 0x34]
call fcn.00440c72
pop ecx
test eax, eax
je 0x441750
cmp dword [ebp + 0x6c], 0
je 0x441779
push dword [ebp + 0x34]
call fcn.00440c8a
pop ecx
mov esi, eax
lea eax, [ebp + 4]
push eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x44]
call fcn.00440f6f
push esi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00496859
push dword [eax + 4]
lea ecx, [ebp + 4]
push dword [eax]
lea eax, [ebp + 0x1c]
push eax
call fcn.0044101f
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
test eax, 0xfffffffc
je 0x441779
push 0
lea ecx, [ebp + 4]
call fcn.0044129f
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
sar eax, 2
mov dword [ebp + 0x64], eax
jmp 0x441422
mov eax, dword [0x4c6094]
cmp eax, 0x4c6094
je 0x441779
test byte [eax + 0x1c], 1
je 0x441779
cmp byte [eax + 0x19], 2
jb 0x441779
push ebx
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0042524a
add esp, 0x10
lea ecx, [ebp + 4]
call fcn.0048aeb0
push dword [ebp + 4]
call fcn.0044fc83
pop ecx
lea ecx, [ebp - 0x34]
call fcn.0043d9a3
test al, al
je 0x4418a2
or esi, 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0043d9b0
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.0044fc8e
add ebp, 0x5c
leave
ret 0x14
mov esi, dword [ebp + 0x34]
jmp 0x44179d