Function at 0x4fa904
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x4fa90d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
call fcn.004051ac
xor eax, eax
push ebp
push 0x4fac48
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4fa9f4
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [0x5991ac], 4
je 0x4fa96d
lea edx, [ebp - 0x14]
mov eax, dword [0x4f8b84]
call fcn.004f8d6c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406590
jmp 0x4fa9d4
test byte [0x5991ac], 2
je 0x4fa993
lea edx, [ebp - 0x18]
mov eax, dword [0x4f8b28]
call fcn.004f8d08
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406590
jmp 0x4fa9d4
test byte [0x5991ac], 1
je 0x4fa9b9
lea edx, [ebp - 0x1c]
mov eax, dword [0x4f8acc]
call fcn.004f8ca4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406590
jmp 0x4fa9d4
lea edx, [ebp - 0x20]
mov eax, dword [0x551a90]
call fcn.00406a58
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x20]
or ecx, 0xffffffff
call fcn.00502f24
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0xfc]
call fcn.00406688
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4faa64
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405094
je 0x4faaaf
lea eax, [ebp - 0x138]
call fcn.00406578
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0xbc]
call fcn.00406688
mov eax, dword [ebp - 0x138]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
call fcn.00406688
cmp byte [ebp - 9], 0
jne 0x4faade
lea eax, [ebp - 0x10]
call fcn.00406578
push eax
push 0x4fac5c
push 0x4faca0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0xd0]
call fcn.00406688
jmp 0x4fab05
lea eax, [ebp - 0x10]
call fcn.00406578
push eax
push 0x4facac
push 0x4faca0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0xd0]
call fcn.00406688
lea eax, [ebp - 0x13c]
call fcn.00406578
push eax
lea eax, [ebp - 0x150]
call fcn.00406578
push eax
push 0
lea eax, [ebp - 0x154]
call fcn.00406578
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00406688
mov eax, dword [ebp - 0x154]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call fcn.00406688
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x14c]
call fcn.00415510
push dword [ebp - 0x140]
push dword [ebp - 0x144]
push dword [ebp - 0x148]
push dword [ebp - 0x14c]
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x48]
call fcn.00406688
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x120]
call fcn.00406688
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x118]
call fcn.00406688
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x110]
call fcn.00406688
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fac4f
lea eax, [ebp - 0x154]
call fcn.00406578
lea eax, [ebp - 0x150]
call fcn.00406578
lea eax, [ebp - 0x14c]
call fcn.00410de0
lea eax, [ebp - 0x13c]
call fcn.00406578
lea eax, [ebp - 0x138]
call fcn.00406578
lea eax, [ebp - 0x134]
call fcn.004047a8
lea eax, [ebp - 0x20]
call fcn.004047a8
lea eax, [ebp - 0x1c]
mov edx, dword [0x4f8a8c]
mov ecx, 3
call fcn.004052e8
lea eax, [ebp - 0x10]
call fcn.00406578
lea eax, [ebp - 8]
call fcn.00404eb4
ret