Function at 0x4186e0
Capabilities:
Get cpu information
Get hostname
Get memory capacity
Get session user name
Get system information on windows
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1b8
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push ebp
push edi
push 0x360
xor ebx, ebx
push ebx
push esi
call fcn.004579a0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea edi, [esi + 0xc]
push edi
mov word [esi], 2
mov word [esi + 2], 2
mov word [esi + 4], 0x1770
mov word [esi + 6], bx
mov word [esi + 8], bx
mov dword [esp + 0x20], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x418765
mov ebp, str.Unknown
mov eax, edi
mov edx, 0xf
sub ebp, edi
lea ebx, [ebx]
mov cl, byte [eax + ebp]
cmp cl, bl
je 0x418763
mov byte [eax], cl
sub edx, 1
add eax, 1
cmp edx, ebx
jg 0x418750
mov byte [eax], bl
lea ecx, [esp + 0x18]
push ecx
lea ebp, [esi + 0x2c]
push ebp
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4187b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
mov edi, 0x479354
je 0x418797
mov edi, str.Unknown
mov eax, ebp
mov ecx, 0x103
mov edi, edi
mov dl, byte [edi]
cmp dl, bl
je 0x4187b5
mov byte [eax], dl
sub ecx, 1
add eax, 1
add edi, 1
cmp ecx, ebx
jg 0x4187a0
mov byte [eax], bl
push 0x9c
lea edx, [esp + 0x6c]
push ebx
push edx
call fcn.004579a0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x6c], 0x9c
call edi
test eax, eax
jne 0x418805
push 0x9c
lea ecx, [esp + 0x6c]
push ebx
push ecx
call fcn.004579a0
add esp, 0xc
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x6c], 0x94
call edi
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov dword [esi + 0x264], eax
mov eax, dword [esp + 0x78]
mov dword [esi + 0x268], ecx
movzx ecx, word [esp + 0xfc]
mov dword [esi + 0x270], eax
mov ax, word [esp + 0x100]
mov dword [esi + 0x26c], edx
mov dx, word [esp + 0xfe]
mov word [esi + 0x274], cx
movzx ecx, byte [esp + 0x102]
mov word [esi + 0x278], ax
lea eax, [esi + 0x27c]
lea edi, [esp + 0x7c]
mov word [esi + 0x276], dx
mov word [esi + 0x27a], cx
mov byte [esp + 0xfb], bl
mov edx, 0x7f
sub edi, eax
mov cl, byte [edi + eax]
cmp cl, bl
je 0x418894
mov byte [eax], cl
sub edx, 1
add eax, 1
cmp edx, ebx
jg 0x418881
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x56
mov byte [eax], bl
call edi
test eax, eax
je 0x4188a9
or word [esi + 0xa], 0x10
push 0x57
call edi
test eax, eax
je 0x4188b6
or word [esi + 0xa], 0x20
push 0x58
call edi
test eax, eax
je 0x4188c3
or word [esi + 0xa], 0x40
push 0x59
call edi
test eax, eax
je 0x4188d1
or word [esi + 0xa], 0x80
mov eax, dword [0x48d6c0]
cmp eax, ebx
je 0x418902
movzx edx, word [esp + 0xfe]
movzx ecx, word [esp + 0xfc]
lea edi, [esi + 0x1c]
push edi
push edx
mov edx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
push ecx
call eax
test eax, eax
jne 0x418902
mov dword [edi], ebx
lea edx, [esp + 0x10]
push edx
push 1
push ebx
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push SysReAllocStringLen
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4189ec
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
lea edi, [esi + 0x160]
push edi
lea ecx, [esp + 0x14]
push ecx
push ebx
push str.Identifier
push edx
mov dword [esp + 0x2c], 0x80
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x418969
cmp dword [esp + 0xc], 1
jne 0x418969
mov byte [esi + 0x1df], bl
jmp 0x41896b
mov byte [edi], bl
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea edi, [esi + 0x1e0]
push edi
lea ecx, [esp + 0x14]
push ecx
push ebx
push str.VendorIdentifier
push edx
mov dword [esp + 0x2c], 0x80
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x4189a8
cmp dword [esp + 0xc], 1
jne 0x4189a8
mov byte [esi + 0x25f], bl
jmp 0x4189aa
mov byte [edi], bl
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea edi, [esi + 0x260]
push edi
lea ecx, [esp + 0x14]
push ecx
push ebx
push str.MHz
push edx
mov dword [esp + 0x2c], 4
mov dword [esp + 0x24], ebx
call ebp
test eax, eax
jne 0x4189df
cmp dword [esp + 0xc], 4
je 0x4189e1
mov dword [edi], ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp byte [0x48d50e], bl
movzx edx, word [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x134], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x130], edx
cdq
mov dword [esi + 0x138], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x13c], edx
cdq
mov dword [esi + 0x140], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x144], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x148], ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x150], edx
mov dx, word [esp + 0x3c]
mov dword [esi + 0x154], eax
mov ax, word [esp + 0x3e]
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x158], ecx
mov word [esi + 0x15c], dx
mov word [esi + 0x15e], ax
je 0x418aa7
or word [esi + 0xa], 1
xor eax, eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
push ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x300], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0x2fc], edx
mov edx, dword [esp + 0x50]
push 0xac
mov dword [esi + 0x318], eax
mov dword [esi + 0x308], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x310], edx
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x10c]
push ebx
push eax
mov dword [esi + 0x304], ebx
mov dword [esi + 0x30c], ebx
mov dword [esi + 0x314], ebx
mov dword [esi + 0x31c], ebx
mov dword [esi + 0x320], ecx
mov dword [esi + 0x324], ebx
mov dword [esi + 0x328], edx
mov dword [esi + 0x32c], ebx
call fcn.004579a0
add esp, 0xc
lea ecx, [esp + 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 2
push 0x20
jne 0x418ba0
lea edx, [esp + 0x164]
push edx
lea eax, [esi + 0x330]
push eax
call fcn.00456474
mov ecx, dword [esp + 0x1bc]
mov edx, dword [esp + 0x114]
add esp, 0xc
add ecx, edx
mov dword [esi + 0x350], ecx
jmp 0x418bcd
lea eax, [esp + 0x110]
push eax
lea ecx, [esi + 0x330]
push ecx
call fcn.00456474
mov edx, dword [esp + 0x168]
mov eax, dword [esp + 0x114]
add esp, 0xc
add edx, eax
mov dword [esi + 0x350], edx
lea ecx, [esp + 0x60]
push ecx
mov byte [esi + 0x34f], bl
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea edx, [esi + 0x354]
push edx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [esp + 0x1bc]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov word [esi + 0x35c], ax
call fcn.00454016
add esp, 0x1b8
ret