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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406998
xor eax, eax
push ebp
push 0x536ef2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x80]
call fcn.0053698c
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00406a3c
push eax
call dword [0x620190]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x536ebd
xor eax, eax
push ebp
push 0x536eb6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x88]
add eax, eax
lea eax, [eax + eax*4]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x536e7a
xor eax, eax
push ebp
push 0x536e73
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x620194]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x536d8c
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x536d8c
mov dword [ebp - 0x1c], 0xffffffff
test bl, bl
je 0x536d8c
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x620180
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004052e4
call fcn.004052e4
jmp 0x536edc
cmp dword [ebp - 0x1c], 0
jne 0x536d9e
cmp dword [ebp - 0x20], 0
jbe 0x536e5c
jmp 0x536da4
jle 0x536e5c
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x28]
sbb edx, dword [ebp - 0x24]
push edx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x536dc6
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x536dd3
jmp 0x536dca
pop edx
pop eax
jle 0x536dd3
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x536e2d
xor eax, eax
push ebp
push 0x536e26
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.005369c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536e2d
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
mov eax, dword [ebp - 0x18]
xor edx, edx
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x1c]
jne 0x536e50
cmp eax, dword [ebp - 0x20]
jb 0x536e52
jmp 0x536e5c
jge 0x536e5c
cmp dword [ebp - 0x14], 0
jne 0x536da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536e9f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
test bl, bl
je 0x536e9f
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3ee
je 0x536e9f
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x620180
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004052e4
jmp 0x536edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536ed1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
test bl, bl
je 0x536ed1
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x620180
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x536edc
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x80]
call fcn.00536a4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536ef9
lea eax, [ebp - 4]
call fcn.004069a0
ret