Function at 0x47ae30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9a3b
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5142b0]
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 eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
push 0x4d0894
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xc0], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x47aeaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_load_kernel32.dll_with_error_code_:__d_n
call fcn.00423ad0
add esp, 8
mov eax, 1
jmp 0x47b118
push str.GetProductInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xb0], eax
test eax, eax
jne 0x47aedc
push str.Failed_to_get_address_of_GetProductInfo_n
call fcn.00423ad0
add esp, 4
mov eax, 1
jmp 0x47b118
push 0x9c
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.00492ac0
add esp, 0xc
lea ecx, [ebp - 0xac]
push ecx
mov dword [ebp - 0xac], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x47af2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_OSVersionInfo_with_error_code_:__d_n
call fcn.00423ad0
add esp, 8
mov eax, 1
jmp 0x47b118
movzx edx, word [ebp - 0x16]
movzx eax, word [ebp - 0x18]
mov ecx, dword [ebp - 0xa4]
push edi
push edx
mov edx, dword [ebp - 0xa8]
push eax
push ecx
push edx
call dword [ebp - 0xb0]
test eax, eax
jne 0x47af6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_edition_type_with_error_code_:__d_n
call fcn.00423ad0
add esp, 8
mov eax, 1
jmp 0x47b118
xor eax, eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xbc]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0xa0]
mov dword [eax], edx
mov edx, dword [ebp - 0xb8]
movzx eax, byte [ebp - 0x12]
mov dword [edx], ecx
mov cx, word [ebp - 0xe4]
mov edx, dword [ebp - 0xc0]
mov word [esi], ax
mov word [edx], cx
cmp dword [edi], 0xaf
jne 0x47b0b1
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0xb0], 0
call fcn.00479930
mov ecx, dword [ebp - 0xb0]
add esp, 4
push ecx
lea ecx, [ebp - 0xb4]
call fcn.004012c0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 4], 0
test eax, eax
je 0x47b03d
push eax
call fcn.0048efd8
add esp, 4
mov edx, dword [ebp - 0xb4]
cmp dword [edx - 0xc], 0
je 0x47b0a6
lea ecx, [ebp - 0xb4]
call fcn.00463b10
mov eax, dword [ebp - 0xb4]
cmp dword [eax - 0xc], 0
jl 0x47b07d
push str.server
push eax
call fcn.00495c10
add esp, 8
test eax, eax
je 0x47b07d
sub eax, dword [ebp - 0xb4]
cmp eax, 0xffffffff
jne 0x47b091
push str.ProductType_:_WorkStation
call fcn.00423960
mov eax, 1
mov word [esi], ax
jmp 0x47b0a3
push str.ProductType_:_Server
call fcn.00423960
mov ecx, 2
mov word [esi], cx
add esp, 4
lea ecx, [ebp - 0xb4]
call fcn.00401ed0
mov edx, dword [ebx]
push edx
push str.MajorVersion_:__lu_n
call fcn.00423960
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax]
push ecx
push str.MinorVersion_:__lu_n
call fcn.00423960
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx]
push eax
push str.BuildNumber_:__lu_n
call fcn.00423960
movzx ecx, word [esi]
push ecx
push str.ProductType_:__ld_n
call fcn.00423960
mov edx, dword [edi]
push edx
push str.EditionType_:__ld_n
call fcn.00423960
mov eax, dword [ebp - 0xc0]
movzx ecx, word [eax]
push ecx
push str.ProcessorArchitecture_:__ld_n
call fcn.00423960
add esp, 0x30
xor eax, eax
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.0048ed61
mov esp, ebp
pop ebp
ret