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

Disassembly:
mov eax, 0x460fac
call fcn.0043bc08
sub esp, 0x34
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp dword [ebp - 0x14], esi
je 0x4193dc
lea ecx, [ebp - 0x14]
call fcn.00419930
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], 0xffffffff
je 0x419440
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp dword [ebp - 0x10], esi
je 0x419403
lea ecx, [ebp - 0x10]
call fcn.00419930
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x10], ebx
je 0x419440
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
push eax
push ebx
push ebx
push 4
push dword [ebp - 0x10]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x41943c
lea ecx, [ebp - 0x18]
call fcn.0041a5f3
mov eax, esi
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x419472
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.0041a5f3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00419930
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00419930
mov eax, esi
jmp 0x4195f2
cmp word [eax], 0x5a4d
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jne 0x419585
mov esi, dword [eax + 0x3c]
push 0xf8
add esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x419554
cmp dword [esi], 0x4550
jne 0x419554
mov eax, dword [esi + 0x54]
cmp dword [ebp + 8], eax
mov dword [ebp - 0x1c], eax
jae 0x419580
push dword [ebp - 0x18]
call edi
push dword [ebp - 0x1c]
push ebx
push ebx
push 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x4194e5
cmp eax, ebx
je 0x4194e0
cmp edi, ebx
je 0x4194e0
push eax
call edi
mov eax, esi
mov dword [ebp - 0x18], eax
cmp word [eax], 0x5a4d
je 0x4194f7
cmp eax, ebx
je 0x419525
cmp edi, ebx
je 0x419525
push eax
jmp 0x419520
mov esi, dword [eax + 0x3c]
push 0xf8
add esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x419514
cmp dword [esi], 0x4550
je 0x419580
cmp dword [ebp - 0x18], ebx
je 0x419525
cmp edi, ebx
je 0x419525
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x41953c
cmp esi, ebx
je 0x41953c
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x41954a
cmp esi, ebx
je 0x41954a
push dword [ebp - 0x14]
call esi
mov eax, 0xc1
jmp 0x4195f2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041a5f3
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00419930
cmp dword [ebp - 0x14], ebx
je 0x41954a
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x41954a
push dword [ebp - 0x14]
call eax
jmp 0x41954a
mov eax, dword [ebp - 0x18]
jmp 0x419588
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x419596
mov dword [ecx], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x4195a5
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ecx], edx
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x4195b4
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ecx], edx
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x4195bd
mov dword [ecx], esi
cmp eax, ebx
je 0x4195cb
cmp edi, ebx
je 0x4195cb
push eax
call edi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4195e2
cmp esi, ebx
je 0x4195e2
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x4195f0
cmp esi, ebx
je 0x4195f0
push dword [ebp - 0x14]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret