Function at 0x6101d154
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x6103ee17
call fcn.6102aabe
mov edi, ecx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.6100d224
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x6101d18e
push 0x610046fc
lea ecx, [ebp + 8]
call fcn.6100d7a2
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x6101d1a3
push 0x610046d4
lea ecx, [ebp + 0xc]
call fcn.6100d7a2
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], ebx
jne 0x6101d1b8
push 0x610046ac
lea ecx, [ebp + 0x10]
call fcn.6100d7a2
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
test eax, eax
jne 0x6101d1d2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x6101d26b
mov ecx, edi
call fcn.6101c2e1
test eax, eax
je 0x6101d26b
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 0x6100468c
push dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x6101d25e
cmp dword [ebp - 0x14], 1
jbe 0x6101d25e
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.6102b86a
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x6101d26b
push dword [ebp - 0x14]
push ebx
push eax
call fcn.6102b300
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push ebx
push 0x6100468c
push dword [edi + 0x10]
call esi
test eax, eax
push dword [ebp - 0x18]
je 0x6101d242
call fcn.6102abeb
pop ecx
jmp 0x6101d26b
lea ecx, [ebp - 0x10]
call fcn.6100d8e9
push dword [ebp - 0x18]
call fcn.6102abeb
xor eax, eax
cmp eax, dword [ebp - 0x14]
pop ecx
sbb eax, eax
neg eax
jmp 0x6101d267
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, ebx
jne 0x6101d2e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x6101d2ac
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.6100d24f
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x6100468c
call fcn.6100d970
mov byte [ebp - 4], 7
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.6101c883
cmp eax, ebx
jne 0x6101d2e5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.6100d179
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.6100d179
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.6100d179
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.6100d179
xor eax, eax
call fcn.6102abaa
ret 0xc
lea eax, [ebp - 0x10]
test eax, eax
jne 0x6101d2f9
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x6101d392
mov ecx, edi
call fcn.6101c2e1
test eax, eax
je 0x6101d392
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 0x61004668
push dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x6101d385
cmp dword [ebp - 0x14], 1
jbe 0x6101d385
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.6102b86a
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x6101d392
push dword [ebp - 0x14]
push ebx
push eax
call fcn.6102b300
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push ebx
push 0x61004668
push dword [edi + 0x10]
call esi
test eax, eax
push dword [ebp - 0x18]
je 0x6101d369
call fcn.6102abeb
pop ecx
jmp 0x6101d392
lea ecx, [ebp - 0x10]
call fcn.6100d8e9
push dword [ebp - 0x18]
call fcn.6102abeb
xor eax, eax
cmp eax, dword [ebp - 0x14]
pop ecx
sbb eax, eax
neg eax
jmp 0x6101d38e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, ebx
jne 0x6101d3db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x6101d2ac
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.6100d24f
mov byte [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x61004668
call fcn.6100d970
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.6101c883
cmp eax, ebx
je 0x6101d2ac
lea eax, [ebp - 0x10]
test eax, eax
jne 0x6101d3ef
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x6101d488
mov ecx, edi
call fcn.6101c2e1
test eax, eax
je 0x6101d488
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 0x61003e8c
push dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x6101d47b
cmp dword [ebp - 0x14], 1
jbe 0x6101d47b
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.6102b86a
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x6101d488
push dword [ebp - 0x14]
push ebx
push eax
call fcn.6102b300
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push ebx
push 0x61003e8c
push dword [edi + 0x10]
call esi
test eax, eax
push dword [ebp - 0x18]
je 0x6101d45f
call fcn.6102abeb
pop ecx
jmp 0x6101d488
lea ecx, [ebp - 0x10]
call fcn.6100d8e9
push dword [ebp - 0x18]
call fcn.6102abeb
xor eax, eax
cmp eax, dword [ebp - 0x14]
pop ecx
sbb eax, eax
neg eax
jmp 0x6101d484
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, ebx
jne 0x6101d4cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x6101d4d2
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.6100d24f
mov byte [ebp - 4], 0xe
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x61003e8c
call fcn.6100d970
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.6101c883
cmp eax, ebx
je 0x6101d2ac
xor esi, esi
inc esi
jmp 0x6101d4d4
xor esi, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.6100d179
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.6100d179
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.6100d179
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.6100d179
mov eax, esi
jmp 0x6101d2dd