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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ebp - 0xc], esi
cmp edi, ebx
jne 0x403145
mov dword [ebp - 0xc], 0x8000
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
cmp edi, ebx
jne 0x403159
mov dword [ebp - 0x10], 0x417548
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004030e5
push dword [ebp + 8]
lea eax, [ebp + 0x1c]
push 4
push eax
call fcn.004030b0
add esp, 0x18
test eax, eax
jne 0x403184
push 0xfffffffffffffffd
pop eax
jmp 0x4033ea
test dword [ebp + 0x1c], 0x80000000
je 0x403311
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp + 0x1c], 0x7fffffff
mov dword [ebp - 0x14], eax
mov eax, 0x431100
mov dword [0x439108], eax
mov dword [0x439104], eax
mov eax, dword [ebp + 0x1c]
mov dword [0x42f560], 8
mov dword [0x42fa7c], ebx
mov dword [0x42fa78], ebx
mov dword [0x439100], 0x439100
mov dword [ebp + 0x10], eax
jle 0x4033c4
mov ebx, 0x413548
mov esi, 0x4000
cmp dword [ebp + 0x1c], esi
jge 0x4031ee
mov esi, dword [ebp + 0x1c]
push dword [ebp + 8]
push esi
push ebx
call fcn.004030b0
add esp, 0xc
test eax, eax
je 0x40317c
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x403227
cmp dword [0x43f15c], eax
je 0x403227
cmp dword [0x43f150], eax
jne 0x403227
push esi
push ebx
push dword [ebp - 8]
call fcn.004069ea
mov dword [ebp - 8], eax
sub dword [ebp + 0x1c], esi
mov dword [0x42f550], ebx
mov dword [0x42f554], esi
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push 0x42f550
mov dword [0x42f558], edi
mov dword [0x42f55c], eax
call fcn.00407353
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x403303
mov esi, dword [0x42f558]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x43f1f4], 1
mov edi, eax
je 0x4032b8
sub eax, dword [ebp - 0x14]
cmp eax, 0xc8
ja 0x403285
cmp dword [ebp + 0x1c], 0
jne 0x4032b8
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0x1c]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x58]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push 0
call fcn.00404eea
mov dword [ebp - 0x14], edi
test esi, esi
je 0x4032f4
cmp dword [ebp + 0x18], 0
jne 0x4032d7
push esi
push dword [ebp - 0x10]
push dword [ebp + 0x14]
call fcn.00405e8a
test eax, eax
je 0x40330a
add dword [ebp - 4], esi
jmp 0x4032e5
mov eax, dword [0x42f558]
add dword [ebp - 4], esi
sub dword [ebp - 0xc], esi
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], 1
jne 0x403236
jmp 0x4033c4
cmp dword [ebp + 0x1c], 0
jg 0x4031e1
jmp 0x4033c4
push 0xfffffffffffffffc
jmp 0x40317e
push 0xfffffffffffffffe
jmp 0x40317e
cmp edi, ebx
jne 0x403382
cmp dword [ebp + 0x1c], ebx
jle 0x4033c4
mov ebx, 0x413548
mov esi, dword [ebp - 0xc]
cmp dword [ebp + 0x1c], esi
jge 0x40332e
mov esi, dword [ebp + 0x1c]
push dword [ebp + 8]
push esi
push ebx
call fcn.004030b0
add esp, 0xc
test eax, eax
je 0x40317c
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x403367
cmp dword [0x43f15c], edi
je 0x403367
cmp dword [0x43f150], edi
jne 0x403367
push esi
push ebx
push dword [ebp - 8]
call fcn.004069ea
mov dword [ebp - 8], eax
push esi
push ebx
push dword [ebp + 0x14]
call fcn.00405e8a
test eax, eax
je 0x40330a
add dword [ebp - 4], esi
sub dword [ebp + 0x1c], esi
cmp dword [ebp + 0x1c], edi
jg 0x403323
jmp 0x4033c4
cmp dword [ebp + 0x1c], esi
jge 0x40338a
mov esi, dword [ebp + 0x1c]
push dword [ebp + 8]
push esi
push edi
call fcn.004030b0
add esp, 0xc
test eax, eax
je 0x40317c
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x4033c1
cmp dword [0x43f15c], eax
je 0x4033c1
cmp dword [0x43f150], eax
jne 0x4033c1
push esi
push edi
push eax
call fcn.004069ea
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x4033e7
cmp dword [0x43f15c], eax
je 0x4033e7
cmp dword [0x43f150], eax
jne 0x4033e7
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x20]
jne 0x40317c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x1c