Function at 0x50b394
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe50
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x1b0], edi
mov dword [ebp - 0x1a8], edi
mov dword [ebp - 0x1a4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
lea ebx, [ebp - 0x60]
xor edx, edx
push ebp
push 0x50b5d3
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x18]
mov eax, edi
call fcn.0050ac94
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0050ac94
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0050ac94
mov eax, ebx
xor ecx, ecx
mov edx, 0x40
call fcn.00403268
mov edx, ebx
mov ecx, 8
mov eax, 0x50b5ec
call fcn.00402ab0
mov dword [ebx + 8], 3
mov eax, dword [ebp - 0x18]
call fcn.00404b00
mov ecx, eax
mov word [ebx + 0x1c], cx
mov word [ebx + 0x1e], cx
mov dword [ebx + 0x20], 0x40
mov eax, dword [ebp - 0x20]
call fcn.00404b00
mov edx, eax
mov word [ebx + 0x24], dx
mov word [ebx + 0x26], dx
movzx eax, word [ebx + 0x1c]
add eax, dword [ebx + 0x20]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x1c]
call fcn.00404b00
mov edi, eax
mov word [ebx + 0x2c], di
mov word [ebx + 0x2e], di
movzx eax, word [ebx + 0x24]
add eax, dword [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov ax, 0x18
mov word [ebx + 0xc], ax
mov word [ebx + 0xe], ax
movzx eax, word [ebx + 0x2c]
add eax, dword [ebx + 0x30]
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], 0x18
mov ax, word [ebx + 0xc]
mov word [ebx + 0x16], ax
movzx ecx, word [ebx + 0xc]
add ecx, dword [ebx + 0x10]
mov dword [ebx + 0x18], ecx
mov word [ebx + 0x34], 0
mov word [ebx + 0x36], 0
xor eax, eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0x8205
lea ecx, [ebp - 0x1a4]
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0050adf4
mov edx, dword [ebp - 0x1a4]
lea eax, [ebp - 0x1a0]
mov ecx, 0xff
call fcn.00404adc
lea edx, [ebp - 0x1a0]
lea eax, [ebp - 0x7f]
mov cl, 0x1e
call fcn.00403158
lea ecx, [ebp - 0x1a8]
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0050af88
mov edx, dword [ebp - 0x1a8]
lea eax, [ebp - 0x1a0]
mov ecx, 0xff
call fcn.00404adc
lea edx, [ebp - 0x1a0]
lea eax, [ebp - 0x9e]
mov cl, 0x1e
call fcn.00403158
lea eax, [ebp - 0x14]
mov edx, 0x40
call fcn.00404e84
lea ecx, [ebp - 0x14]
call fcn.00404d50
mov edx, ecx
mov eax, ebx
mov ecx, 0x40
call fcn.00402ab0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1ac]
lea edx, [ebp - 0x7f]
call fcn.00404aa4
push dword [ebp - 0x1ac]
lea edx, [ebp - 0x1b0]
lea edx, [ebp - 0x9e]
call fcn.00404aa4
push dword [ebp - 0x1b0]
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.00404bc0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
call fcn.0050a880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b5da
mov edx, 4
lea eax, [ebp - 0x1b0]
call fcn.0040486c
mov edx, 4
lea eax, [ebp - 0x20]
call fcn.0040486c
ret