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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ce732
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
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 ecx, dword [ebp + 0x14]
xor bl, bl
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xd4], eax
mov byte [ebp - 0xb4], al
mov dword [ecx], esi
test al, al
je 0x10159bfc
push edx
lea ecx, [ebp - 0xb0]
call fcn.100224c2
push 0x10202834
push eax
mov dword [ebp - 0xac], 1
call fcn.1002573c
add esp, 8
mov byte [ebp - 0xa5], 1
test al, al
jne 0x10159c03
mov byte [ebp - 0xa5], 0
or edi, 0xffffffff
test byte [ebp - 0xac], 1
je 0x10159c2e
mov edx, dword [ebp - 0xb0]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10159c2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xa5], 0
je 0x10159edd
call fcn.10010450
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x10159c57
push 0x80004005
call fcn.1000c1e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb0], eax
push esi
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], 0
push 0x101d98d0
push eax
call fcn.10022679
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10179250
add esp, 0x18
lea ecx, [ebp - 0xc8]
push dword [ebp - 0xb8]
call fcn.100224c2
push 0x1021dba4
push eax
mov byte [ebp - 4], 1
call fcn.1002573c
add esp, 8
mov esi, str.Default
test al, al
mov ecx, esi
cmove ecx, dword [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0xac]
call fcn.100224c2
mov edx, dword [ebp - 0xc8]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10159cf2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xc0]
lea ecx, [ebp - 0xcc]
call fcn.100224c2
push 0x1021dba4
push eax
mov byte [ebp - 4], 4
call fcn.1002573c
add esp, 8
lea ecx, [ebp - 0xbc]
test al, al
cmove esi, dword [ebp - 0xc0]
push esi
call fcn.100224c2
mov edx, dword [ebp - 0xcc]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10159d4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.101581b0
push str._settings.ini
push eax
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 7
push eax
call fcn.10023c06
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x10159d7c
mov eax, dword [eax]
mov esi, dword [ebp - 0xb0]
push eax
push 0x32
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp - 0xbc]
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x78], 8
mov dword [ebp - 0xd0], eax
jb 0x10159db6
push dword [ebp - 0x8c]
call fcn.10042178
add esp, 4
xor eax, eax
mov dword [ebp - 0x78], 7
cmp dword [ebp - 0x90], 8
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
mov byte [ebp - 4], 6
jb 0x10159de8
push dword [ebp - 0xa4]
call fcn.10042178
add esp, 4
cmp dword [ebp - 0xd0], 0
je 0x10159e79
push dword [ebp - 0xc4]
lea eax, [ebp - 0x74]
push eax
call fcn.10159620
mov edx, dword [ebp - 0xbc]
add esp, 8
test al, al
mov byte [ebp - 4], 3
mov ecx, edi
setne bl
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10159e2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xac]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10159e52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10159f63
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x10159f63
mov edx, dword [ebp - 0xbc]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10159e9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xac]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10159ebf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10159edd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
call fcn.1015a4b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10159f63
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 4
push eax
push dword [ebp - 0xc4]
push 0
push 0
push dword [ebp - 0xc0]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov eax, dword [0x10261f34]
mov ecx, 1
movzx ebx, bl
cmove ebx, ecx
cmp esi, eax
je 0x10159f4d
cmp esi, dword [0x10261f30]
je 0x10159f4d
push esi
call edi
mov eax, dword [0x10261f34]
cmp byte [ebp - 0xd4], 0
je 0x10159f63
push eax
call edi
mov dword [0x10261f34], 0
mov al, bl
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