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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
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 0x40326c
mov dword [ebp - 0xc], 0x8000
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], edi
cmp edi, ebx
jne 0x403280
mov dword [ebp - 0x10], 0x419968
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00403209
push dword [ebp + 8]
lea eax, [ebp + 0x1c]
push 4
push eax
call fcn.004031d4
add esp, 0x18
test eax, eax
jne 0x4032ab
push 0xfffffffffffffffd
pop eax
jmp 0x403517
test dword [ebp + 0x1c], 0x80000000
je 0x40343e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp + 0x1c], 0x7fffffff
mov dword [ebp - 0x14], eax
mov eax, 0x423520
mov dword [0x42b528], eax
mov dword [0x42b524], eax
mov eax, dword [ebp + 0x1c]
mov dword [0x421980], 8
mov dword [0x421e9c], ebx
mov dword [0x421e98], ebx
mov dword [0x42b520], 0x42b520
mov dword [ebp + 0x10], eax
jle 0x4034f1
mov ebx, 0x415968
mov esi, 0x4000
cmp dword [ebp + 0x1c], esi
jge 0x403315
mov esi, dword [ebp + 0x1c]
push dword [ebp + 8]
push esi
push ebx
call fcn.004031d4
add esp, 0xc
test eax, eax
je 0x4032a3
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x40334e
cmp dword [0x445a9c], eax
je 0x40334e
cmp dword [0x445a90], eax
jne 0x40334e
push esi
push ebx
push dword [ebp - 8]
call fcn.00406d25
mov dword [ebp - 8], eax
sub dword [ebp + 0x1c], esi
mov dword [0x421970], ebx
mov dword [0x421974], esi
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push 0x421970
mov dword [0x421978], edi
mov dword [0x42197c], eax
call fcn.0040768e
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x403430
mov esi, dword [0x421978]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x445b34], 1
mov edi, eax
je 0x4033e5
sub eax, dword [ebp - 0x14]
cmp eax, 0xc8
ja 0x4033ac
cmp dword [ebp + 0x1c], 0
jne 0x4033e5
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 - 0x98]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
push 0
call fcn.004050bc
mov dword [ebp - 0x14], edi
test esi, esi
je 0x403421
cmp dword [ebp + 0x18], 0
jne 0x403404
push esi
push dword [ebp - 0x10]
push dword [ebp + 0x14]
call fcn.004060a3
test eax, eax
je 0x403437
add dword [ebp - 4], esi
jmp 0x403412
mov eax, dword [0x421978]
add dword [ebp - 4], esi
sub dword [ebp - 0xc], esi
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], 1
jne 0x40335d
jmp 0x4034f1
cmp dword [ebp + 0x1c], 0
jg 0x403308
jmp 0x4034f1
push 0xfffffffffffffffc
jmp 0x4032a5
push 0xfffffffffffffffe
jmp 0x4032a5
cmp edi, ebx
jne 0x4034af
cmp dword [ebp + 0x1c], ebx
jle 0x4034f1
mov ebx, 0x415968
mov esi, dword [ebp - 0xc]
cmp dword [ebp + 0x1c], esi
jge 0x40345b
mov esi, dword [ebp + 0x1c]
push dword [ebp + 8]
push esi
push ebx
call fcn.004031d4
add esp, 0xc
test eax, eax
je 0x4032a3
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x403494
cmp dword [0x445a9c], edi
je 0x403494
cmp dword [0x445a90], edi
jne 0x403494
push esi
push ebx
push dword [ebp - 8]
call fcn.00406d25
mov dword [ebp - 8], eax
push esi
push ebx
push dword [ebp + 0x14]
call fcn.004060a3
test eax, eax
je 0x403437
add dword [ebp - 4], esi
sub dword [ebp + 0x1c], esi
cmp dword [ebp + 0x1c], edi
jg 0x403450
jmp 0x4034f1
cmp dword [ebp + 0x1c], esi
jge 0x4034b7
mov esi, dword [ebp + 0x1c]
push dword [ebp + 8]
push esi
push edi
call fcn.004031d4
add esp, 0xc
test eax, eax
je 0x4032a3
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x4034ee
cmp dword [0x445a9c], eax
je 0x4034ee
cmp dword [0x445a90], eax
jne 0x4034ee
push esi
push edi
push eax
call fcn.00406d25
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x403514
cmp dword [0x445a9c], eax
je 0x403514
cmp dword [0x445a90], eax
jne 0x403514
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x20]
jne 0x4032a3
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x1c