Function at 0x765210
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x148
mov esi, esp
mov dword [esi + 0x130], ebp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x20]
mov dword [esi + 0x134], esp
mov dword [esi + 0x140], 0xffffffff
mov dword [esi + 0x13c], 0x76db00
mov edx, dword fs:[0]
mov dword [esi + 0x138], edx
lea edx, [esi + 0x138]
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
cmp eax, 0xc0000000
jg 0x7652b9
cmp eax, 0x80000000
je 0x7652ee
cmp eax, 0xc0000000
jne 0x7652c7
mov edx, 4
mov dword [esi], 2
jmp 0x7652ee
cmp eax, 0xc0000001
je 0x7652e3
cmp eax, 0xc0000002
je 0x7652ee
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x11
lea eax, [esi + 0x10]
lea edi, [esi + 0x104]
jmp 0x7654d2
mov edx, 8
mov dword [esi], 1
mov dword [esi + 8], ecx
push 0
push 0
push 0
push edx
push 0
mov dword [esi + 0x44], edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
test eax, eax
je 0x765455
mov eax, dword [0xa57148]
test eax, eax
mov dword [esi + 0x48], ebx
jne 0x765332
mov dword [esi + 0x140], 0
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x2c]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x1c]
push 0
push eax
push dword [ebp + 0x14]
push edi
call fcn.008ea870
mov edx, dword [ebp + 0x18]
mov ecx, ebx
sub ebx, eax
test ecx, ecx
cmove ebx, ecx
mov dword [esi + 0x140], 2
test edx, edx
mov dword [esi + 0xc], eax
jne 0x7653bc
mov dword [esi + 0x40], ebx
push 4
call fcn.007680b0
add esp, 4
lea ecx, [esi + 0x10]
push 0
push 0x10
push ecx
push 0
push dword [esi + 4]
call eax
test eax, eax
jne 0x765514
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
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 + 0xc]
jl 0x7654e7
sub edi, dword [ebp + 0x10]
sbb edx, ebx
mov ebx, edi
add edi, eax
adc edx, 0
jne 0x7654e7
mov edi, dword [ebp + 0x10]
mov edx, ebx
mov ebx, dword [esi + 0x40]
mov ecx, dword [esi]
or ecx, dword [esi + 0x48]
mov dword [esi], edx
add edx, eax
sub edi, eax
mov eax, dword [ebp + 0x14]
sbb eax, 0
push ebx
push edx
push edi
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
je 0x765474
mov ecx, dword [esi + 0xc]
add eax, ecx
mov edx, dword [esi + 8]
mov dword [edx], eax
mov dword [edx + 8], ecx
mov eax, dword [esi]
mov dword [edx + 4], eax
mov dword [esi + 0x140], 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
lea ebx, [eax + 0x10]
mov dword [esi + 0x140], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov ecx, edi
mov edi, eax
call ecx
push 2
push 0
push 0
push ebx
push edi
push dword [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x7654ad
mov eax, dword [esi + 0x138]
mov dword fs:[0], eax
mov eax, dword [esi + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0x10], eax
push eax
call fcn.0076b180
add esp, 4
mov dword [esi + 0x14], eax
lea eax, [esi + 0x10]
lea edi, [esi + 0xd8]
jmp 0x7654d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
push eax
call fcn.0076b180
add esp, 4
mov dword [esi + 0x14], eax
lea eax, [esi + 0x10]
lea ecx, [esi + 0x54]
push 0
push eax
call fcn.00765980
push 0x9f8788
lea eax, [esi + 0x54]
push eax
call fcn.00901c9b
add esp, 8
jmp 0x76554e
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0x10], eax
push eax
call fcn.0076b180
add esp, 4
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 8]
call fcn.0076b770
lea eax, [esi + 0x10]
lea edi, [esi + 0xac]
mov ecx, edi
push 0
push eax
call fcn.00765980
push 0x9f8788
push edi
call fcn.00901c9b
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0x12
lea eax, [esi + 0x4c]
lea ecx, [esi + 0x10]
push 0
push eax
call fcn.00765980
push 0x9f8788
lea eax, [esi + 0x10]
push eax
call fcn.00901c9b
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
push eax
call fcn.0076b180
add esp, 4
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x80]
push 0
lea eax, [esi + 0x10]
push eax
call fcn.00765980
push 0x9f8788
lea eax, [esi + 0x80]
push eax
call fcn.00901c9b
add esp, 8
nop
push ebp
sub esp, 0x1c
lea esi, [ebp - 0x144]
mov ebp, dword [esi + 0x130]
call fcn.00901a00
nop word cs:[eax + eax]
push ebp
sub esp, 0x1c
lea esi, [ebp - 0x144]
mov ebp, dword [esi + 0x130]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
pop ebp
ret