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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041f718
test eax, eax
je 0x4114cb
call fcn.0041f6d6
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0x30c]
mov dword [ebp - 0x314], eax
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x324], ecx
lea edx, [ebp - 0x104]
mov dword [ebp - 0x320], edx
cmp dword [ebp - 0x310], 0x2733
je 0x4112a5
cmp dword [ebp - 0x310], 0x2734
je 0x4112a5
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041f708
or eax, 0xffffffff
jmp 0x4114cd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x328], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x318], 0
mov ecx, 1
test ecx, ecx
je 0x4114c0
mov edx, dword [ebp - 0x324]
mov dword [edx], 0
mov eax, dword [ebp - 0x324]
cmp dword [eax], 0x40
jae 0x411316
mov ecx, dword [ebp - 0x324]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 0xc]
mov dword [eax + edx*4 + 4], ecx
mov edx, dword [ebp - 0x324]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp - 0x324]
mov dword [ecx], eax
xor edx, edx
test edx, edx
jne 0x4112e3
mov eax, dword [ebp - 0x314]
mov dword [eax], 0
mov ecx, dword [ebp - 0x320]
mov dword [ecx], 0
mov edx, dword [ebp - 0x320]
mov dword [edx], 0
mov eax, dword [ebp - 0x320]
cmp dword [eax], 0x40
jae 0x411373
mov ecx, dword [ebp - 0x320]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x320]
mov ecx, dword [ebp + 0xc]
mov dword [eax + edx*4 + 4], ecx
mov edx, dword [ebp - 0x320]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp - 0x320]
mov dword [ecx], eax
xor edx, edx
test edx, edx
jne 0x411340
lea eax, [ebp - 0x31c]
push eax
mov ecx, dword [ebp - 0x320]
push ecx
mov edx, dword [ebp - 0x324]
push edx
mov eax, dword [ebp - 0x314]
push eax
push 0
call fcn.00422270
add esp, 0x14
mov ecx, dword [ebp - 0x320]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041f6f4
test eax, eax
je 0x41141a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x4113d3
mov ecx, 1
test ecx, ecx
je 0x4113d3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x32c], eax
jmp 0x4113dd
mov dword [ebp - 0x32c], 0xfffffff1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x32c]
mov dword [ecx + 0x14], edx
push 0
push 0xff
mov eax, dword [ebp + 0x10]
push eax
push 0x274d
push 0xa
push 0xfffffffffffffff1
mov ecx, dword [ebp + 8]
push ecx
call fcn.004105d0
add esp, 0x1c
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041f708
or eax, 0xffffffff
jmp 0x4114cd
mov eax, dword [ebp - 0x324]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041f6f4
test eax, eax
je 0x411435
xor eax, eax
jmp 0x4114cd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x328]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x6c]
mov edx, dword [ecx + 0x1c]
imul edx, edx, 0x3cf
cmp eax, edx
jbe 0x4114bb
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041f708
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x41147a
xor edx, edx
test edx, edx
je 0x41147a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x330], ecx
jmp 0x411484
mov dword [ebp - 0x330], 0xffffffa0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x330]
mov dword [edx + 0x14], eax
push 0
push 0xff
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004062e9
mov edx, dword [eax]
push edx
push 0x1eb
push 0xffffffffffffffa0
mov eax, dword [ebp + 8]
push eax
call fcn.004105d0
add esp, 0x1c
or eax, 0xffffffff
jmp 0x4114cd
jmp 0x4112ca
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4114cb
or eax, 0xffffffff
jmp 0x4114cd
xor eax, eax
mov esp, ebp
pop ebp
ret