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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
cmp edi, esi
mov dword [ebp - 0x14], ebx
jne 0x40378c
mov dword [ebp - 0x14], 0x8000
cmp edi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 0x1c], esi
mov dword [ebp - 0x18], edi
jne 0x4037a3
mov dword [ebp - 0x18], 0x424170
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00403729
push dword [ebp + 8]
lea eax, [ebp - 8]
push 8
push eax
call fcn.004036f4
add esp, 0x18
test eax, eax
jne 0x4037d1
push 0xfffffffffffffffd
pop eax
or edx, 0xffffffff
jmp 0x403ac8
cmp dword [0x43420c], esi
je 0x4037e8
push 8
lea eax, [ebp - 8]
push eax
push esi
call fcn.004075de
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp - 4]
and ecx, 0x80000000
xor eax, eax
or eax, ecx
je 0x4039c8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x434178
mov dword [ebp + 0x10], eax
call fcn.0040764c
mov esi, dword [ebp - 8]
and dword [ebp - 4], 0x7fffffff
mov eax, dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
jl 0x403aa9
jg 0x403834
test esi, esi
jbe 0x403aa9
mov ebx, 0x420170
jmp 0x40383e
mov esi, dword [ebp - 8]
cmp dword [ebp - 4], 0
jg 0x40384e
jl 0x403853
cmp esi, 0x4000
jb 0x403853
mov esi, 0x4000
push dword [ebp + 8]
push esi
push ebx
call fcn.004036f4
add esp, 0xc
test eax, eax
je 0x4037c6
cmp dword [0x43420c], 0
je 0x40387e
push esi
push ebx
push dword [ebp + 0x1c]
call fcn.004075de
mov dword [ebp + 0x1c], eax
mov eax, esi
cdq
sub dword [ebp - 8], eax
mov dword [0x434190], ebx
mov dword [0x434194], esi
sbb dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, 0x434178
mov dword [0x434198], edi
mov dword [0x43419c], eax
call fcn.00407694
test eax, eax
mov dword [ebp - 0x24], eax
jl 0x4039ba
mov esi, dword [0x434198]
sub esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4736d4], 1
mov edi, eax
je 0x40394c
sub eax, dword [ebp + 0x10]
cmp eax, 0xc8
ja 0x4038e4
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jne 0x40394c
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
sbb ecx, dword [ebp - 4]
cmp dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x20]
je 0x403911
mov ebx, dword [ebp - 0x1c]
shl ebx, 8
shr edx, 0x18
or edx, ebx
shr eax, 0x18
shl ecx, 8
or eax, ecx
mov ebx, 0x420170
shr eax, 1
shr edx, 1
cmp eax, edx
jb 0x40391b
mov eax, edx
push edx
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0xa4]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
push 0
call fcn.00405687
mov dword [ebp + 0x10], edi
xor edi, edi
cmp esi, edi
je 0x40399b
cmp dword [ebp + 0x18], edi
jne 0x403972
push esi
push dword [ebp - 0x18]
push dword [ebp + 0x14]
call fcn.004066d8
test eax, eax
je 0x4039c1
mov eax, esi
cdq
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
jmp 0x403986
mov eax, esi
cdq
add dword [ebp - 0x10], eax
mov eax, dword [0x434198]
mov dword [ebp - 0x18], eax
adc dword [ebp - 0xc], edx
sub dword [ebp - 0x14], esi
cmp dword [ebp - 0x24], 1
jne 0x403893
cmp dword [0x43420c], edi
jmp 0x403ab0
cmp dword [ebp - 4], edi
jg 0x40383b
jl 0x403aa9
mov esi, dword [ebp - 8]
test esi, esi
ja 0x40383e
jmp 0x403aa9
push 0xfffffffffffffffc
jmp 0x4037c8
push 0xfffffffffffffffe
jmp 0x4037c8
cmp edi, esi
jne 0x403a62
cmp dword [ebp - 4], esi
jl 0x403aa9
jg 0x4039e4
cmp dword [ebp - 8], esi
jbe 0x403aa9
mov eax, dword [ebp - 0x14]
cdq
mov ebx, eax
mov dword [ebp + 0x10], edx
mov edi, 0x420170
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 4], eax
jg 0x403a06
jl 0x403a01
cmp dword [ebp - 8], ebx
jae 0x403a06
mov esi, dword [ebp - 8]
jmp 0x403a09
mov esi, dword [ebp - 0x14]
push dword [ebp + 8]
push esi
push edi
call fcn.004036f4
add esp, 0xc
test eax, eax
je 0x4037c6
cmp dword [0x43420c], 0
je 0x403a34
push esi
push edi
push dword [ebp + 0x1c]
call fcn.004075de
mov dword [ebp + 0x1c], eax
push esi
push edi
push dword [ebp + 0x14]
call fcn.004066d8
test eax, eax
je 0x4039c1
xor eax, eax
add dword [ebp - 0x10], esi
adc dword [ebp - 0xc], eax
sub dword [ebp - 8], esi
sbb dword [ebp - 4], eax
cmp dword [ebp - 4], eax
jg 0x4039f2
jl 0x403aa9
cmp dword [ebp - 8], eax
ja 0x4039f2
jmp 0x403aa9
mov eax, ebx
cdq
cmp dword [ebp - 4], edx
jg 0x403a73
mov esi, dword [ebp - 8]
jl 0x403a75
cmp esi, eax
jb 0x403a75
mov esi, ebx
push dword [ebp + 8]
push esi
push edi
call fcn.004036f4
add esp, 0xc
test eax, eax
je 0x4037c6
cmp dword [0x43420c], 0
je 0x403aa0
push esi
push edi
push dword [ebp + 0x1c]
call fcn.004075de
mov dword [ebp + 0x1c], eax
mov eax, esi
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [0x43420c], 0
je 0x403ac2
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp + 0x20]
je 0x403ac2
push 0xfffffffffffffffd
or edx, 0xffffffff
pop eax
jmp 0x403ac8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x1c