Function at 0x4be218
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4be566
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004be20c
test al, al
je 0x4be24e
mov eax, ebx
call fcn.004be200
test al, al
jne 0x4be252
xor eax, eax
jmp 0x4be254
mov al, 1
test al, al
je 0x4be28d
mov eax, dword [ebx + 0x9c]
call fcn.00460ae8
mov dword [ebx + 0x7c], eax
lea edi, [ebx + 0x94]
mov eax, dword [ebx + 0xa0]
mov edx, dword [eax]
call dword [edx + 0x84]
mov dword [edi], eax
mov eax, dword [ebx + 0xa0]
mov edx, dword [eax]
call dword [edx + 0x80]
mov dword [edi + 4], eax
mov eax, esi
mov edx, 0x4be57c
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
lea edx, [ebx + 0x30]
call fcn.004061ac
call fcn.004061d3
call fcn.004027d4
mov eax, esi
mov edx, 0x4be588
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
mov edx, dword [ebx + 0x2c]
call fcn.00402f3c
call fcn.004061d3
call fcn.004027d4
mov eax, esi
mov edx, 0x4be594
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
mov edx, dword [ebx + 0x80]
call fcn.00402f3c
call fcn.004061d3
call fcn.004027d4
push dword [ebx + 0x78]
push dword [ebx + 0x74]
lea edx, [ebp - 4]
mov eax, 0x4be5a0
call fcn.0040aedc
mov eax, dword [ebp - 4]
push eax
mov eax, esi
mov edx, 0x4be5bc
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
pop edx
call fcn.00404330
call fcn.004061d3
call fcn.004027d4
mov eax, esi
mov edx, 0x4be5c8
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
mov edx, dword [ebx + 0x7c]
call fcn.00402f3c
call fcn.004061d3
call fcn.004027d4
lea edx, [ebp - 4]
xor eax, eax
mov al, byte [ebx + 0x8f]
call fcn.00408bd4
mov eax, dword [ebp - 4]
push eax
mov eax, esi
mov edx, 0x4be5d4
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
pop edx
call fcn.00404330
call fcn.004061d3
call fcn.004027d4
mov eax, esi
mov edx, 0x4be5e0
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
mov edx, dword [ebx + 0x94]
call fcn.00402f3c
call fcn.004061d3
call fcn.004027d4
mov eax, esi
mov edx, 0x4be5ec
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
mov edx, dword [ebx + 0x98]
call fcn.00402f3c
call fcn.004061d3
call fcn.004027d4
lea edx, [ebp - 4]
mov eax, dword [ebx + 4]
call fcn.00419048
mov eax, dword [ebp - 4]
push eax
mov eax, esi
mov edx, 0x4be5f8
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
pop edx
call fcn.00404330
call fcn.004061d3
call fcn.004027d4
lea edx, [ebp - 4]
xor eax, eax
mov al, byte [ebx + 0xc]
call fcn.00408bd4
mov eax, dword [ebp - 4]
push eax
mov eax, esi
mov edx, 0x4be604
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
pop edx
call fcn.00404330
call fcn.004061d3
call fcn.004027d4
lea edx, [ebp - 4]
mov eax, dword [ebx + 0xd]
call fcn.00419048
mov eax, dword [ebp - 4]
push eax
mov eax, esi
mov edx, 0x4be610
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
pop edx
call fcn.00404330
call fcn.004061d3
call fcn.004027d4
mov eax, esi
mov edx, 0x4be61c
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
mov edx, dword [ebx + 0x11]
call fcn.00404330
call fcn.004061d3
call fcn.004027d4
mov eax, esi
mov edx, 0x4be628
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
mov edx, dword [ebx + 0x15]
call fcn.00402f3c
call fcn.004061d3
call fcn.004027d4
mov eax, esi
mov edx, 0x4be634
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
movzx edx, word [ebx + 0x28]
call fcn.00402f3c
call fcn.004061d3
call fcn.004027d4
lea edx, [ebp - 4]
mov al, byte [ebx + 0x19]
call fcn.0047c740
mov eax, dword [ebp - 4]
push eax
mov eax, esi
mov edx, 0x4be640
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
pop edx
call fcn.00404330
call fcn.004061d3
call fcn.004027d4
lea edx, [ebp - 0x20]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xc]
lea eax, [ebp - 0x20]
push eax
mov eax, esi
mov edx, 0x4be64c
call fcn.00404330
mov dl, 0x3d
call fcn.004061e7
pop edx
call fcn.004061ac
call fcn.004061d3
call fcn.004027d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be56d
lea eax, [ebp - 4]
call fcn.00403d20
ret