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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x1822b00c]
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], 0x18215108
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], edi
mov byte [esi + 4], bl
call fcn.180d957f
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 0x180cb718
sub eax, 5
je 0x180cb714
sub eax, 1
je 0x180cb70f
sub eax, 3
je 0x180cb70f
mov eax, ebx
jmp 0x180cb71b
push 2
pop eax
jmp 0x180cb71b
push 3
jmp 0x180cb711
xor eax, eax
inc eax
lea ecx, [ebp - 0x124]
mov dword [esi + 0x1c], eax
call fcn.180cb4f4
push eax
lea ecx, [esi + 0x68]
call fcn.180254af
lea ecx, [ebp - 0x124]
call fcn.18012edc
mov edi, 0x100
lea eax, [ebp - 0x10c]
push edi
push ebx
push eax
call fcn.181757a0
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 0x180cb78b
mov esi, dword [edi]
push ecx
push str.Unknown_Manufacturer
push esi
mov dword [edi + 0x10], ecx
call fcn.18174ca0
add esp, 0xc
mov byte [esi + 0x14], bl
jmp 0x180cb81a
push 0x7fffffff
push eax
push ecx
call fcn.18013091
mov esi, eax
add esp, 0xc
lea eax, [esi + 1]
push eax
call fcn.1800a2e0
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.18175220
mov eax, dword [ebp - 0x134]
add esp, 0xc
mov byte [esi + 0x14], bl
cmp eax, 0x10
jb 0x180cb818
mov ecx, dword [edi]
inc eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x138], ecx
cmp eax, 0x1000
jb 0x180cb80f
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.18007456
mov eax, dword [ebp - 0x134]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x138]
push eax
push ecx
call fcn.18160b12
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 0x180cb8fb
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 0x180cb869
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0x124]
call fcn.1801b1e1
lea eax, [ebp - 0x124]
cmp edi, eax
je 0x180cb8ac
cmp dword [ebp - 0x110], 0x10
jb 0x180cb89e
mov eax, dword [ebp - 0x124]
push dword [ebp - 0x114]
mov ecx, edi
push eax
call fcn.1801b1e1
mov eax, dword [ebp - 0x110]
cmp eax, 0x10
jb 0x180cb8fb
mov ecx, dword [ebp - 0x124]
inc eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], ecx
cmp eax, 0x1000
jb 0x180cb8f2
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.18007456
mov eax, dword [ebp - 0x138]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x134]
push eax
push ecx
call fcn.18160b12
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.1801b1e1
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 0x180cb9f4
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 0x180cb962
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0x124]
call fcn.1801b1e1
lea eax, [ebp - 0x124]
cmp edi, eax
je 0x180cb9a5
cmp dword [ebp - 0x110], 0x10
jb 0x180cb997
mov eax, dword [ebp - 0x124]
push dword [ebp - 0x114]
mov ecx, edi
push eax
call fcn.1801b1e1
mov eax, dword [ebp - 0x110]
cmp eax, 0x10
jb 0x180cb9f4
mov ecx, dword [ebp - 0x124]
inc eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], ecx
cmp eax, 0x1000
jb 0x180cb9eb
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.18007456
mov eax, dword [ebp - 0x138]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x134]
push eax
push ecx
call fcn.18160b12
pop ecx
pop ecx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
test eax, eax
je 0x180cba1b
mov al, byte [ebp - 0x118]
cmp al, 1
jne 0x180cba14
push 2
pop ebx
jmp 0x180cba1b
test al, al
jne 0x180cba1b
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.181605f4
leave
ret 4