Function at 0x52069c
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.004069f0
xor eax, eax
push ebp
push 0x52090e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x80]
call fcn.005203a8
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00406a94
push eax
call dword [0x60b094]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x5208d9
xor eax, eax
push ebp
push 0x5208d2
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 0x520896
xor eax, eax
push ebp
push 0x52088f
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 [0x60b098]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x5207a8
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x5207a8
mov dword [ebp - 0x1c], 0xffffffff
test bl, bl
je 0x5207a8
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x60b084
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.00405308
call fcn.00405308
jmp 0x5208f8
cmp dword [ebp - 0x1c], 0
jne 0x5207ba
cmp dword [ebp - 0x20], 0
jbe 0x520878
jmp 0x5207c0
jle 0x520878
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 0x5207e2
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x5207ef
jmp 0x5207e6
pop edx
pop eax
jle 0x5207ef
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 0x520849
xor eax, eax
push ebp
push 0x520842
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.005203e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520849
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 0x52086c
cmp eax, dword [ebp - 0x20]
jb 0x52086e
jmp 0x520878
jge 0x520878
cmp dword [ebp - 0x14], 0
jne 0x5207c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5208bb
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
test bl, bl
je 0x5208bb
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3ee
je 0x5208bb
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x60b084
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.00405308
jmp 0x5208f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5208ed
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
test bl, bl
je 0x5208ed
mov eax, dword [ebp - 8]
mov edi, eax
mov esi, 0x60b084
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 0x5208f8
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x80]
call fcn.00520468
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x520915
lea eax, [ebp - 4]
call fcn.004069f8
ret