Function at 0x50ae68
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
test dl, dl
je 0x50ae7b
add esp, 0xfffffff0
call fcn.00408578
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x50b17e
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00407ea0
xor eax, eax
mov dword [esi + 0x168], eax
lea eax, [esi + 0x16c]
call fcn.00409d60
xor eax, eax
mov dword [esi + 0x8c], eax
lea eax, [esi + 4]
call fcn.00409d60
lea eax, [esi + 8]
call fcn.00409d60
lea eax, [esi + 0xc]
call fcn.00409d60
lea eax, [esi + 0x10]
call fcn.00409d60
lea eax, [esi + 0x14]
call fcn.00409d60
lea eax, [esi + 0x18]
call fcn.00409d60
lea eax, [esi + 0x20]
call fcn.00409d60
lea eax, [esi + 0x24]
call fcn.00409d60
lea eax, [esi + 0x28]
call fcn.00409d60
lea eax, [esi + 0x2c]
call fcn.00409d60
mov dword [esi + 0x30], 0x63
lea eax, [esi + 0x34]
call fcn.00409d60
lea eax, [esi + 0x38]
call fcn.00409d60
lea eax, [esi + 0x3c]
call fcn.00409d60
mov byte [esi + 0x40], 0
mov byte [esi + 0x41], 1
mov byte [esi + 0x42], 0
mov byte [esi + 0x43], 0
xor eax, eax
mov dword [esi + 0x44], eax
xor eax, eax
mov dword [esi + 0x48], eax
mov byte [esi + 0x4c], 0
mov byte [esi + 0x4d], 0
mov byte [esi + 0x4e], 0
mov byte [esi + 0x4f], 0
xor eax, eax
mov dword [esi + 0x50], eax
lea eax, [esi + 0x54]
call fcn.00409d60
xor eax, eax
mov dword [esi + 0x58], eax
mov byte [esi + 0x5c], 0
mov byte [esi + 0x5d], 1
mov byte [esi + 0x5e], 0
mov byte [esi + 0x5f], 0
mov byte [esi + 0x60], 0
mov byte [esi + 0x6c], 1
mov byte [esi + 0x6d], 1
mov byte [esi + 0x6e], 1
mov byte [esi + 0x6f], 0
xor eax, eax
mov dword [esi + 0x64], eax
xor eax, eax
mov dword [esi + 0x68], eax
mov byte [esi + 0x70], 1
xor eax, eax
mov dword [esi + 0x74], eax
mov byte [esi + 0x78], 0
mov byte [esi + 0x79], 0
lea eax, [esi + 0x90]
call fcn.0040d828
mov byte [esi + 0x7a], 0
mov byte [esi + 0x7b], 0
mov byte [esi + 0x80], 1
mov byte [esi + 0x81], 0
mov byte [esi + 0x82], 0
mov byte [esi + 0x7c], 0
mov byte [esi + 0x71], 0
mov byte [esi + 0x7d], 1
mov byte [esi + 0x7e], 0
mov byte [esi + 0x7f], 0
mov byte [esi + 0x164], 1
mov byte [esi + 0x165], 1
lea eax, [esi + 0x1c]
call fcn.00409d60
mov eax, esi
call fcn.0050caa4
mov dword [esi + 0x170], eax
xor eax, eax
mov dword [esi + 0x174], eax
lea eax, [esi + 0x178]
call fcn.00409d60
mov byte [esi + 0x17c], 0
xor eax, eax
mov dword [esi + 0x180], eax
mov byte [esi + 0x184], 0
mov byte [esi + 0x185], 1
mov byte [esi + 0x186], 0
lea eax, [esi + 0x188]
call fcn.0040d828
lea eax, [esi + 0x18c]
call fcn.0040d828
lea eax, [esi + 0x190]
call fcn.0040d828
lea eax, [esi + 0x194]
call fcn.0040d828
lea eax, [esi + 0x198]
call fcn.0040d828
lea eax, [esi + 0x19c]
call fcn.0040d828
lea eax, [esi + 0x1a0]
call fcn.0040d828
lea eax, [esi + 0x1a4]
call fcn.0040d828
lea eax, [esi + 0x1a8]
call fcn.0040d828
lea eax, [esi + 0x1ac]
call fcn.0040d828
lea eax, [esi + 0x1b0]
call fcn.0040d828
lea eax, [esi + 0x1b4]
call fcn.0040d828
lea eax, [esi + 0x1b8]
call fcn.0040d828
lea eax, [esi + 0x1bc]
call fcn.0040d828
lea eax, [esi + 0x1c0]
call fcn.0040d828
lea eax, [esi + 0x1c4]
call fcn.0040d828
lea eax, [esi + 0x1c8]
call fcn.0040d828
mov eax, esi
call fcn.0050bf2c
lea eax, [esi + 0x94]
xor ecx, ecx
mov edx, 0xcc
call fcn.004078b0
mov dword [esi + 0x94], 0xcc
mov word [esi + 0x84], 0x44
mov word [esi + 0x86], 0
mov word [esi + 0x88], 0xd70
mov word [esi + 0x8a], 0x54
cmp dword [esi + 0x170], 0
jne 0x50b154
lea edx, [ebp - 4]
mov eax, esi
call fcn.0050b584
mov eax, dword [ebp - 4]
lea edx, [esi + 0x84]
call fcn.005140a8
mov eax, dword [0x51f950]
mov byte [eax], 1
movzx eax, byte [0x50b1a4]
call fcn.0043dbe8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b185
lea eax, [ebp - 4]
call fcn.00409d60
ret