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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x622f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], esp
push 0x6d8bc4
call fcn.0053cb80
xor esi, esi
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x78]
mov dword [ebp - 0x7c], esi
mov ebx, 9
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], edi
jmp 0x541a6a
mov edi, dword [ebp - 0x2c]
xor esi, esi
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
push esi
mov esi, dword [ebp + 8]
push edx
push ebx
push esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x541a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x541c7a
lea eax, [ebp - 0x20]
push 0
push eax
lea ecx, [ebp - 0x58]
push 0xf
push ecx
push esi
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x541c7a
cmp dword [ebp - 0x20], 0xf
jne 0x541c7a
mov edx, dword [ebp - 0x58]
push edx
call sub.WS2_32.dll_ntohl
mov cx, word [ebp - 0x53]
mov dl, byte [ebp - 0x51]
xor eax, eax
mov byte [ebp - 0x14], 0
mov word [ebp - 0x13], ax
mov word [ebp - 0x13], cx
mov byte [ebp - 0x11], al
mov byte [ebp - 0x11], dl
mov eax, dword [ebp - 0x14]
push eax
call sub.WS2_32.dll_ntohl
mov dx, word [ebp - 0x50]
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov al, byte [ebp - 0x4e]
mov word [ebp - 0x17], cx
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x15], cl
mov word [ebp - 0x17], dx
mov byte [ebp - 0x15], al
mov ecx, dword [ebp - 0x18]
push ecx
call sub.WS2_32.dll_ntohl
cmp byte [ebp - 0x54], 0x12
jne 0x541c50
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x18]
fld qword [eax + 0x18]
fcomp qword [0x633be8]
fnstsw ax
test ah, 0x41
jne 0x541c50
mov ecx, dword [ebp - 0x34]
xor esi, esi
push esi
push edi
push ecx
push ebx
call fcn.005dffe0
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x34]
mov ebx, eax
mov eax, dword [ebp - 0x38]
push esi
push edi
push edx
push eax
call fcn.005e0090
mov edi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x541b80
mov ecx, dword [ebp + 8]
push esi
push esi
push esi
push 4
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x541c4d
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
push edx
push ebx
push esi
push eax
call fcn.005e09d0
mov ecx, dword [ebp - 0x28]
lea ecx, [edi + ecx + 0xf]
push ecx
push eax
push edx
mov edx, dword [ebp - 0x1c]
push 6
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x541c47
lea ebx, [eax + edi + 0xb]
mov esi, 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff2
cmp esi, eax
jae 0x541c2f
lea edi, [esi + ebx]
push 0xd
push 0x6d8bb4
push edi
call fcn.005e0470
add esp, 0xc
test eax, eax
jne 0x541c00
xor al, al
test al, al
jne 0x541bfb
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [edx + 0x18]
lea edx, [esi + ebx + 0xe]
push ecx
push edx
call fcn.0053c5a0
add esp, 0xc
add esi, 0xe
jmp 0x541bb9
push 8
push 0x6c4154
push edi
call fcn.005e0470
add esp, 0xc
test eax, eax
jne 0x541c41
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ecx + 0x18]
lea ecx, [esi + ebx + 9]
push eax
push ecx
call fcn.0053c5a0
add esp, 0xc
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x541c4d
inc esi
jmp 0x541bb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
add eax, 0xf
add ebx, eax
mov eax, dword [ebp - 0x34]
adc eax, 0
mov dword [ebp - 0x38], ebx
cmp eax, ecx
mov dword [ebp - 0x34], eax
jl 0x541a65
jg 0x541c7a
cmp ebx, dword [ebp + 0xc]
jbe 0x541a65
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x541c88
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc