Function at 0x10159f90
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ce7c4
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x1024bd20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x27c], eax
mov byte [ebp - 0x268], al
mov dword [ebp - 0x270], ebx
test al, al
je 0x1015a026
push ecx
lea ecx, [ebp - 0x250]
call fcn.100224c2
push 0x10202834
mov ebx, 1
push eax
mov dword [ebp - 0x270], ebx
call fcn.1002573c
add esp, 8
mov byte [ebp - 0x249], bl
test al, al
jne 0x1015a02d
mov byte [ebp - 0x249], 0
or esi, 0xffffffff
test bl, 1
je 0x1015a05d
mov edx, dword [ebp - 0x250]
and ebx, 0xfffffffe
add edx, 0xfffffff0
mov dword [ebp - 0x270], ebx
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1015a05d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x249], 0
je 0x1015a2a9
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10179250
add esp, 0xc
lea ecx, [ebp - 0x278]
push dword [ebp - 0x258]
call fcn.100224c2
push 0x1021dba4
push eax
mov dword [ebp - 4], 0
call fcn.1002573c
add esp, 8
mov ecx, str.Default
test al, al
cmove ecx, dword [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x250]
call fcn.100224c2
mov edx, dword [ebp - 0x278]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1015a0e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x25c]
lea ecx, [ebp - 0x274]
call fcn.100224c2
push 0x1021dba4
push eax
mov byte [ebp - 4], 3
call fcn.1002573c
add esp, 8
lea ecx, [ebp - 0x264]
test al, al
mov eax, str.Default
cmove eax, dword [ebp - 0x25c]
push eax
call fcn.100224c2
mov edx, dword [ebp - 0x274]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1015a143
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.101581b0
push str._settings.ini
push eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 6
push eax
call fcn.10023c06
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x1015a172
mov eax, dword [eax]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x254]
push dword [ebp - 0x264]
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x26c], eax
jb 0x1015a1b4
push dword [ebp - 0x230]
call fcn.10042178
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 5
jb 0x1015a1ec
push dword [ebp - 0x248]
call fcn.10042178
add esp, 4
cmp dword [ebp - 0x26c], 0
je 0x1015a262
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
jne 0x1015a212
push 0x8007000e
call fcn.1000c1e0
mov edx, dword [ebp - 0x264]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1015a235
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x250]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1015a467
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1015a467
mov edx, dword [ebp - 0x264]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1015a285
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x1015a2a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebp - 0x268]
push dword [ebp - 0x258]
call fcn.1015a4b0
add esp, 0xc
mov dword [ebp - 0x250], eax
test eax, eax
jne 0x1015a2f5
mov eax, dword [ebp - 0x254]
test eax, eax
jne 0x1015a2da
mov dword [edi], eax
jmp 0x1015a467
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
jne 0x1015a467
push 0x8007000e
call fcn.1000c1e0
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x260], 0
push ecx
push 0
push 0
push 0
push dword [ebp - 0x25c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor esi, esi
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x258], esi
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 4], 7
test ecx, ecx
je 0x1015a38d
push 0x102624fc
push ecx
call fcn.1017d8fb
add esp, 8
mov dword [ebp - 0x268], eax
test eax, eax
je 0x1015a38d
lea ecx, [ebp - 0x260]
push ecx
push eax
push esi
push esi
push dword [ebp - 0x25c]
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x268]
lea ecx, [ebp - 0x258]
push esi
call fcn.10012f50
push esi
call fcn.10042178
mov esi, dword [ebp - 0x258]
add esp, 4
mov ecx, dword [0x10261f34]
mov eax, dword [ebp - 0x250]
mov edx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ecx
je 0x1015a3ba
cmp eax, dword [0x10261f30]
je 0x1015a3ba
push eax
call edx
mov ecx, dword [0x10261f34]
mov edx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x27c], 0
je 0x1015a3d0
push ecx
call edx
mov dword [0x10261f34], 0
cmp dword [ebp - 0x26c], 0
jne 0x1015a413
test esi, esi
jne 0x1015a3e1
xor eax, eax
jmp 0x1015a3f0
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [ebp - 0x250], eax
test esi, esi
je 0x1015a408
test eax, eax
jne 0x1015a408
push 0x8007000e
call fcn.1000c1e0
lea ecx, [ebp - 0x250]
or ebx, 4
jmp 0x1015a42c
mov eax, dword [ebp - 0x254]
test eax, eax
jne 0x1015a485
mov dword [ebp - 0x254], eax
lea ecx, [ebp - 0x254]
or ebx, 8
mov eax, dword [ecx]
or ebx, 2
mov dword [edi], eax
mov eax, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ecx], 0
test bl, 8
je 0x1015a453
push dword [ebp - 0x254]
and ebx, 0xfffffff7
call eax
mov eax, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, 4
je 0x1015a460
push dword [ebp - 0x250]
call eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1017868e
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x254], eax
test eax, eax
jne 0x1015a423
push 0x8007000e
call fcn.1000c1e0
int3