Function at 0x4be050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4be3a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov byte [eax + 4], 0x30
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004b58f8
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004b5928
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 4], 6
mov eax, dword [ebp - 0x18]
add eax, 0xc
mov edx, 0x4be3bc
call fcn.00404654
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.004b58f8
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004b5928
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov byte [eax + 4], 0xa0
xor edx, edx
mov eax, dword [ebp - 0x20]
call fcn.004b58f8
mov edx, eax
mov eax, dword [ebp - 0x20]
call fcn.004b5928
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 4], 4
mov dl, 1
mov eax, dword [0x4b5164]
call fcn.004b5484
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov byte [eax + 4], 0x30
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
test eax, eax
jl 0x4be319
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x12], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea ecx, [ebp - 0x12]
xor edx, edx
call fcn.004cc3dc
cmp word [ebp - 0x12], 0
jbe 0x4be231
movzx eax, word [ebp - 0x12]
push eax
lea eax, [ebp - 0x30]
mov ecx, 1
mov edx, dword [0x4be02c]
call fcn.004059c4
add esp, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea ecx, [ebp - 0x12]
mov edx, dword [ebp - 0x30]
call fcn.004cc3dc
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [eax + 0x1008]
push eax
movzx ecx, word [ebp - 0x12]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004be3c8
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
call fcn.00404c4c
lea eax, [ebp - 0x34]
call fcn.00404b18
push eax
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [eax + 0x1008]
push eax
movzx ecx, word [ebp - 0x12]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.004be3c8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4be1fa
mov eax, dword [ebp - 0x24]
call fcn.004037d0
jmp 0x4be37f
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
call fcn.00404c4c
xor edx, edx
mov eax, dword [ebp - 0x24]
call fcn.004b58f8
mov edx, eax
mov eax, dword [ebp - 0x24]
call fcn.004b5928
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov byte [eax + 6], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xc
mov edx, dword [ebp - 0x34]
call fcn.00404654
xor eax, eax
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x34]
movzx eax, word [eax + 0x1584]
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [eax + 0x1580]
mov eax, dword [ebp - 4]
pop ecx
call fcn.004bea3c
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
call fcn.00404c4c
lea eax, [ebp - 0x34]
call fcn.00404b18
push eax
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x34]
movzx eax, word [eax + 0x1584]
push eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [eax + 0x1580]
mov eax, dword [ebp - 4]
pop ecx
call fcn.004bea3c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4be2d0
mov eax, dword [ebp - 0x24]
call fcn.004037d0
jmp 0x4be37f
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
call fcn.00404c4c
xor edx, edx
mov eax, dword [ebp - 0x24]
call fcn.004b58f8
mov edx, eax
mov eax, dword [ebp - 0x24]
call fcn.004b5928
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov byte [eax + 6], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xc
mov edx, dword [ebp - 0x34]
call fcn.00404654
mov eax, dword [ebp - 4]
inc dword [eax + 0x30]
inc dword [ebp - 0x28]
dec dword [ebp - 0x38]
jne 0x4be11c
xor eax, eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
xor edx, edx
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 8]
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
call fcn.00404c4c
lea eax, [ebp - 0x34]
call fcn.00404b18
mov edx, eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [ebp - 0x24]
call fcn.004037d0
mov eax, dword [ebp - 0x18]
add eax, 0xc
mov edx, dword [ebp - 0x34]
call fcn.00404654
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x34]
call fcn.00404b18
mov edx, eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004bef84
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be3aa
lea eax, [ebp - 0x34]
call fcn.00404600
lea eax, [ebp - 0x30]
mov edx, dword [0x4be02c]
call fcn.004059d0
ret