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], 0x418928
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 0x4034f1
test dword [ebp + 0x1c], 0x80000000
je 0x403418
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp + 0x1c], 0x7fffffff
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov byte [0x420940], 0xb
mov dword [0x420958], ebx
mov dword [ebp + 0x10], eax
jle 0x4034cb
mov ebx, 0x414928
mov esi, 0x4000
cmp dword [ebp + 0x1c], esi
jge 0x4032f3
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 0x403328
cmp dword [0x7b85bc], eax
je 0x403328
cmp dword [0x7b85b0], eax
jne 0x403328
push esi
push ebx
push dword [ebp - 8]
call fcn.00406cff
mov dword [ebp - 8], eax
sub dword [ebp + 0x1c], esi
mov dword [0x420930], ebx
mov dword [0x420934], esi
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push 0x420930
mov dword [0x420938], edi
mov dword [0x42093c], eax
call fcn.00407423
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x40340a
mov esi, dword [0x420938]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x7b8654], 1
mov edi, eax
je 0x4033bf
sub eax, dword [ebp - 0x14]
cmp eax, 0xc8
ja 0x403386
cmp dword [ebp + 0x1c], 0
jne 0x4033bf
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.00405096
mov dword [ebp - 0x14], edi
test esi, esi
je 0x4033fb
cmp dword [ebp + 0x18], 0
jne 0x4033de
push esi
push dword [ebp - 0x10]
push dword [ebp + 0x14]
call fcn.0040607d
test eax, eax
je 0x403411
add dword [ebp - 4], esi
jmp 0x4033ec
mov eax, dword [0x420938]
add dword [ebp - 4], esi
sub dword [ebp - 0xc], esi
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], 4
jne 0x403337
jmp 0x4034cb
cmp dword [ebp + 0x1c], 0
jg 0x4032e6
jmp 0x4034cb
push 0xfffffffffffffffc
jmp 0x4032a5
push 0xfffffffffffffffe
jmp 0x4032a5
cmp edi, ebx
jne 0x403489
cmp dword [ebp + 0x1c], ebx
jle 0x4034cb
mov ebx, 0x414928
mov esi, dword [ebp - 0xc]
cmp dword [ebp + 0x1c], esi
jge 0x403435
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 0x40346e
cmp dword [0x7b85bc], edi
je 0x40346e
cmp dword [0x7b85b0], edi
jne 0x40346e
push esi
push ebx
push dword [ebp - 8]
call fcn.00406cff
mov dword [ebp - 8], eax
push esi
push ebx
push dword [ebp + 0x14]
call fcn.0040607d
test eax, eax
je 0x403411
add dword [ebp - 4], esi
sub dword [ebp + 0x1c], esi
cmp dword [ebp + 0x1c], edi
jg 0x40342a
jmp 0x4034cb
cmp dword [ebp + 0x1c], esi
jge 0x403491
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 0x4034c8
cmp dword [0x7b85bc], eax
je 0x4034c8
cmp dword [0x7b85b0], eax
jne 0x4034c8
push esi
push edi
push eax
call fcn.00406cff
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x4034ee
cmp dword [0x7b85bc], eax
je 0x4034ee
cmp dword [0x7b85b0], eax
jne 0x4034ee
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