Function at 0x4019e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4273e4
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x524104]
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 ebx, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
push 0x100
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 1
push 0
push eax
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x160], 0
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x140]
mov dword [ebp - 0x164], 0
push eax
push 2
call fcn.0041e0f0
add esp, 0x14
test eax, eax
jne 0x401b43
cmp dword [ebp - 0x12c], 0x10
lea esi, [ebp - 0x140]
jb 0x401a9a
mov esi, dword [ebp - 0x140]
test esi, esi
je 0x401acc
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401aa0
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x401ab8
xor eax, eax
jmp 0x401acc
lea eax, [edi + edi]
call fcn.00425b70
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004019a0
lea ecx, [ebp - 0x15c]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401b43
mov eax, 0x24
mov dword [ebp - 0x160], 0x100
call fcn.00425b40
mov eax, esp
push 3
push 0x11
push str.SettingsLocation
push eax
call fcn.004019a0
lea ecx, [ebp - 0x160]
push ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x164]
push ecx
push 0
push eax
push dword [ebp - 0x15c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x15c]
test eax, eax
je 0x401b83
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov edx, dword [ebp - 0x12c]
cmp edx, 0x10
jb 0x401d17
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401d0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401d0d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401b92
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x401bdf
lea edi, [ecx + ecx]
mov eax, edi
call fcn.00425b70
mov esi, esp
test esi, esi
je 0x401bdf
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
mov byte [esi], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x401be1
xor esi, esi
mov ecx, esi
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401c01
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x128]
call fcn.004028a0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x128]
push eax
mov byte [ebp - 4], 2
call fcn.00402740
lea eax, [ebp - 0x128]
cmp ebx, eax
je 0x401c5b
cmp dword [ebp - 0x114], 0x10
mov ecx, ebx
push dword [ebp - 0x118]
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.004028a0
xor eax, eax
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 7
mov word [ebp - 0x158], ax
mov ebx, dword [ebp - 0x118]
mov byte [ebp - 4], 3
test ebx, ebx
je 0x401cc1
cmp dword [ebp - 0x114], 0x10
lea edi, [ebp - 0x128]
lea esi, [ebp - 0x128]
cmovae edi, dword [ebp - 0x128]
cmovae esi, dword [ebp - 0x128]
call fcn.00422940
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebx + edi]
push eax
push esi
call fcn.004216c0
add esp, 0x10
push 0
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.004245a0
mov eax, dword [ebp - 0x16c]
add esp, 0xc
test eax, eax
je 0x401cf0
cmp eax, 1
je 0x401cf0
mov bl, 1
jmp 0x401cf2
xor bl, bl
lea ecx, [ebp - 0x158]
call fcn.00402670
lea ecx, [ebp - 0x128]
call fcn.00401810
jmp 0x401b45
push edx
push ecx
call fcn.00425b14
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
cmp edx, 0x10
jb 0x401d68
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401d5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401d5e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00425b14
add esp, 8
mov al, bl
lea esp, [ebp - 0x17c]
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.00425b22
mov esp, ebp
pop ebp
ret