Function at 0x4f45b8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00404c80
mov eax, dword [ebp + 0xc]
call fcn.00404c80
xor eax, eax
push ebp
push 0x4f4866
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jle 0x4f4605
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004e0f18
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004a869c
test eax, eax
jle 0x4f4643
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404868
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
call fcn.00404868
lea eax, [ebp + 0xc]
mov edx, dword [ebp - 0x24]
call fcn.00404868
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004eaef8
test al, al
je 0x4f469e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x3b0]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0xc]
xor edx, edx
mov dl, byte [ebx + 0x3a6]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x3b0]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 0x3a6]
add eax, edx
mov dword [ebp - 0x20], eax
jmp 0x4f4800
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x2b0]
mov edx, dword [eax]
call dword [edx + 0x28]
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4f47f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x2b0]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004e0f18
mov eax, dword [eax + 0x30]
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004e0f18
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.004a869c
test eax, eax
jge 0x4f4710
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x4f471d
push ebp
mov eax, dword [ebp - 0xc]
call fcn.004f44dc
pop ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4f4737
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x2b0]
mov edx, dword [eax]
call dword [edx + 0x38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
xor eax, eax
mov al, byte [ebx + 0x3a6]
add dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x2b0]
mov edx, dword [eax]
call dword [edx + 0x38]
test eax, eax
jle 0x4f4774
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x2b0]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x38]
mov edx, eax
dec edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004e0f18
mov eax, dword [eax + 0x30]
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004e0f18
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
call fcn.004a869c
test eax, eax
jle 0x4f47ba
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004ef0f8
mov dword [ebp - 0x20], eax
jmp 0x4f47c7
push ebp
mov eax, dword [ebp + 0xc]
call fcn.004f44dc
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
movzx eax, byte [eax + 0x3a6]
add dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4800
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x2b0]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x48]
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 0x10]
call fcn.004dd178
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004dd178
mov edx, eax
mov eax, ebx
mov ecx, dword [ebp - 0x1c]
call fcn.004ee034
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f486d
lea eax, [ebp - 0x24]
call fcn.004047d0
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004047f4
lea eax, [ebp - 0xc]
call fcn.004047d0
lea eax, [ebp + 0xc]
call fcn.004047d0
ret