Function at 0x618f80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x150
mov esi, esp
mov dword [esi + 0x138], ebp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x20]
mov dword [esi + 0x13c], esp
mov dword [esi + 0x148], 0xffffffff
mov dword [esi + 0x144], 0x622230
mov edx, dword fs:[0]
mov dword [esi + 0x140], edx
lea edx, [esi + 0x140]
mov dword fs:[0], edx
xor ebx, ebx
cmp edi, 0xffffffff
cmovne ebx, edi
mov edx, dword [ebp + 8]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], 0xffffffff
mov edi, dword [edx]
mov edx, 2
mov dword [esi + 4], 4
cmp eax, 0xc0000000
jg 0x61902b
cmp eax, 0x80000000
je 0x619061
cmp eax, 0xc0000000
jne 0x619039
mov edx, 4
mov dword [esi + 4], 2
jmp 0x619061
cmp eax, 0xc0000001
je 0x619055
cmp eax, 0xc0000002
je 0x619061
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0x11
lea eax, [esi + 0x18]
lea edi, [esi + 0x10c]
jmp 0x619257
mov edx, 8
mov dword [esi + 4], 1
mov dword [esi + 0xc], ecx
push edx
mov dword [esi + 0x4c], edi
push edi
call fcn.00621fd0
mov dword [esi + 8], eax
test eax, eax
je 0x6191db
mov eax, dword [0xb533e0]
test eax, eax
mov dword [esi + 0x50], ebx
jne 0x61909b
mov dword [esi + 0x148], 0
lea eax, [esi + 0x18]
push eax
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [esi + 0x34]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push 0
push eax
push ebx
push edi
call fcn.00765bf0
mov ecx, dword [ebp + 0x1c]
mov edx, ecx
sub edx, eax
test ecx, ecx
cmove edx, ecx
mov dword [esi + 0x148], 2
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x10], ecx
cmp dword [ebp + 0x18], 0
mov dword [esi + 0x14], eax
jne 0x619146
mov dword [esi + 0x48], edx
push 4
call fcn.0061cf10
add esp, 4
mov ecx, eax
mov dword [esi + 0x148], 0xffffffff
call dword [0xb0836c]
mov dword [esi + 0x148], 2
lea eax, [esi + 0x18]
push 0
push 0x10
push eax
push 0
push dword [esi + 8]
call ecx
test eax, eax
jne 0x619299
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov ecx, dword [ebp + 0x10]
mov edi, eax
cmp eax, ecx
mov ecx, edx
mov ebx, dword [ebp + 0x14]
sbb ecx, ebx
mov eax, dword [esi + 0x14]
jl 0x61926c
sub edi, dword [ebp + 0x10]
sbb edx, ebx
mov dword [esi + 0x10], edi
add edi, eax
adc edx, 0
jne 0x61926c
mov edi, dword [ebp + 0x10]
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 4]
or ecx, dword [esi + 0x50]
mov dword [esi + 4], ecx
mov ecx, ebx
mov ebx, dword [esi + 0x10]
add ebx, eax
sub edi, eax
sbb ecx, 0
push edx
push ebx
push edi
push ecx
push dword [esi + 4]
push dword [esi + 8]
call sub.KERNEL32.dll_MapViewOfFileEx
test eax, eax
je 0x6191fa
mov ecx, dword [esi + 0x14]
add eax, ecx
mov edx, dword [esi + 0xc]
mov dword [edx], eax
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x10]
mov dword [edx + 4], eax
mov dword [esi + 0x148], 1
push dword [esi + 8]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [esi + 0xc]
lea ebx, [eax + 0x10]
mov dword [esi + 0x148], 0xffffffff
call sub.KERNEL32.dll_GetCurrentProcess
mov edi, eax
call sub.KERNEL32.dll_GetCurrentProcess
push ebx
push edi
push dword [esi + 0x4c]
push eax
call fcn.00622150
test eax, eax
je 0x619232
mov eax, dword [esi + 0x140]
mov dword fs:[0], eax
mov eax, dword [esi + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
call fcn.00619b50
mov dword [esi + 0x18], eax
push eax
call fcn.00620840
add esp, 4
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
lea edi, [esi + 0xe0]
jmp 0x619257
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0x18], eax
push eax
call fcn.00620840
add esp, 4
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
lea ecx, [esi + 0x5c]
push 0
push eax
call fcn.006196f0
push 0xafd5b8
lea eax, [esi + 0x5c]
push eax
call fcn.0077d4eb
add esp, 8
jmp 0x6192d2
call fcn.00619b50
mov dword [esi + 0x18], eax
push eax
call fcn.00620840
add esp, 4
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 0xc]
call fcn.00620e20
lea eax, [esi + 0x18]
lea edi, [esi + 0xb4]
mov ecx, edi
push 0
push eax
call fcn.006196f0
push 0xafd5b8
push edi
call fcn.0077d4eb
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0x12
lea eax, [esi + 0x54]
lea ecx, [esi + 0x18]
push 0
push eax
call fcn.006196f0
push 0xafd5b8
lea eax, [esi + 0x18]
push eax
call fcn.0077d4eb
add esp, 8
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0x18], eax
push eax
call fcn.00620840
add esp, 4
mov dword [esi + 0x1c], eax
lea ecx, [esi + 0x88]
push 0
lea eax, [esi + 0x18]
push eax
call fcn.006196f0
push 0xafd5b8
lea eax, [esi + 0x88]
push eax
call fcn.0077d4eb
add esp, 8
nop word cs:[eax + eax]
push ebp
sub esp, 0x18
lea esi, [ebp - 0x14c]
mov ebp, dword [esi + 0x138]
call fcn.0077ccd0
nop word cs:[eax + eax]
push ebp
sub esp, 0x18
lea esi, [ebp - 0x14c]
mov ebp, dword [esi + 0x138]
push dword [esi + 8]
call sub.KERNEL32.dll_CloseHandle
add esp, 0x18
pop ebp
ret