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

Disassembly:
mov eax, 0x4785d0
call fcn.00444d58
sub esp, 0x38
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
or dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 0x18], esi
je 0x43e73e
lea ecx, [ebp - 0x18]
call fcn.004057e6
mov dword [ebp - 0x18], esi
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp dword [ebp - 0x14], esi
je 0x43e75f
lea ecx, [ebp - 0x14]
call fcn.0040cd61
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], ebx
jne 0x43e78c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004057e6
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0043fbe2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040cd61
jmp 0x43e8c0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x40]
push eax
push ebx
push ebx
push 4
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x43e7c0
lea ecx, [ebp - 0x10]
call fcn.0043fbe2
mov eax, esi
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x43e764
cmp word [eax], 0x5a4d
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jne 0x43e8dc
mov esi, dword [eax + 0x3c]
push 0xf8
add esi, eax
mov dword [ebp + 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x43e926
cmp dword [esi], 0x4550
jne 0x43e926
mov eax, dword [esi + 0x54]
cmp dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
jae 0x43e8c4
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x1c]
push ebx
push ebx
push 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x43e83a
cmp eax, ebx
je 0x43e835
cmp edi, ebx
je 0x43e835
push eax
call edi
mov eax, esi
mov dword [ebp - 0x10], eax
cmp word [eax], 0x5a4d
mov dword [ebp + 8], eax
je 0x43e86b
cmp dword [ebp - 0x18], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x43e860
cmp esi, ebx
je 0x43e860
push dword [ebp - 0x18]
call esi
or dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x43e8b2
cmp edi, ebx
je 0x43e8b2
push eax
jmp 0x43e8ad
mov esi, dword [eax + 0x3c]
push 0xf8
add esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x43e888
cmp dword [esi], 0x4550
je 0x43e8c4
cmp dword [ebp - 0x18], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x43e8a1
cmp esi, ebx
je 0x43e8a1
push dword [ebp - 0x18]
call esi
or dword [ebp - 0x18], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x43e8b2
cmp edi, ebx
je 0x43e8b2
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x43e8c0
cmp esi, ebx
je 0x43e8c0
push dword [ebp - 0x14]
call esi
xor eax, eax
jmp 0x43e917
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0043e968
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
add esp, 0x10
cmp dword [ebp - 0x18], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x43e8f8
cmp esi, ebx
je 0x43e8f8
push dword [ebp - 0x18]
call esi
or dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x43e906
cmp edi, ebx
je 0x43e906
push eax
call edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x43e914
cmp esi, ebx
je 0x43e914
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004057e6
cmp dword [ebp - 0x10], ebx
je 0x43e948
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x43e948
push dword [ebp - 0x10]
call eax
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x43e8c0
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x43e8c0
push dword [ebp - 0x14]
call eax
jmp 0x43e8c0