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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4488fe
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.00413092
test eax, eax
jne 0x4117c4
mov eax, dword [ebp + 0x14]
xor ebx, ebx
cmp dword [eax], ebx
jne 0x4117c4
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.0042fdc2
cmp eax, ebx
pop ecx
mov dword [esp + 0x18], eax
jne 0x4115aa
call fcn.00423dc0
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
lea ecx, [esp + 0x60]
call fcn.0042b056
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.0042b979
push eax
push 0x44e3a8
call fcn.0042401d
pop ecx
mov edi, eax
pop ecx
mov dword [esp + 0x38], edi
mov byte [esp + 0x68], 3
cmp edi, ebx
je 0x4117d9
cmp dword [edi + 0x14], ebx
je 0x4117d9
lea eax, [esp + 0x14]
push eax
mov ecx, edi
mov dword [esp + 0x18], 0xc8
call fcn.0042abed
test eax, eax
jne 0x41161d
mov eax, 0x80004005
jmp 0x41162b
push dword [esp + 0x14]
call fcn.0040a6a5
cmp eax, ebx
pop ecx
jge 0x411631
push eax
call fcn.004017f1
push ebx
lea eax, [esp + 0x20]
push eax
push 5
mov ecx, edi
mov dword [esp + 0x28], ebx
call fcn.0042abc6
lea ecx, [esp + 0x20]
call fcn.00409258
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 0x41176b
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.00413092
test eax, eax
jne 0x411780
mov eax, dword [ebp + 0x14]
cmp dword [eax], ebx
jne 0x411780
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 0x411756
push fcn.00409282
push fcn.00409258
push 3
push 4
lea eax, [esp + 0x4c]
push eax
call fcn.0042f63c
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.0040981a
push ebx
push dword [esp + 0x28]
lea esi, [esp + 0x50]
mov dword [esp + 0x38], eax
call fcn.00409731
push ebx
push dword [esp + 0x28]
lea esi, [esp + 0x54]
mov dword [esp + 0x48], eax
call fcn.00409731
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.00409282
push 3
push 4
mov eax, esi
push eax
call fcn.0042f6ff
push dword [esp + 0x34]
mov esi, dword [ebp + 8]
push dword [esp + 0x24]
call fcn.004131ba
push 0x10000
push dword [esp + 0x1c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
mov esi, eax
cmp esi, ebx
jne 0x41166a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
mov byte [esp + 0x68], 3
lea ecx, [esp + 0x20]
call fcn.00409282
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.0042b6e2
or dword [esp + 0x68], 0xffffffff
lea eax, [esp + 0x18]
push eax
call fcn.00411022
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.00407c4e
int3