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

Disassembly:
mov eax, 0x461c24
call fcn.0043c274
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 0x4193ed
lea ecx, [ebp - 0x14]
call fcn.00419941
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], 0xffffffff
je 0x419451
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 0x419414
lea ecx, [ebp - 0x10]
call fcn.00419941
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x10], ebx
je 0x419451
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 0x41944d
lea ecx, [ebp - 0x18]
call fcn.0041a5c9
mov eax, esi
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x419483
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.0041a5c9
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00419941
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00419941
mov eax, esi
jmp 0x419603
cmp word [eax], 0x5a4d
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jne 0x419596
mov esi, dword [eax + 0x3c]
push 0xf8
add esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x419565
cmp dword [esi], 0x4550
jne 0x419565
mov eax, dword [esi + 0x54]
cmp dword [ebp + 8], eax
mov dword [ebp - 0x1c], eax
jae 0x419591
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 0x4194f6
cmp eax, ebx
je 0x4194f1
cmp edi, ebx
je 0x4194f1
push eax
call edi
mov eax, esi
mov dword [ebp - 0x18], eax
cmp word [eax], 0x5a4d
je 0x419508
cmp eax, ebx
je 0x419536
cmp edi, ebx
je 0x419536
push eax
jmp 0x419531
mov esi, dword [eax + 0x3c]
push 0xf8
add esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x419525
cmp dword [esi], 0x4550
je 0x419591
cmp dword [ebp - 0x18], ebx
je 0x419536
cmp edi, ebx
je 0x419536
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 0x41954d
cmp esi, ebx
je 0x41954d
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x41955b
cmp esi, ebx
je 0x41955b
push dword [ebp - 0x14]
call esi
mov eax, 0xc1
jmp 0x419603
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0041a5c9
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00419941
cmp dword [ebp - 0x14], ebx
je 0x41955b
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x41955b
push dword [ebp - 0x14]
call eax
jmp 0x41955b
mov eax, dword [ebp - 0x18]
jmp 0x419599
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x4195a7
mov dword [ecx], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x4195b6
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ecx], edx
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x4195c5
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ecx], edx
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x4195ce
mov dword [ecx], esi
cmp eax, ebx
je 0x4195dc
cmp edi, ebx
je 0x4195dc
push eax
call edi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4195f3
cmp esi, ebx
je 0x4195f3
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x419601
cmp esi, ebx
je 0x419601
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