Function at 0x1000c850
Capabilities:
Get system information on windows
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c46b1
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1010c824]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
push 8
mov dword [ebp - 0x1c], 0
call fcn.10083ef8
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1000c8a4
mov dword [eax], vtable.CRegistry.0
mov dword [eax + 4], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x1000c8a6
xor eax, eax
mov dword [edi + 0x798], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x44]
cmp ax, 9
je 0x1000c8cb
cmp ax, 6
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionGolinkPath_
jne 0x1000c8d0
mov eax, str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionGolinkPath_
mov esi, dword [edi + 0x798]
lea ecx, [ebp - 0x1c]
push ecx
push 0xf003f
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or ebx, 0xffffffff
test eax, eax
jne 0x1000cafb
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
lea eax, [ebp - 0x10]
mov edi, dword [edi + 0x798]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push str.strPath
push dword [edi + 4]
mov dword [ebp - 0x10], 0
call esi
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.1008429c
mov ecx, dword [ebp - 0x10]
add esp, 4
inc ecx
mov dword [ebp - 0x1c], eax
push ecx
push 0
push eax
call fcn.10087cd0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push 0
push str.strPath
push dword [edi + 4]
call esi
test eax, eax
mov eax, dword [0x1010c004]
jne 0x1000ca60
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
mov esi, dword [ebp - 0x1c]
push esi
push 0x100f1c0c
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10001860
add esp, 0x10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff4
cmp ecx, dword [section..data]
je 0x1000c9b9
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000c9b9
push ecx
call fcn.100211cc
add esp, 4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0
call fcn.10001540
push esi
call fcn.100842a5
add esp, 4
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff4
cmp ecx, dword [section..data]
je 0x1000c9fb
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000c9fb
push ecx
call fcn.100211cc
add esp, 4
mov eax, dword [0x1010c004]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100f1640
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10001860
add esp, 0x10
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff4
cmp ecx, dword [section..data]
je 0x1000ca4c
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000ca4c
push ecx
call fcn.100211cc
add esp, 4
mov esi, dword [ebp - 0x1c]
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call eax
mov dword [ebp - 4], 8
jmp 0x1000cabe
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100f162c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10001860
add esp, 0x10
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff4
cmp ecx, dword [section..data]
je 0x1000caac
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000caac
push ecx
call fcn.100211cc
add esp, 4
mov esi, dword [ebp - 0x1c]
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call eax
mov dword [ebp - 4], 5
add esi, 0xfffffff4
cmp esi, dword [section..data]
je 0x1000cadd
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x1000cadd
push esi
call fcn.100211cc
add esp, 4
mov edi, dword [ebp - 0x20]
mov esi, dword [edi + 0x798]
mov eax, dword [esi + 4]
test eax, eax
je 0x1000cafb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 9
mov esi, dword [0x1010c004]
mov dword [ebp - 0x14], esi
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
mov eax, dword [eax - 8]
mov dword [ebp + 8], eax
add eax, 5
je 0x1000cb60
push eax
lea ecx, [ebp - 0x14]
call fcn.10001a40
mov esi, dword [ebp - 0x14]
test al, al
je 0x1000cb60
movq xmm0, qword [0x100f1654]
movq qword [esi], xmm0
mov ax, word [0x100f165c]
mov word [esi + 8], ax
mov eax, dword [ebp + 8]
add eax, eax
push eax
push dword [ebp - 0x20]
lea eax, [esi + 0xa]
push eax
call fcn.10086230
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esi, 0xfffffff4
mov dword [ebp - 4], 0xa
cmp esi, dword [section..data]
je 0x1000cb8b
lock xadd dword [esi], ebx
dec ebx
test ebx, ebx
jg 0x1000cb8b
push esi
call fcn.100211cc
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0x798]
test ecx, ecx
je 0x1000cbac
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x798], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4