Function at 0x4c47c4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x4c47cc
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c4af7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov dl, 1
mov eax, dword [0x41928c]
call fcn.004033d4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
push ebp
push 0x4c48f9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.004044b8
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov ecx, 1
call fcn.00404718
mov eax, dword [ebp - 0x28]
mov edx, 0x4c4b10
call fcn.00404604
je 0x4c4854
mov eax, dword [ebp - 4]
add eax, 0x4c
mov edx, 0x4c4b10
call fcn.004044c0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4ba8b4]
call fcn.004bad9c
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, 0x50
mov ecx, dword [eax]
call dword [ecx + 0x8c]
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
mov eax, dword [ebp - 4]
push dword [eax + 0x34]
push 0x4c4b1c
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404578
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004baf1c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x34]
mov ecx, 0x4c4b2c
call fcn.00404504
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x1c]
call fcn.00403404
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c490d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
push ebp
push 0x4c4acd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x38]
mov ecx, 0x4c4b48
call fcn.00404504
mov ecx, dword [ebp - 0x38]
mov dl, 1
mov eax, dword [0x4343e8]
call fcn.00434498
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4c4ab4
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
xor eax, eax
push ebp
push 0x4c4a9e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ecx, 0x4c4b64
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 4]
push dword [eax + 0x30]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00404578
mov eax, dword [ebp - 0x40]
call fcn.00408fc4
test al, al
je 0x4c4a86
mov eax, dword [ebp - 4]
push dword [eax + 0x30]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404578
mov eax, dword [ebp - 0x48]
xor edx, edx
call fcn.00408e40
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.00408ff8
call fcn.00409338
fstp qword [ebp - 0x18]
wait
mov eax, dword [ebp - 0x10]
call fcn.00408f54
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ecx, 0x4c4b74
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x50]
call fcn.0040bc48
fcomp qword [ebp - 0x18]
fnstsw ax
sahf
jbe 0x4c4a94
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c4ab4
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c4ab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c4aa8
inc dword [ebp - 0xc]
dec dword [ebp - 0x24]
jne 0x4c497e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4ad4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.00403404
ret