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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
test dl, dl
je 0x44241a
add esp, 0xfffffff0
call fcn.00403e04
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4426e5
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00403ab4
mov eax, dword [ebp - 0xc]
mov dx, word [ebp + 8]
mov word [eax + 0x54], dx
test di, 3
je 0x442495
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x10]
call fcn.0040b8f4
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
mov eax, 0x442718
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea eax, [ebp - 0x54]
push eax
push 1
mov ecx, dword [0x461c28]
mov dl, 1
mov eax, dword [0x4152ec]
call fcn.0040f358
call fcn.0040426c
movzx edx, di
mov eax, dword [ebp - 0x10]
call fcn.0040b2e0
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], esi
test esi, esi
jge 0x4424f5
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x10]
call fcn.0040b8f4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x60]
call fcn.0040ea48
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea eax, [ebp - 0x54]
push eax
push 1
mov ecx, dword [0x461c28]
mov dl, 1
mov eax, dword [0x4152ec]
call fcn.0040f358
call fcn.0040426c
xor edx, edx
push ebp
push 0x44269f
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
jne 0x442560
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x10]
call fcn.0040b8f4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x68]
call fcn.0040ea48
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea eax, [ebp - 0x54]
push eax
push 1
mov ecx, dword [0x461c28]
mov dl, 1
mov eax, dword [0x4152ec]
call fcn.0040f358
call fcn.0040426c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x1c], edx
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x4425a6
test eax, eax
jne 0x4425ef
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
call fcn.0040b8f4
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x70]
call fcn.0040ea48
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea eax, [ebp - 0x54]
push eax
push 1
mov ecx, dword [0x461c28]
mov dl, 1
mov eax, dword [0x4152ec]
call fcn.0040f358
call fcn.0040426c
mov eax, dword [ebp - 0xc]
add eax, 0x30
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0xc]
cmp word [eax + 0x54], 0
ja 0x442695
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], esi
test esi, esi
jne 0x442672
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x10]
call fcn.0040b8f4
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x78]
call fcn.0040ea48
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea eax, [ebp - 0x54]
push eax
push 1
mov ecx, dword [0x461c28]
mov dl, 1
mov eax, dword [0x4152ec]
call fcn.0040f358
call fcn.0040426c
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x28], ecx
mov ecx, dword [edx + 0x1c]
mov dword [eax + 0x2c], ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4426c2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4426ec
lea eax, [ebp - 0x78]
mov edx, 9
call fcn.004048dc
lea eax, [ebp - 0x10]
call fcn.004048b8
ret