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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x94
mov ebx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0xa8]
test ecx, ecx
mov ebp, 0x8000
cmovne ebp, ebx
mov edx, 0x4259fc
cmovne edx, ecx
mov dword [esp + 4], edx
test eax, eax
js 0x403823
add eax, dword [0x4219f4]
xor ecx, ecx
push ecx
push ecx
push eax
push dword [0x417010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esp
push 4
push eax
push dword [0x417010]
call fcn.00407002
mov esi, 0xfffffffd
test eax, eax
je 0x403a3a
mov edi, dword [esp]
test edi, edi
js 0x403875
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x4039f2
cmp edi, ebx
cmovl ebx, edi
push ebx
push eax
push dword [0x417010]
call fcn.00407002
test eax, eax
jne 0x403a38
jmp 0x403a3a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
mov dword [0x42da0c], 8
xor esi, esi
mov dword [0x42df28], esi
mov dword [0x42df24], esi
mov eax, 0x42f5ac
mov dword [0x4375b4], eax
mov dword [0x4375b0], eax
mov eax, 0x4375ac
mov dword [0x4375ac], eax
mov ebx, 0x7fffffff
and ebx, dword [esp]
mov dword [esp], ebx
je 0x4039ee
xor esi, esi
mov eax, 0x4000
mov edi, ebx
mov dword [esp + 0x10], ebx
cmp edi, eax
cmovge edi, eax
push edi
push 0x4219fc
push dword [0x417010]
call fcn.00407002
test eax, eax
je 0x403a57
mov dword [0x42d9fc], 0x4219fc
mov dword [0x42da00], edi
sub dword [esp], edi
mov eax, dword [esp + 4]
mov dword [esp + 4], eax
mov dword [0x42da04], eax
mov dword [0x42da08], ebp
push 0x42d9fc
call fcn.004079bc
test eax, eax
js 0x403a49
mov ebx, eax
mov dword [esp + 8], ebp
mov edi, dword [0x42da04]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
mov eax, dword [0x40a3b4]
test byte [eax + 0x34], 1
je 0x40398e
mov ecx, ebp
sub ecx, dword [esp + 0xc]
mov eax, dword [esp]
cmp ecx, 0xc8
ja 0x403958
test eax, eax
jne 0x40398e
mov edx, dword [esp + 0x10]
mov ecx, edx
sub ecx, eax
push edx
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
push str....__d__
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0
call fcn.00406324
mov dword [esp + 0xc], ebp
mov eax, dword [esp + 4]
cmp edi, eax
je 0x4039da
sub edi, eax
cmp dword [esp + 0xb0], 0
je 0x4039af
mov ebp, dword [esp + 8]
sub ebp, edi
mov eax, dword [0x42da04]
jmp 0x4039cd
push edi
push eax
push dword [esp + 0xb4]
call fcn.00407034
test eax, eax
mov eax, dword [esp + 4]
mov ebp, dword [esp + 8]
je 0x403a50
add esi, edi
cmp ebx, 1
jne 0x403903
jmp 0x403a3a
mov edi, dword [esp]
test edi, edi
mov ebp, dword [esp + 8]
mov eax, 0x4000
jg 0x4038ce
mov ebx, esi
jmp 0x403a38
xor ebx, ebx
test edi, edi
je 0x403a38
cmp edi, ebp
cmovge edi, ebp
push edi
push 0x4219fc
push dword [0x417010]
call fcn.00407002
test eax, eax
je 0x403a3a
push edi
push 0x4219fc
push dword [esp + 0xb4]
call fcn.00407034
test eax, eax
je 0x403a50
add ebx, edi
mov eax, dword [esp]
sub eax, edi
mov dword [esp], eax
mov edi, eax
test eax, eax
jg 0x4039f8
mov esi, ebx
mov eax, esi
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov esi, 0xfffffffc
jmp 0x403a3a
mov esi, 0xfffffffe
jmp 0x403a3a
mov esi, 0xfffffffd
jmp 0x403a3a