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

Disassembly:
push 0xc
mov eax, 0x6103f83d
call fcn.6102b2d6
mov edi, ecx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.6100d83e
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x6101d6b7
push 0x610047fc
lea ecx, [ebp + 8]
call fcn.6100de0c
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x6101d6cc
push 0x610047d4
lea ecx, [ebp + 0xc]
call fcn.6100de0c
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], ebx
jne 0x6101d6e1
push 0x610047ac
lea ecx, [ebp + 0x10]
call fcn.6100de0c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
test eax, eax
jne 0x6101d6fb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x6101d794
mov ecx, edi
call fcn.6101c80a
test eax, eax
je 0x6101d794
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 0x6100478c
push dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x6101d787
cmp dword [ebp - 0x14], 1
jbe 0x6101d787
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.6102c0d4
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x6101d794
push dword [ebp - 0x14]
push ebx
push eax
call fcn.6102bb20
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push ebx
push 0x6100478c
push dword [edi + 0x10]
call esi
push dword [ebp - 0x18]
test eax, eax
je 0x6101d76b
call fcn.6102b403
pop ecx
jmp 0x6101d794
lea ecx, [ebp - 0x10]
call fcn.6100df53
push dword [ebp - 0x18]
call fcn.6102b403
xor eax, eax
cmp eax, dword [ebp - 0x14]
pop ecx
sbb eax, eax
neg eax
jmp 0x6101d790
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, ebx
jne 0x6101d80e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x6101d7d5
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.6100d869
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x6100478c
call fcn.6100dfda
mov byte [ebp - 4], 7
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.6101cdac
cmp eax, ebx
jne 0x6101d80e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.6100d793
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.6100d793
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.6100d793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.6100d793
xor eax, eax
call fcn.6102b3c2
ret 0xc
lea eax, [ebp - 0x10]
test eax, eax
jne 0x6101d822
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x6101d8bb
mov ecx, edi
call fcn.6101c80a
test eax, eax
je 0x6101d8bb
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 0x61004768
push dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x6101d8ae
cmp dword [ebp - 0x14], 1
jbe 0x6101d8ae
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.6102c0d4
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x6101d8bb
push dword [ebp - 0x14]
push ebx
push eax
call fcn.6102bb20
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push ebx
push 0x61004768
push dword [edi + 0x10]
call esi
push dword [ebp - 0x18]
test eax, eax
je 0x6101d892
call fcn.6102b403
pop ecx
jmp 0x6101d8bb
lea ecx, [ebp - 0x10]
call fcn.6100df53
push dword [ebp - 0x18]
call fcn.6102b403
xor eax, eax
cmp eax, dword [ebp - 0x14]
pop ecx
sbb eax, eax
neg eax
jmp 0x6101d8b7
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, ebx
jne 0x6101d904
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x6101d7d5
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.6100d869
mov byte [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x61004768
call fcn.6100dfda
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.6101cdac
cmp eax, ebx
je 0x6101d7d5
lea eax, [ebp - 0x10]
test eax, eax
jne 0x6101d918
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x6101d9b1
mov ecx, edi
call fcn.6101c80a
test eax, eax
je 0x6101d9b1
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 0x61003f90
push dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x6101d9a4
cmp dword [ebp - 0x14], 1
jbe 0x6101d9a4
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.6102c0d4
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x6101d9b1
push dword [ebp - 0x14]
push ebx
push eax
call fcn.6102bb20
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push ebx
push 0x61003f90
push dword [edi + 0x10]
call esi
push dword [ebp - 0x18]
test eax, eax
je 0x6101d988
call fcn.6102b403
pop ecx
jmp 0x6101d9b1
lea ecx, [ebp - 0x10]
call fcn.6100df53
push dword [ebp - 0x18]
call fcn.6102b403
xor eax, eax
cmp eax, dword [ebp - 0x14]
pop ecx
sbb eax, eax
neg eax
jmp 0x6101d9ad
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, ebx
jne 0x6101d9f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x6101d9fb
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.6100d869
mov byte [ebp - 4], 0xe
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x61003f90
call fcn.6100dfda
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.6101cdac
cmp eax, ebx
je 0x6101d7d5
xor esi, esi
inc esi
jmp 0x6101d9fd
xor esi, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.6100d793
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.6100d793
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.6100d793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.6100d793
mov eax, esi
jmp 0x6101d806