Function at 0x180c4f20
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push 0xf
pop edi
lea ecx, [esi + 0x24]
mov dword [ebp - 0x144], esi
mov dword [esi], 0x181f9b88
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edi
mov byte [esi + 4], bl
call fcn.180d2e36
lea eax, [esi + 0x80]
mov dword [esi + 0x7c], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], ebx
mov byte [eax], bl
lea eax, [esi + 0x98]
mov dword [eax + 0x14], edi
lea edi, [ebp - 0x130]
push 9
mov dword [ebp - 0x140], eax
mov dword [eax + 0x10], ebx
mov byte [eax], bl
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x130]
mov dword [esi + 0x78], ebx
push eax
mov byte [esi + 0x68], bl
mov dword [esi + 0xb0], ebx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x130]
sub eax, ebx
je 0x180c4fcc
sub eax, 5
je 0x180c4fc8
sub eax, 1
je 0x180c4fc3
sub eax, 3
je 0x180c4fc3
mov eax, ebx
jmp 0x180c4fcf
push 2
pop eax
jmp 0x180c4fcf
push 3
jmp 0x180c4fc5
xor eax, eax
inc eax
lea ecx, [ebp - 0x124]
mov dword [esi + 0x1c], eax
call fcn.180c4da8
push eax
lea ecx, [esi + 0x68]
call fcn.18024d0c
lea ecx, [ebp - 0x124]
call fcn.1801238a
mov edi, 0x100
lea eax, [ebp - 0x10c]
push edi
push ebx
push eax
call fcn.181620e0
add esp, 0xc
mov dword [ebp - 0x13c], edi
lea edi, [esi + 0x80]
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x134], eax
push 0x14
pop ecx
cmp eax, ecx
jb 0x180c503f
mov esi, dword [edi]
push ecx
push str.Unknown_Manufacturer
push esi
mov dword [edi + 0x10], ecx
call fcn.181615e0
add esp, 0xc
mov byte [esi + 0x14], bl
jmp 0x180c50ce
push 0x7fffffff
push eax
push ecx
call fcn.1801253f
mov esi, eax
add esp, 0xc
lea eax, [esi + 1]
push eax
call fcn.1800a1df
pop ecx
push 0x14
mov dword [ebp - 0x138], eax
pop eax
push eax
mov dword [edi + 0x14], esi
mov esi, dword [ebp - 0x138]
push str.Unknown_Manufacturer
push esi
mov dword [edi + 0x10], eax
call fcn.18161b60
mov eax, dword [ebp - 0x134]
add esp, 0xc
mov byte [esi + 0x14], bl
cmp eax, 0x10
jb 0x180c50cc
mov ecx, dword [edi]
inc eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x138], ecx
cmp eax, 0x1000
jb 0x180c50c3
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.18007386
mov eax, dword [ebp - 0x134]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x138]
push eax
push ecx
call fcn.1814d45b
pop ecx
pop ecx
mov dword [edi], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push 2
push str.SystemManufacturer
push str.SYSTEMCurrentControlSetControlSystemInformation
push 0x80000002
call esi
test eax, eax
jne 0x180c51af
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x124], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x180c511d
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0x124]
call fcn.18019812
lea eax, [ebp - 0x124]
cmp edi, eax
je 0x180c5160
cmp dword [ebp - 0x110], 0x10
jb 0x180c5152
mov eax, dword [ebp - 0x124]
push dword [ebp - 0x114]
mov ecx, edi
push eax
call fcn.18019812
mov eax, dword [ebp - 0x110]
cmp eax, 0x10
jb 0x180c51af
mov ecx, dword [ebp - 0x124]
inc eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], ecx
cmp eax, 0x1000
jb 0x180c51a6
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.18007386
mov eax, dword [ebp - 0x138]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x134]
push eax
push ecx
call fcn.1814d45b
pop ecx
pop ecx
mov edi, dword [ebp - 0x140]
mov ecx, edi
push 0xd
push str.Unknown_Model
mov dword [ebp - 0x13c], 0x100
call fcn.18019812
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push 2
push str.SystemProductName
push str.SYSTEMCurrentControlSetControlSystemInformation
push 0x80000002
call esi
test eax, eax
jne 0x180c52a8
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x124], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x180c5216
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0x124]
call fcn.18019812
lea eax, [ebp - 0x124]
cmp edi, eax
je 0x180c5259
cmp dword [ebp - 0x110], 0x10
jb 0x180c524b
mov eax, dword [ebp - 0x124]
push dword [ebp - 0x114]
mov ecx, edi
push eax
call fcn.18019812
mov eax, dword [ebp - 0x110]
cmp eax, 0x10
jb 0x180c52a8
mov ecx, dword [ebp - 0x124]
inc eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], ecx
cmp eax, 0x1000
jb 0x180c529f
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.18007386
mov eax, dword [ebp - 0x138]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x134]
push eax
push ecx
call fcn.1814d45b
pop ecx
pop ecx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x180c52cf
mov al, byte [ebp - 0x118]
cmp al, 1
jne 0x180c52c8
push 2
pop ebx
jmp 0x180c52cf
test al, al
jne 0x180c52cf
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 0x20], ebx
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret 4