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

Disassembly:
push 0xffffffffffffffff
push 0x10180070
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c6444]
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], 0x10198470
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], ebx
call fcn.1004f2e0
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.1005ea10
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.1002b7b0
lea ecx, [ebp + 0xc8]
mov byte [esp + 0x5c], 5
call fcn.1002b7b0
mov eax, dword [esp + 0x8c]
push eax
lea ecx, [ebp + 0x104]
push 0x101c5004
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.10051150
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.100fe481
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.1001b040
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.1005ea10
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.100f6129
mov ecx, eax
call fcn.100f5eb6
mov ecx, ebp
mov dword [ebp + 0xe0], eax
call fcn.1004eab0
mov ecx, dword [ebp + 0x50]
cmp ecx, ebx
je 0x1004f8fb
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.1010b39c
add esp, 8
mov ecx, eax
call fcn.1010a904
test eax, eax
mov esi, 2
jne 0x1004f9a4
mov ecx, dword [ebp + 0x2e0]
push esi
push ecx
call fcn.1010b39c
add esp, 8
mov ecx, eax
call fcn.1010a904
test eax, eax
jne 0x1004f9a4
cmp dword [ebp + 0x2e0], ebx
jbe 0x1004f986
push ebx
push ebx
call fcn.1010b39c
add esp, 8
mov ecx, eax
call fcn.1010a904
test eax, eax
jne 0x1004f9a4
push esi
push ebx
call fcn.1010b39c
add esp, 8
mov ecx, eax
call fcn.1010a904
test eax, eax
jne 0x1004f9a4
mov dword [esp + 0x30], 0x20
mov dword [ebp + 0x2cc], 4
mov dword [ebp + 0x2d0], 0xc
jmp 0x1004f9be
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.10051780
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.100480e0
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 0x1004fa3a
push eax
call fcn.10157f3b
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