Function at 0x402b44
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.004012a0
xor eax, eax
push ebp
push 0x402db6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x80]
call fcn.004028f4
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004012c8
push eax
call dword [0x4ab070]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x402d81
xor eax, eax
push ebp
push 0x402d7a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xa4]
push eax
call sub.kernel32.dll_GetSystemInfo
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 0x402d3e
xor eax, eax
push ebp
push 0x402d37
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 [0x4ab074]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x402c50
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x402c50
mov dword [ebp - 0x1c], 0xffffffff
test bl, bl
je 0x402c50
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x4ab060
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.004011d8
call fcn.004011d8
jmp 0x402da0
cmp dword [ebp - 0x1c], 0
jne 0x402c62
cmp dword [ebp - 0x20], 0
jbe 0x402d20
jmp 0x402c68
jle 0x402d20
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 0x402c8a
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x402c97
jmp 0x402c8e
pop edx
pop eax
jle 0x402c97
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 0x402cf1
xor eax, eax
push ebp
push 0x402cea
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.00402928
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402cf1
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 0x402d14
cmp eax, dword [ebp - 0x20]
jb 0x402d16
jmp 0x402d20
jge 0x402d20
cmp dword [ebp - 0x14], 0
jne 0x402c68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d63
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
test bl, bl
je 0x402d63
call sub.kernel32.dll_GetLastError
cmp eax, 0x3ee
je 0x402d63
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x4ab060
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.004011d8
jmp 0x402da0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d95
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
test bl, bl
je 0x402d95
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x4ab060
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 0x402da0
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x80]
call fcn.004029ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402dbd
lea eax, [ebp - 4]
call fcn.004012a8
ret