Function at 0x1004ee0c
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.1004873d
test eax, eax
je 0x1004f0ac
call fcn.100486fb
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 0x1004ee86
cmp dword [ebp - 0x310], 0x2734
je 0x1004ee86
mov eax, dword [ebp + 0xc]
push eax
call fcn.1004872d
or eax, 0xffffffff
jmp 0x1004f0ae
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 0x1004f0a1
mov edx, dword [ebp - 0x324]
mov dword [edx], 0
mov eax, dword [ebp - 0x324]
cmp dword [eax], 0x40
jae 0x1004eef7
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 0x1004eec4
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 0x1004ef54
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 0x1004ef21
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.10062410
add esp, 0x14
mov ecx, dword [ebp - 0x320]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10048719
test eax, eax
je 0x1004effb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x1004efb4
mov ecx, 1
test ecx, ecx
je 0x1004efb4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x32c], eax
jmp 0x1004efbe
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.10032260
add esp, 0x1c
mov edx, dword [ebp + 0xc]
push edx
call fcn.1004872d
or eax, 0xffffffff
jmp 0x1004f0ae
mov eax, dword [ebp - 0x324]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10048719
test eax, eax
je 0x1004f016
xor eax, eax
jmp 0x1004f0ae
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 0x1004f09c
mov eax, dword [ebp + 0xc]
push eax
call fcn.1004872d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x1004f05b
xor edx, edx
test edx, edx
je 0x1004f05b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x330], ecx
jmp 0x1004f065
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.100f26dc
mov edx, dword [eax]
push edx
push 0x1eb
push 0xffffffffffffffa0
mov eax, dword [ebp + 8]
push eax
call fcn.10032260
add esp, 0x1c
or eax, 0xffffffff
jmp 0x1004f0ae
jmp 0x1004eeab
cmp dword [ebp + 0xc], 0xffffffff
jne 0x1004f0ac
or eax, 0xffffffff
jmp 0x1004f0ae
xor eax, eax
mov esp, ebp
pop ebp
ret