Function at 0x43ef50
Capabilities:
Get system information on windows
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0328
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x5210b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], edx
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x43efbe
mov edi, eax
mov dword [ebp - 0x20], edi
cmp eax, 0xffffffff
je 0x43f0ef
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x43f0ef
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
push eax
push 0
push 0
push 4
push ebx
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x43f0ef
mov esi, ecx
mov eax, 0x5a4d
mov dword [ebp - 0x14], esi
cmp word [ecx], ax
jne 0x43f0ad
mov eax, dword [ecx + 0x3c]
add eax, ecx
push 0xf8
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x43f0a4
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
jne 0x43f0a4
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x24], ecx
jae 0x43f0b0
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x10]
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
lea ecx, [ebp - 0x14]
call fcn.004406a0
mov esi, dword [ebp - 0x14]
mov eax, 0x5a4d
cmp word [esi], ax
je 0x43f081
mov dword [ebp - 0x10], 0xc1
jmp 0x43f0f8
mov eax, dword [esi + 0x3c]
add eax, esi
push 0xf8
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x43f0a4
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
je 0x43f0b0
mov dword [ebp - 0x10], 0xc1
jmp 0x43f0f8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x43f0be
mov dword [ecx], esi
xor esi, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x43f0cc
mov dword [ecx], edi
xor edi, edi
mov dword [ebp - 0x20], edi
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x43f0dd
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
mov dword [edx], ecx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43f0e6
mov dword [ecx], eax
mov dword [ebp - 0x10], 0
jmp 0x43f0f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test esi, esi
je 0x43f113
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x43f113
push esi
call eax
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x43f12f
test esi, esi
je 0x43f12f
push ebx
call esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x43f148
test esi, esi
je 0x43f148
push edi
call esi
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret