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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448ab3
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x461de0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.0041323d
test eax, eax
jne 0x411929
mov eax, dword [ebp + 0x14]
xor ebx, ebx
cmp dword [eax], ebx
jne 0x411929
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.00431613
cmp eax, ebx
pop ecx
mov dword [esp + 0x18], eax
jne 0x41170f
call fcn.00423f93
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
lea ecx, [esp + 0x60]
call fcn.0042b226
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.0042bb49
push eax
push 0x44e3a8
call fcn.004241f0
pop ecx
mov edi, eax
pop ecx
mov dword [esp + 0x38], edi
mov byte [esp + 0x68], 3
cmp edi, ebx
je 0x41193e
cmp dword [edi + 0x14], ebx
je 0x41193e
lea eax, [esp + 0x14]
push eax
mov ecx, edi
mov dword [esp + 0x18], 0xc8
call fcn.0042adbd
test eax, eax
jne 0x411782
mov eax, 0x80004005
jmp 0x411790
push dword [esp + 0x14]
call fcn.0040a7f2
cmp eax, ebx
pop ecx
jge 0x411796
push eax
call fcn.004017d2
push ebx
lea eax, [esp + 0x20]
push eax
push 5
mov ecx, edi
mov dword [esp + 0x28], ebx
call fcn.0042ad96
lea ecx, [esp + 0x20]
call fcn.00401b37
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 0x4118d0
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.0041323d
test eax, eax
jne 0x4118e5
mov eax, dword [ebp + 0x14]
cmp dword [eax], ebx
jne 0x4118e5
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 0x4118bb
push fcn.00401b6e
push fcn.00401b37
push 3
push 4
lea eax, [esp + 0x4c]
push eax
call fcn.0042f80c
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.0040957f
push ebx
push dword [esp + 0x28]
lea esi, [esp + 0x50]
mov dword [esp + 0x38], eax
call fcn.00409496
push ebx
push dword [esp + 0x28]
lea esi, [esp + 0x54]
mov dword [esp + 0x48], eax
call fcn.00409496
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.00401b6e
push 3
push 4
mov eax, esi
push eax
call fcn.0042f8cf
push dword [esp + 0x34]
mov esi, dword [ebp + 8]
push dword [esp + 0x24]
call fcn.00413365
push 0x10000
push dword [esp + 0x1c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
mov esi, eax
cmp esi, ebx
jne 0x4117cf
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
mov byte [esp + 0x68], 3
lea ecx, [esp + 0x20]
call fcn.00401b6e
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.0042b8b2
or dword [esp + 0x68], 0xffffffff
lea eax, [esp + 0x18]
push eax
call fcn.004082f2
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.004079b1
int3