Function at 0x7741a0
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], 0x77d0a0
mov edx, dword fs:[0]
mov dword [esi + 0x138], edx
lea edx, [esi + 0x138]
mov dword fs:[0], edx
xor edx, edx
cmp edi, 0xffffffff
cmovne edx, edi
mov dword [esi + 0x48], edx
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 ebx, dword [edx]
mov edi, 2
cmp eax, 0xc0000000
jg 0x77424b
mov dword [esi], 4
mov edx, eax
neg edx
jo 0x774286
cmp eax, 0xc0000000
jne 0x77425f
mov edi, 4
mov dword [esi], 2
jmp 0x774286
cmp eax, 0xc0000001
je 0x77427b
mov dword [esi], 4
cmp eax, 0xc0000002
je 0x774286
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x11
lea eax, [esi + 0x10]
lea edi, [esi + 0x104]
jmp 0x774467
mov edi, 8
mov dword [esi], 1
mov dword [esi + 8], ecx
push 0
push 0
push 0
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
test eax, eax
je 0x7743ea
mov eax, dword [0xa8c708]
test eax, eax
mov dword [esi + 0x44], ebx
jne 0x7742c7
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.0091dee0
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 0x774351
mov dword [esi + 0x40], ebx
push 4
call fcn.007772a0
add esp, 4
lea ecx, [esi + 0x10]
push 0
push 0x10
push ecx
push 0
push dword [esi + 4]
call eax
test eax, eax
mov ebx, dword [ebp + 0x14]
jne 0x7744a9
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov ecx, dword [ebp + 0x10]
mov edi, eax
cmp eax, ecx
mov ecx, edx
sbb ecx, ebx
mov eax, dword [esi + 0xc]
jl 0x77447c
sub edi, dword [ebp + 0x10]
sbb edx, ebx
mov ebx, edi
add edi, eax
adc edx, 0
jne 0x77447c
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 0x774409
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 0x774442
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.0077a7a0
add esp, 4
mov dword [esi + 0x14], eax
lea eax, [esi + 0x10]
lea edi, [esi + 0xd8]
jmp 0x774467
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
push eax
call fcn.0077a7a0
add esp, 4
mov dword [esi + 0x14], eax
lea eax, [esi + 0x10]
lea ecx, [esi + 0x54]
push 0
push eax
call fcn.00774910
push 0xa2a648
lea eax, [esi + 0x54]
push eax
call fcn.0093533b
add esp, 8
jmp 0x7744e3
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0x10], eax
push eax
call fcn.0077a7a0
add esp, 4
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 8]
call fcn.0077ad90
lea eax, [esi + 0x10]
lea edi, [esi + 0xac]
mov ecx, edi
push 0
push eax
call fcn.00774910
push 0xa2a648
push edi
call fcn.0093533b
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0x12
lea eax, [esi + 0x4c]
lea ecx, [esi + 0x10]
push 0
push eax
call fcn.00774910
push 0xa2a648
lea eax, [esi + 0x10]
push eax
call fcn.0093533b
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
push eax
call fcn.0077a7a0
add esp, 4
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x80]
push 0
lea eax, [esi + 0x10]
push eax
call fcn.00774910
push 0xa2a648
lea eax, [esi + 0x80]
push eax
call fcn.0093533b
add esp, 8
nop word cs:[eax + eax]
push ebp
sub esp, 0x1c
lea esi, [ebp - 0x144]
mov ebp, dword [esi + 0x130]
call fcn.009350a0
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