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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov eax, dword [0x850124]
test eax, eax
je 0x510890
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xffff
call eax
sub esp, 0xc
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x10a1
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
jne 0x51066e
xor eax, eax
cmp ecx, 0x57
sete al
mov dword [esp + 0xc], ecx
lea esi, [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.got__d__error__ld_n
mov dword [esp], eax
call fcn.0050e8b0
mov dword [ebp - 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [0x850124]
sub esp, 0xc
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x10a5
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
jne 0x5106d8
xor eax, eax
cmp ecx, 0x7a
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.got__d__error__ld_n
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x10a6
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0x5ef97c
test eax, eax
mov dword [esp + 8], eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov dword [ebp - 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0xffff
call dword [0x850124]
sub esp, 0xc
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x10aa
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
je 0x510880
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.got__d__error__ld_n
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x10ab
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 0x5ef97c
test eax, eax
mov dword [esp + 8], eax
setne al
movzx eax, al
mov dword [esp], eax
mov edi, dword fs:[0x18]
call fcn.0050e8b0
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], 8
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0xffff
call dword [0x850124]
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x10af
mov eax, dword [edi + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.got__d__error__ld_n
mov dword [esp], esi
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x10b0
mov eax, dword [ebx + 4]
mov dword [esp + 4], 0x5ef97c
test eax, eax
mov dword [esp + 8], eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
cmp ecx, 0x7a
sete al
jmp 0x51076c
mov eax, 0x109c
call fcn.0050dc60
mov dword [esp], str.GetLogicalProcessorInformationEx___is_not_supported_n
call fcn.0050e770
jmp 0x510875