Function at 0x47aff0
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x7c
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
cmp dword [0x528bd4], 0xffffffff
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x54], eax
je 0x47b140
mov eax, dword [ebp + 0xc]
cmp byte [ebp - 0x54], 1
mov dword [esp], eax
sbb esi, esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
and esi, 2
add esi, 2
mov dword [ebx + 0x20], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
sub esp, 0x18
test eax, eax
mov dword [ebx + 0x24], eax
je 0x47b160
mov dword [ebp - 0x58], eax
mov eax, dword [0x528bd4]
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], ebx
mov dword [esp + 8], eax
sar eax, 0x1f
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004a8010
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp + 0x18]
mov dword [esp + 8], 0
mov edi, eax
sar edi, 0x1f
sub ecx, eax
sbb ebx, edi
add esi, eax
cmp byte [ebp - 0x54], 1
mov dword [ebp - 0x68], ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
sbb eax, eax
and eax, 0xf001b
add eax, 4
mov dword [ebp - 0x64], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, dword [ebp - 0x5c]
sub esp, 0x14
test eax, eax
mov edx, eax
mov dword [ebx + 8], eax
je 0x47b195
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
je 0x47b110
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], edx
mov dword [esp], eax
call sub.msvcrt.dll__strdup
mov edx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x4c]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0xc], esi
mov esi, dword [ebp - 0x50]
mov dword [ebx + 0x14], edi
mov edi, dword [ebp - 0x60]
mov dword [ebx + 0x1c], eax
mov eax, 1
mov dword [ebx + 0x10], esi
add edi, edx
mov dword [ebx + 0x18], edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [0x528bd4], eax
sub esp, 4
jmp 0x47b01a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], str.CreateFileMapping__p___x__failed_with_error__d_n
mov dword [esp + 4], str.filemap
mov dword [esp], 6
mov dword [esp + 0xc], eax
call fcn.004750f0
xor eax, eax
jmp 0x47b135
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x64]
mov dword [esp + 0x14], esi
mov dword [esp + 8], str.MapViewOfFile__lld___zu__failed_with_error__d_n
mov dword [esp + 4], str.filemap
mov dword [esp + 0x10], edx
mov dword [esp], 6
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 0xc], eax
call fcn.004750f0
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebx + 0x24], 0xffffffff
sub esp, 4
jmp 0x47b135