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

Disassembly:
push 0xffffffffffffffff
push 0x10182450
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x1c], ebp
xor ebx, ebx
mov dword [ebp + 4], ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [ebp + 8]
mov dword [esp + 0x64], ebx
mov dword [ebp], 0x1019a480
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], ebx
call fcn.1004ce80
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov dword [ebp + 0x4c], edx
mov edx, dword [esp + 0x80]
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], eax
mov eax, dword [esp + 0x70]
mov dword [ebp + 0x58], edx
mov edx, dword [esp + 0x78]
mov word [ebp + 0x48], bx
mov word [ebp + 0x4a], bx
lea edi, [ebp + 0x5c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x74]
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x88], 0x400
mov dword [ebp + 0x8c], ecx
mov dword [ebp + 0x90], edx
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa0], ebx
lea esi, [ebp + 0xa4]
mov ecx, esi
mov byte [esp + 0x5c], 3
call fcn.10004450
mov dword [esi + 4], eax
mov byte [eax + 0x29], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], ebx
lea ecx, [ebp + 0xb0]
mov byte [esp + 0x5c], 4
call fcn.100292c0
lea ecx, [ebp + 0xc8]
mov byte [esp + 0x5c], 5
call fcn.100292c0
mov eax, dword [esp + 0x8c]
push eax
lea ecx, [ebp + 0x104]
push 0x101cc004
mov byte [esp + 0x64], 6
mov dword [ebp + 0xe8], ebx
mov dword [ebp + 0xec], ebx
mov dword [ebp + 0xf0], ebx
mov dword [ebp + 0xf4], ebx
mov dword [ebp + 0xf8], ebx
mov dword [ebp + 0xfc], ebx
mov dword [ebp + 0x100], ebx
call fcn.1004ebf0
mov ecx, dword [esp + 0x84]
mov dword [ebp + 0x170], ecx
mov word [ebp + 0x174], bx
mov word [ebp + 0x176], bx
mov byte [ebp + 0x178], bl
mov byte [ebp + 0x179], 5
mov byte [ebp + 0x1a8], bl
mov dword [ebp + 0x1b0], ebx
mov dword [ebp + 0x1b4], ebx
mov dword [ebp + 0x1b8], ebx
mov dword [ebp + 0x1bc], ebx
mov dword [ebp + 0x1c0], ebx
mov dword [ebp + 0x1c4], ebx
mov dword [ebp + 0x1c8], ebx
mov dword [ebp + 0x1cc], ebx
mov byte [ebp + 0x1d0], bl
mov byte [ebp + 0x1d1], bl
mov byte [ebp + 0x1d2], bl
mov byte [ebp + 0x1d3], bl
mov byte [ebp + 0x1d4], bl
mov dword [ebp + 0x1d8], ebx
or esi, 0xffffffff
mov dword [ebp + 0x1dc], esi
mov dword [ebp + 0x1e0], esi
mov dword [ebp + 0x1e4], esi
mov dword [ebp + 0x1e8], esi
mov dword [ebp + 0x1f0], ebx
mov dword [ebp + 0x1f4], ebx
mov dword [ebp + 0x1f8], ebx
mov edx, dword [esp + 0x88]
push 0xa
lea ecx, [ebp + 0x200]
mov byte [esp + 0x60], 9
mov dword [ebp + 0x1fc], edx
call fcn.100f86ec
mov dword [ebp + 0x26c], ebx
mov dword [ebp + 0x270], ebx
mov dword [ebp + 0x274], ebx
mov byte [esp + 0x5c], 0xb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [ebp + 0x29c]
mov ecx, edi
mov dword [ebp + 0x278], eax
mov dword [ebp + 0x27c], ebx
mov dword [ebp + 0x280], ebx
mov dword [ebp + 0x284], ebx
mov dword [ebp + 0x288], ebx
mov dword [ebp + 0x28c], ebx
mov dword [ebp + 0x290], ebx
mov dword [ebp + 0x294], ebx
mov byte [ebp + 0x298], bl
call fcn.10018cd0
mov dword [edi + 4], eax
mov byte [eax + 0x31], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [ebp + 0x2b4]
mov ecx, edi
mov byte [esp + 0x5c], 0xc
mov dword [ebp + 0x2b0], 4
call fcn.10004450
mov dword [edi + 4], eax
mov byte [eax + 0x29], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov byte [esp + 0x5c], 0xd
mov eax, dword [esp + 0x90]
mov byte [ebp + 0x2c0], 1
mov byte [ebp + 0x2c1], bl
mov dword [ebp + 0x2c4], ebx
mov dword [ebp + 0x2c8], 0x64
mov dword [ebp + 0x2d4], ebx
mov dword [ebp + 0x2d8], esi
mov dword [ebp + 0x2dc], eax
mov byte [ebp + 0x2e4], bl
mov dword [ebp + 0x2e8], ebx
call fcn.100f02ac
mov ecx, eax
call fcn.100f0039
mov ecx, ebp
mov dword [ebp + 0xe0], eax
call fcn.1004c650
mov ecx, dword [ebp + 0x50]
cmp ecx, ebx
je 0x1004d29b
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
mov byte [ebp + 0x178], al
mov ecx, dword [ebp + 0x50]
mov edx, dword [ecx]
mov eax, dword [edx + 0x108]
call eax
push ebx
mov ecx, 9
lea esi, [ebp + 0x104]
lea edi, [esp + 0x34]
push eax
mov dword [ebp + 0x2e0], eax
rep movsd dword es:[edi], dword [esi]
call fcn.1010c850
add esp, 8
mov ecx, eax
call fcn.1010bd8e
test eax, eax
mov esi, 2
jne 0x1004d344
mov ecx, dword [ebp + 0x2e0]
push esi
push ecx
call fcn.1010c850
add esp, 8
mov ecx, eax
call fcn.1010bd8e
test eax, eax
jne 0x1004d344
cmp dword [ebp + 0x2e0], ebx
jbe 0x1004d326
push ebx
push ebx
call fcn.1010c850
add esp, 8
mov ecx, eax
call fcn.1010bd8e
test eax, eax
jne 0x1004d344
push esi
push ebx
call fcn.1010c850
add esp, 8
mov ecx, eax
call fcn.1010bd8e
test eax, eax
jne 0x1004d344
mov dword [esp + 0x30], 0x20
mov dword [ebp + 0x2cc], 4
mov dword [ebp + 0x2d0], 0xc
jmp 0x1004d35e
mov dword [esp + 0x30], 5
mov dword [ebp + 0x2cc], esi
mov dword [ebp + 0x2d0], esi
mov dword [ebp + 0x2b0], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [ebp + 0x104]
mov byte [esp + 0x64], 0xe
call fcn.1004f220
mov byte [ebp + 0x1a0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x1a4], eax
mov byte [ebp + 0x2a8], 1
mov ecx, dword [ebp + 0x2b8]
mov edx, dword [ecx + 4]
lea esi, [ebp + 0x2b4]
push edx
mov ecx, esi
call fcn.10046230
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], ebx
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1004d3da
push eax
call fcn.10159534
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x30