Function at 0x4cc504
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x4cc50d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x4cc526
add esp, 0xfffffff0
call fcn.00404aac
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
lea eax, [ebp - 4]
call fcn.00406478
lea esi, [ebp - 8]
xor eax, eax
push ebp
push 0x4cc7e5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [esi], eax
xor eax, eax
push ebp
push 0x4cc71d
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
lea eax, [ebp - 0x10]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.00494f60
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00405938
mov eax, dword [ebp - 0xc]
call fcn.0040c3f4
mov dword [edi + 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.00494f60
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.00405938
mov eax, dword [ebp - 0x14]
call fcn.0040c3f4
mov dword [edi + 8], eax
push esi
lea eax, [ebp - 0x1c]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.00494f60
mov edx, dword [ebp - 0x1c]
lea eax, [edi + 0xc]
call fcn.00405ef8
push esi
lea eax, [ebp - 0x20]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.00494f60
mov edx, dword [ebp - 0x20]
lea eax, [edi + 0x10]
call fcn.00405ef8
push esi
lea eax, [ebp - 0x24]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.00494f60
mov edx, dword [ebp - 0x24]
lea eax, [edi + 0x14]
call fcn.00405ef8
push esi
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.00494f60
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.00405938
mov eax, dword [ebp - 0x28]
mov dl, 0x2e
call fcn.004969e4
fstp qword [edi + 0x18]
wait
push esi
lea eax, [ebp - 0x34]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.00494f60
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.00405938
mov eax, dword [ebp - 0x30]
mov dl, 0x2e
call fcn.004969e4
fstp qword [edi + 0x20]
wait
push esi
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.00494f60
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.00405938
mov eax, dword [ebp - 0x38]
call fcn.0040c3f4
mov byte [edi + 0x28], al
push esi
lea eax, [ebp - 0x44]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.00494f60
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
call fcn.00405938
mov eax, dword [ebp - 0x40]
call fcn.0040c3f4
mov dword [edi + 0x2c], eax
push esi
lea eax, [ebp - 0x4c]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.00494f60
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
call fcn.00405938
mov eax, dword [ebp - 0x48]
call fcn.0040c3f4
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 4]
call fcn.004060c4
cmp eax, dword [esi]
jle 0x4cc713
push esi
lea eax, [ebp - 0x50]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.00494f60
mov edx, dword [ebp - 0x50]
lea eax, [edi + 0x38]
call fcn.00405ef8
push esi
lea eax, [ebp - 0x54]
push eax
mov edx, dword [esi]
inc edx
mov cl, 0x3b
mov eax, dword [ebp - 4]
call fcn.00494f60
mov edx, dword [ebp - 0x54]
lea eax, [edi + 0x3c]
call fcn.00405ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cc738
mov eax, dword [ebp - 4]
call fcn.004060c4
cmp eax, dword [esi]
jle 0x4cc755
mov dl, 1
mov eax, dword [0x493368]
call fcn.0049380c
call fcn.00404ffc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc7ef
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00405ed4
lea eax, [ebp - 0x48]
call fcn.00405684
lea eax, [ebp - 0x44]
call fcn.00405ebc
lea eax, [ebp - 0x40]
call fcn.00405684
lea eax, [ebp - 0x3c]
call fcn.00405ebc
lea eax, [ebp - 0x38]
call fcn.00405684
lea eax, [ebp - 0x34]
call fcn.00405ebc
lea eax, [ebp - 0x30]
call fcn.00405684
lea eax, [ebp - 0x2c]
call fcn.00405ebc
lea eax, [ebp - 0x28]
call fcn.00405684
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00405ed4
lea eax, [ebp - 0x14]
call fcn.00405684
lea eax, [ebp - 0x10]
call fcn.00405ebc
lea eax, [ebp - 0xc]
call fcn.00405684
lea eax, [ebp - 4]
call fcn.00405ebc
ret