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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x100a509c]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
xor ebx, ebx
inc ebx
push esi
push edi
cmp dword [0x103c18b8], ebx
jne 0x100409a0
cmp dword [0x101117c4], 2
je 0x100409a0
cmp dword [0x1035eef4], ebx
jne 0x100409a0
mov eax, dword [0x34d2968]
xor edi, edi
cmp eax, dword [0x103c18ec]
jg 0x100409a2
push edi
push 0x10097c00
mov dword [0x10111bfc], 0xbb8
call fcn.100370d7
pop ecx
pop ecx
jmp 0x100409a2
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x103c2194], ebx
jne 0x10040b06
call esi
mov ecx, dword [0x103d4558]
sub eax, dword [0x1035ed90]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jbe 0x10040c5d
mov ecx, dword [0x34d2968]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fidiv dword [0x34d2974]
fild dword [0x103c218c]
fdiv qword [0x1009d9f0]
fcompp
fnstsw ax
test ah, 5
mov eax, dword [0x103c2190]
jp 0x10040a06
cmp eax, edi
je 0x10040b06
cmp ecx, dword [0x103c218c]
jl 0x10040a16
cmp eax, ebx
je 0x10040b06
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0x147
push dword [0x103c2100]
call esi
lea ecx, [esp + 0x10]
push ecx
push eax
mov ebx, 0x148
push ebx
push dword [0x103c2100]
call esi
lea eax, [esp + 0x10]
push eax
call fcn.10006457
pop ecx
test eax, eax
je 0x10040a76
lea eax, [esp + 0x10]
push 0x10097bf4
push eax
call dword [sym.imp.MSVCR100.dll_strcmp]
pop ecx
pop ecx
test eax, eax
jne 0x10040a68
push 1
jmp 0x10040a6a
push 2
call fcn.1004085c
pop ecx
push edi
jmp 0x10040c51
push edi
push edi
mov dword [esp + 0x14], edi
mov edi, 0x146
push edi
push dword [0x103c2100]
call esi
test eax, eax
jle 0x10040c5d
lea eax, [esp + 0xd8]
push eax
push dword [esp + 0x10]
push ebx
push dword [0x103c2100]
call esi
lea eax, [esp + 0xd8]
push eax
call fcn.10006457
pop ecx
test eax, eax
jne 0x10040ad3
inc dword [esp + 0xc]
push eax
push eax
push edi
push dword [0x103c2100]
call esi
cmp dword [esp + 0xc], eax
jl 0x10040a92
jmp 0x10040c5d
lea eax, [esp + 0xd8]
push 0x10097bf4
push eax
call dword [sym.imp.MSVCR100.dll_strcmp]
pop ecx
pop ecx
test eax, eax
jne 0x10040af0
push 1
jmp 0x10040af2
push 2
call fcn.1004085c
pop ecx
push 0
lea eax, [esp + 0xdc]
jmp 0x10040c55
cmp dword [0x103c1884], ebx
jne 0x10040c5d
call esi
mov ecx, dword [0x103d4558]
sub eax, dword [0x1035ed90]
imul ecx, ecx, 0x3e8
cmp eax, ecx
jbe 0x10040c5d
mov ecx, dword [0x34d2968]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fidiv dword [0x34d2974]
fild dword [0x103c1894]
fdiv qword [0x1009d9f0]
fcompp
fnstsw ax
test ah, 5
mov eax, dword [0x103c189c]
jp 0x10040b64
cmp eax, edi
je 0x10040c5d
cmp ecx, dword [0x103c1894]
jl 0x10040b74
cmp eax, ebx
je 0x10040c5d
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0x147
push dword [0x103c1ba0]
call esi
lea ecx, [esp + 0xd8]
push ecx
push eax
mov ebx, 0x148
push ebx
push dword [0x103c1ba0]
call esi
lea eax, [esp + 0xd8]
push eax
call fcn.10006457
pop ecx
test eax, eax
je 0x10040bdd
lea eax, [esp + 0xd8]
push 0x10097bf4
push eax
call dword [sym.imp.MSVCR100.dll_strcmp]
pop ecx
pop ecx
test eax, eax
jne 0x10040bcf
push 1
jmp 0x10040bd1
push 2
call fcn.1004085c
pop ecx
push edi
jmp 0x10040afa
push edi
push edi
mov dword [esp + 0x14], edi
mov edi, 0x146
push edi
push dword [0x103c1ba0]
call esi
test eax, eax
jle 0x10040c5d
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push ebx
push dword [0x103c1ba0]
call esi
lea eax, [esp + 0x10]
push eax
call fcn.10006457
pop ecx
test eax, eax
jne 0x10040c2d
inc dword [esp + 0xc]
push eax
push eax
push edi
push dword [0x103c1ba0]
call esi
cmp dword [esp + 0xc], eax
jl 0x10040bf5
jmp 0x10040c5d
lea eax, [esp + 0x10]
push 0x10097bf4
push eax
call dword [sym.imp.MSVCR100.dll_strcmp]
pop ecx
pop ecx
test eax, eax
jne 0x10040c47
push 1
jmp 0x10040c49
push 2
call fcn.1004085c
pop ecx
push 0
lea eax, [esp + 0x14]
push eax
call fcn.10006200
pop ecx
pop ecx
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10082395
mov esp, ebp
pop ebp
ret