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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c3df0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1010b824]
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.100836e8
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1000be94
mov dword [eax], vtable.CRegistry.0
mov dword [eax + 4], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x1000be96
xor eax, eax
mov dword [ebx + 0x79c], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x40]
cmp ax, 9
je 0x1000bebb
cmp ax, 6
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionGolinkPath_
jne 0x1000bec0
mov eax, str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionGolinkPath_
mov esi, dword [ebx + 0x79c]
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 0x1000c07e
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 0x1000bf02
mov edx, dword [edi]
jmp 0x1000bf04
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, edx
mov esi, dword [eax + 0x79c]
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000bf15
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 [0x1010b004]
mov dword [ebp - 0x14], eax
je 0x1000bf9e
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100f0534
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 0x1000bf8e
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000bf8e
push ecx
call fcn.100209bc
add esp, 4
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 4
jmp 0x1000bff2
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100f0548
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 0x1000bfe4
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000bfe4
push ecx
call fcn.100209bc
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 0x1000c011
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x1000c011
push esi
call fcn.100209bc
add esp, 4
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x79c]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x1000c035
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 0x1000c081
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x1000c081
mov eax, dword [edi]
test eax, eax
je 0x1000c05a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1000c071
push eax
call fcn.10083a95
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.10083a7e
add esp, 8
jmp 0x1000c081
mov esi, dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esi + 0x79c]
test ecx, ecx
je 0x1000c0a4
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x79c], 0
mov dword [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [section..data]
je 0x1000c0cb
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x1000c0cb
push eax
call fcn.100209bc
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