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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
cmp dword [ebp + 0x10], 0
jne 0x4033a1
mov dword [ebp - 0xac], 0x413880
mov dword [ebp - 0xa8], 0x8000
jmp 0x4033b0
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], edx
test eax, eax
js 0x4033c6
sub esp, 0xc
add eax, dword [0x435ab0]
push eax
call fcn.0040333c
add esp, 0xc
push eax
push eax
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.00403358
pop esi
test eax, eax
pop edi
je 0x4035e9
mov eax, dword [ebp - 0x10]
test eax, eax
jns 0x403585
call sub.KERNEL32.DLL_GetTickCount
xor esi, esi
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x10]
and eax, 0x7fffffff
mov dword [0x4238c0], 8
mov dword [0x423ddc], 0
mov dword [0x423dd8], 0
mov dword [0x42d468], 0x425460
mov dword [0x42d464], 0x425460
mov dword [0x42d460], 0x42d460
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x10], eax
jmp 0x403578
mov ebx, eax
cmp eax, 0x4000
jle 0x403455
mov ebx, 0x4000
push ecx
push ecx
push ebx
push 0x40f880
call fcn.00403358
pop edi
test eax, eax
pop edx
je 0x4035e9
sub dword [ebp - 0x10], ebx
mov dword [0x4238b0], 0x40f880
mov dword [0x4238b4], ebx
sub esp, 0xc
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xa8]
mov dword [0x4238b8], edx
mov dword [0x4238bc], eax
push 0x4238b0
call fcn.00407e98
add esp, 0xc
mov dword [ebp - 0xa0], eax
test eax, eax
jns 0x4034ba
mov esi, 0xfffffffc
jmp 0x4035f5
mov ebx, dword [0x4238b8]
sub ebx, dword [ebp - 0xac]
call sub.KERNEL32.DLL_GetTickCount
test byte [0x435a3c], 1
mov edi, eax
je 0x40352b
sub eax, dword [ebp - 0xa4]
cmp eax, 0xc8
ja 0x4034e9
cmp dword [ebp - 0x10], 0
jne 0x40352b
push ecx
mov eax, dword [ebp - 0xb0]
push dword [ebp - 0xb0]
sub eax, dword [ebp - 0x10]
push 0x64
push eax
call sub.KERNEL32.DLL_MulDiv
lea edx, [ebp - 0x90]
push eax
push 0x40b14c
push edx
call sub.USER32.dll_wsprintfW
pop eax
lea eax, [ebp - 0x90]
pop edx
push eax
push 0
call fcn.004042ef
mov dword [ebp - 0xa4], edi
pop edi
pop eax
test ebx, ebx
je 0x403578
cmp dword [ebp + 0x10], 0
jne 0x403552
push ecx
push ebx
push dword [ebp - 0xac]
push dword [ebp + 0xc]
call fcn.00406e7e
pop edx
test eax, eax
je 0x4035f0
add esi, ebx
jmp 0x403566
sub dword [ebp - 0xa8], ebx
mov edx, dword [0x4238b8]
add esi, ebx
mov dword [ebp - 0xac], edx
cmp dword [ebp - 0xa0], 1
je 0x4035f5
jmp 0x40347f
mov eax, dword [ebp - 0x10]
test eax, eax
jg 0x403447
jmp 0x4035f5
xor esi, esi
cmp dword [ebp + 0x10], 0
je 0x4035c7
jmp 0x4035d0
mov ebx, dword [ebp - 0xa8]
cmp ebx, eax
jle 0x40359b
mov ebx, eax
push edi
push edi
push ebx
push 0x40f880
call fcn.00403358
pop edx
test eax, eax
pop ecx
je 0x4035e9
push eax
push ebx
push 0x40f880
push dword [ebp + 0xc]
call fcn.00406e7e
pop edi
test eax, eax
je 0x4035f0
sub dword [ebp - 0x10], ebx
add esi, ebx
mov eax, dword [ebp - 0x10]
test eax, eax
jg 0x40358f
jmp 0x4035f5
cmp ebx, eax
jle 0x4035d6
mov ebx, eax
push esi
push esi
push ebx
mov esi, ebx
push dword [ebp + 0x10]
call fcn.00403358
pop edx
test eax, eax
pop ecx
jne 0x4035f5
mov esi, 0xfffffffd
jmp 0x4035f5
mov esi, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10