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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447e5f
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x460df0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00412673
test eax, eax
jne 0x4110ca
mov eax, dword [ebp + 0x14]
xor ebx, ebx
cmp dword [eax], ebx
jne 0x4110ca
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
call dword [eax + 0x28]
mov dword [esp + 0x18], ebx
xor edi, edi
inc edi
mov dword [esp + 0x68], edi
mov esi, 0x10000
push esi
call fcn.0042f362
cmp eax, ebx
pop ecx
mov dword [esp + 0x18], eax
jne 0x410eb0
call fcn.0041bbdb
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
lea ecx, [esp + 0x60]
call fcn.0042a616
mov byte [esp + 0x68], 2
push ebx
push ebx
push 0x4000002
push dword [esp + 0x58]
lea ecx, [esp + 0x58]
push dword [ebp + 0xc]
call fcn.0042af39
push eax
push 0x44d3a4
call fcn.00423637
pop ecx
mov edi, eax
pop ecx
mov dword [esp + 0x38], edi
mov byte [esp + 0x68], 3
cmp edi, ebx
je 0x4110df
cmp dword [edi + 0x14], ebx
je 0x4110df
lea eax, [esp + 0x14]
push eax
mov ecx, edi
mov dword [esp + 0x18], 0xc8
call fcn.0042a1ad
test eax, eax
jne 0x410f23
mov eax, 0x80004005
jmp 0x410f31
push dword [esp + 0x14]
call fcn.0040a337
cmp eax, ebx
pop ecx
jge 0x410f37
push eax
call fcn.004017dc
push ebx
lea eax, [esp + 0x20]
push eax
push 5
mov ecx, edi
mov dword [esp + 0x28], ebx
call fcn.0042a186
lea ecx, [esp + 0x20]
call fcn.00401b22
mov byte [esp + 0x68], 4
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push esi
jmp 0x411071
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
push esi
push dword [esp + 0x1c]
call dword [eax + 0x38]
mov ecx, dword [ebp + 8]
call fcn.00412673
test eax, eax
jne 0x411086
mov eax, dword [ebp + 0x14]
cmp dword [eax], ebx
jne 0x411086
push dword [esp + 0x1c]
push 0x64
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
add dword [esp + 0x14], esi
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x24], eax
sub eax, dword [esp + 0x28]
cmp eax, 0x42
jb 0x41105c
push fcn.00401b59
push fcn.00401b22
push 3
push 4
lea eax, [esp + 0x4c]
push eax
call fcn.0042ebda
mov byte [esp + 0x68], 5
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x2c]
lea esi, [esp + 0x44]
push eax
push dword [esp + 0x18]
call fcn.00409572
push ebx
push dword [esp + 0x28]
lea esi, [esp + 0x50]
mov dword [esp + 0x38], eax
call fcn.00409489
push ebx
push dword [esp + 0x28]
lea esi, [esp + 0x54]
mov dword [esp + 0x48], eax
call fcn.00409489
mov ecx, dword [esp + 0x40]
push dword [ecx]
mov ecx, dword [esp + 0x4c]
push dword [ecx]
push dword [eax]
lea eax, [esp + 0x44]
push 0xbbd
push eax
call fcn.0040140f
mov eax, dword [esp + 0x50]
add esp, 0x2c
mov dword [esp + 0x28], eax
mov byte [esp + 0x68], 4
push fcn.00401b59
push 3
push 4
mov eax, esi
push eax
call fcn.0042ec9d
push dword [esp + 0x34]
mov esi, dword [ebp + 8]
push dword [esp + 0x24]
call fcn.0041279b
push 0x10000
push dword [esp + 0x1c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
mov esi, eax
cmp esi, ebx
jne 0x410f70
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
mov byte [esp + 0x68], 3
lea ecx, [esp + 0x20]
call fcn.00401b59
mov byte [esp + 0x68], 2
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov dword [esp + 0x38], ebx
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x48]
call fcn.0042aca2
or dword [esp + 0x68], 0xffffffff
lea eax, [esp + 0x18]
push eax
call fcn.0041092b
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040790d
int3