Function at 0x4c5ce0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x30]
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x44
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
sub esp, 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov eax, dword [ebp - 0x2c]
mov dword [esp], 0
shl eax, 2
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_VirtualAlloc]
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x810
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.VirtualAlloc_failed_with__lu_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.004b46e0
mov eax, dword [ebp - 0x2c]
mov edx, dword [sym.imp.kernel32.dll_VirtualProtect]
lea ecx, [ebp - 0x34]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
add eax, esi
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [ebp - 0x38], edx
call edx
sub esp, 0x10
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x812
mov eax, dword [edi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.VirtualProtect_failed_with__lu_n
call fcn.004b46e0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
mov dword [esp + 8], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
lea eax, [eax + eax*2]
add eax, esi
mov dword [esp], eax
mov edx, dword [ebp - 0x38]
call edx
sub esp, 0x10
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x814
mov eax, dword [edi + 0x34]
mov dword [esp], ebx
mov ebx, 0x41
mov dword [esp + 8], eax
mov dword [esp + 4], str.VirtualProtect_failed_with__lu_n
call fcn.004b46e0
mov eax, dword [ebp - 0x2c]
mov ecx, 0x42
lea edx, [esi + eax - 2]
lea eax, [eax + eax*2 - 2]
add eax, esi
mov word [edx], bx
mov ebx, dword [sym.imp.kernel32.dll_CompareStringW]
mov word [eax], cx
mov dword [esp + 8], edx
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x64
mov dword [esp + 4], 0
mov dword [esp], 0x409
call ebx
sub esp, 0x18
mov dword [ebp - 0x38], eax
call fcn.0057d110
mov edx, dword [ebp - 0x38]
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x81e
xor eax, eax
cmp edx, 1
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str.expected_CSTR_LESS_THAN__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp], esi
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_VirtualFree]
sub esp, 0xc
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x821
mov eax, dword [edi + 0x34]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5dbf49
call fcn.004b46e0
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], str.NULL
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], str.NULL
mov dword [esp + 4], 8
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x825
mov eax, 1
mov edx, dword [edi + 0x34]
cmp esi, 2
je 0x4c5f38
xor eax, eax
test esi, esi
jne 0x4c5f38
cmp edx, 0x3ec
je 0x4c6600
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_EQUAL__got__d__last_error__ld_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0x5e13a0
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x5e13ac
mov dword [esp + 4], 0
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x829
xor eax, eax
cmp esi, 2
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_EQUAL__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0x5e13a0
mov dword [esp + 0xc], 5
mov dword [esp + 8], 0x5e13ac
mov dword [esp + 4], 0
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x82b
xor eax, eax
cmp esi, 3
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_GREATER_THAN__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0x5e13a0
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x5e13ac
mov dword [esp + 4], 0
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x82d
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_LESS_THAN__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0x5e13a0
mov dword [esp + 0xc], 5
mov dword [esp + 8], 0x5e13ac
mov dword [esp + 4], 0
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x82f
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_LESS_THAN__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0x5e13ac
mov dword [esp + 0xc], 5
mov dword [esp + 8], 0x5e13a0
mov dword [esp + 4], 0
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x831
xor eax, eax
cmp esi, 3
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_GREATER_THAN__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x5e1398
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x5e13ac
mov dword [esp + 4], 0
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x834
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_LESS_THAN__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0x5e138c
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x5e13ac
mov dword [esp + 4], 0
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x836
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_LESS_THAN__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0x5e138c
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x5e1398
mov dword [esp + 4], 0
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x838
xor eax, eax
cmp esi, 2
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_EQUAL__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x5e1398
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x5e13ac
mov dword [esp + 4], 2
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x83b
xor eax, eax
cmp esi, 2
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_EQUAL__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0x5e138c
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x5e13ac
mov dword [esp + 4], 2
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x83d
xor eax, eax
cmp esi, 2
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_EQUAL__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0x5e138c
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x5e1398
mov dword [esp + 4], 2
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x83f
xor eax, eax
cmp esi, 2
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_EQUAL__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x5e1380
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x5e13ac
mov dword [esp + 4], 0
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x842
xor eax, eax
cmp esi, 2
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_LESS_THAN__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x5e1380
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x5e13ac
mov dword [esp + 4], 2
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x844
xor eax, eax
cmp esi, 2
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_EQUAL__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x5e1398
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x5e1380
mov dword [esp + 4], 0
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x847
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_LESS_THAN__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x5e1398
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x5e1380
mov dword [esp + 4], 2
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x849
xor eax, eax
cmp esi, 2
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_EQUAL__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0x5e138c
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x5e1380
mov dword [esp + 4], 0
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x84c
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.expected_CSTR_LESS_THAN__got__d_n
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0x5e138c
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x5e1380
mov dword [esp + 4], 2
mov dword [esp], 0x400
call ebx
sub esp, 0x18
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x84e
xor eax, eax
cmp ebx, 2
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.expected_CSTR_EQUAL__got__d_n
mov dword [esp], eax
call fcn.004b46e0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [0x8f0770]
xor eax, eax
test ecx, ecx
sete al
jmp 0x4c5f38