Function at 0x1000c5b0
Capabilities:
Get system information on windows
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c4660
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 ebx, ecx
mov dword [ebp - 0x10], ebx
push 8
mov dword [ebp - 4], 0
call fcn.10083ef8
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1000c604
mov dword [eax], vtable.CRegistry.0
mov dword [eax + 4], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x1000c606
xor eax, eax
mov dword [ebx + 0x798], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x40]
cmp ax, 9
je 0x1000c62b
cmp ax, 6
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionGolinkPath_
jne 0x1000c630
mov eax, str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionGolinkPath_
mov esi, dword [ebx + 0x798]
lea ecx, [ebp - 0x14]
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 0x1000c7ee
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov dword [esi + 4], eax
push dword [ebp + 8]
call fcn.10008f40
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x1000c672
mov edx, dword [edi]
jmp 0x1000c674
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, edx
mov esi, dword [eax + 0x798]
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c685
sub ecx, dword [ebp - 0x14]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push str.strPath
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, dword [0x1010c004]
mov dword [ebp - 0x14], eax
je 0x1000c70e
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100f1604
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10001860
add esp, 0x10
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff4
cmp ecx, dword [section..data]
je 0x1000c6fe
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000c6fe
push ecx
call fcn.100211cc
add esp, 4
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 4
jmp 0x1000c762
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100f1618
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10001860
add esp, 0x10
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff4
cmp ecx, dword [section..data]
je 0x1000c754
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000c754
push ecx
call fcn.100211cc
add esp, 4
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 7
add esi, 0xfffffff4
cmp esi, dword [section..data]
je 0x1000c781
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x1000c781
push esi
call fcn.100211cc
add esp, 4
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x798]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x1000c7a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0
mov byte [ebp - 4], 0
test edi, edi
je 0x1000c7f1
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x1000c7f1
mov eax, dword [edi]
test eax, eax
je 0x1000c7ca
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1000c7e1
push eax
call fcn.100842a5
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.1008428e
add esp, 8
jmp 0x1000c7f1
mov esi, dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esi + 0x798]
test ecx, ecx
je 0x1000c814
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x798], 0
mov dword [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [section..data]
je 0x1000c83b
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x1000c83b
push eax
call fcn.100211cc
add esp, 4
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