Function at 0x50b210
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61d79d
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], 0xffffffff
mov ebx, dword [eax]
xor eax, eax
cmp edx, 0xffffffff
mov dword [ebp - 0x60], ebx
cmove edx, eax
cmp ecx, 0xc0000001
jg 0x50b2bb
je 0x50b2b1
cmp ecx, 0x80000000
je 0x50b2c7
cmp ecx, 0xc0000000
jne 0x50b496
mov eax, 4
lea ecx, [eax - 2]
jmp 0x50b2d1
mov eax, 8
lea ecx, [eax - 7]
jmp 0x50b2d1
cmp ecx, 0xc0000002
jne 0x50b496
mov eax, 2
mov ecx, 4
push 0
push 0
push 0
push eax
push 0
or edx, ecx
push ebx
mov dword [ebp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x50b300
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x6c]
call fcn.0050c570
jmp 0x50b4a0
mov dword [ebp - 0x68], eax
mov ebx, dword [0x659f64]
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x50b321
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x18]
push 0
push ebx
push dword [ebp - 0x54]
push dword [ebp - 0x50]
call fcn.00602c60
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x5c]
imul eax, ebx
mov ebx, ecx
sub ebx, eax
mov eax, edx
sub eax, ebx
test edx, edx
cmove eax, edx
mov dword [ebp - 0x5c], eax
test esi, esi
jne 0x50b3b2
push 4
call fcn.0050f220
add esp, 4
lea ecx, [ebp - 0x4c]
push esi
push 0x10
push ecx
push esi
push dword [ebp - 0x58]
call eax
test eax, eax
je 0x50b37e
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x64]
call fcn.0050c570
push esi
lea eax, [ebp - 0x64]
jmp 0x50b4a5
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x54]
jl 0x50b3eb
mov edx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x50]
jg 0x50b392
cmp edx, esi
jb 0x50b3eb
mov ecx, edx
sub ecx, esi
sbb eax, dword [ebp - 0x54]
add ecx, ebx
adc eax, 0
test eax, eax
ja 0x50b3eb
jb 0x50b3a9
cmp ecx, 0xffffffff
ja 0x50b3eb
mov ecx, dword [ebp - 0x50]
mov esi, ebx
sub esi, ecx
add esi, edx
push dword [ebp - 0x5c]
mov edx, dword [ebp - 0x54]
lea eax, [ebx + esi]
push eax
sub ecx, ebx
push ecx
sbb edx, 0
push edx
push dword [ebp + 0x20]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
jne 0x50b3ff
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x64]
call fcn.0050c570
push 0
lea eax, [ebp - 0x64]
jmp 0x50b4a5
push 0x12
lea ecx, [ebp - 0x64]
call fcn.0050c5b0
push 0
lea eax, [ebp - 0x64]
jmp 0x50b4a5
add eax, ebx
mov dword [edi + 8], ebx
mov dword [edi], eax
mov dword [edi + 4], esi
push dword [ebp - 0x58]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [edi + 0x10]
push 2
push 0
push 0
push eax
mov dword [ebp - 4], 0xffffffff
call esi
push eax
push dword [ebp - 0x60]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x50b476
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x6c]
call fcn.0050c570
mov ecx, edi
call fcn.0050feb0
push 0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x98]
call fcn.0050c5d0
push 0x635cc4
lea eax, [ebp - 0x98]
jmp 0x50b4b6
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00602a00
mov esp, ebp
pop ebp
ret 0x1c
push 0x11
lea ecx, [ebp - 0x6c]
call fcn.0050c5b0
push 0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0050c5d0
push 0x635cc4
lea eax, [ebp - 0x3c]
push eax
call fcn.00603d27
int3