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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push esi
push edi
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d68
xor eax, eax
push ebp
push 0x472699
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x88]
call fcn.00472058
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call dword [0x702144]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x47265f
xor eax, eax
push ebp
push 0x472658
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xac]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x90]
add eax, eax
lea eax, [eax + eax*4]
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x47261a
xor eax, eax
push ebp
push 0x472613
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [0x702148]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x472529
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x472529
mov dword [ebp - 0x24], 0xffffffff
cmp byte [ebp - 5], 0
je 0x472529
mov eax, dword [ebp - 0xc]
mov edi, eax
mov esi, 0x702134
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.00405448
call fcn.00405448
jmp 0x472683
cmp dword [ebp - 0x24], 0
jne 0x47253b
cmp dword [ebp - 0x28], 0
jbe 0x4725fc
jmp 0x472541
jle 0x4725fc
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x30]
sbb edx, dword [ebp - 0x2c]
push edx
push eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x472563
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x472570
jmp 0x472567
pop edx
pop eax
jle 0x472570
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 4
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4725cd
xor eax, eax
push ebp
push 0x4725c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.004720b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4725cd
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
mov eax, dword [ebp - 0x1c]
xor edx, edx
add eax, dword [ebp - 0x30]
adc edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x24]
jne 0x4725f0
cmp eax, dword [ebp - 0x28]
jb 0x4725f2
jmp 0x4725fc
jge 0x4725fc
cmp dword [ebp - 0x18], 0
jne 0x472541
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472641
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 5], 0
je 0x472641
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3ee
je 0x472641
mov eax, dword [ebp - 0xc]
mov edi, eax
mov esi, 0x702134
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.00405448
jmp 0x472683
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472675
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 5], 0
je 0x472675
mov eax, dword [ebp - 0xc]
mov edi, eax
mov esi, 0x702134
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 0x472683
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x88]
call fcn.00472198
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4726a0
lea eax, [ebp - 4]
call fcn.00406d70
ret