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

Disassembly:
push 0xc
mov eax, 0x1056a46
call fcn.01021eb9
mov edi, ecx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.010151da
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x103be9e
push 0x100cc6c
lea ecx, [ebp + 8]
call fcn.010158cd
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x103beb3
push 0x100cc44
lea ecx, [ebp + 0xc]
call fcn.010158cd
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], ebx
jne 0x103bec8
push 0x100cc1c
lea ecx, [ebp + 0x10]
call fcn.010158cd
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
test eax, eax
jne 0x103bee2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x103bf7b
mov ecx, edi
call fcn.0103aedf
test eax, eax
je 0x103bf7b
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 0x100cc04
push dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x103bf6e
cmp dword [ebp - 0x14], 1
jbe 0x103bf6e
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.01054617
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x103bf7b
push dword [ebp - 0x14]
push ebx
push eax
call fcn.010219e0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push ebx
push 0x100cc04
push dword [edi + 0x10]
call esi
push dword [ebp - 0x18]
test eax, eax
je 0x103bf52
call fcn.01021189
pop ecx
jmp 0x103bf7b
lea ecx, [ebp - 0x10]
call fcn.01015acb
push dword [ebp - 0x18]
call fcn.01021189
xor eax, eax
cmp eax, dword [ebp - 0x14]
pop ecx
sbb eax, eax
neg eax
jmp 0x103bf77
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, ebx
jne 0x103bff5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x103bfbc
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.010151f2
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x100cc04
call fcn.010161a7
mov byte [ebp - 4], 7
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.0103b4d5
cmp eax, ebx
jne 0x103bff5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.01015174
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.01015174
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.01015174
xor eax, eax
call fcn.01021fa5
ret 0xc
lea eax, [ebp - 0x10]
test eax, eax
jne 0x103c009
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x103c0a2
mov ecx, edi
call fcn.0103aedf
test eax, eax
je 0x103c0a2
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 0x100cbe0
push dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x103c095
cmp dword [ebp - 0x14], 1
jbe 0x103c095
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.01054617
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x103c0a2
push dword [ebp - 0x14]
push ebx
push eax
call fcn.010219e0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push ebx
push 0x100cbe0
push dword [edi + 0x10]
call esi
push dword [ebp - 0x18]
test eax, eax
je 0x103c079
call fcn.01021189
pop ecx
jmp 0x103c0a2
lea ecx, [ebp - 0x10]
call fcn.01015acb
push dword [ebp - 0x18]
call fcn.01021189
xor eax, eax
cmp eax, dword [ebp - 0x14]
pop ecx
sbb eax, eax
neg eax
jmp 0x103c09e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, ebx
jne 0x103c0eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x103bfbc
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.010151f2
mov byte [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x100cbe0
call fcn.010161a7
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.0103b4d5
cmp eax, ebx
je 0x103bfbc
lea eax, [ebp - 0x10]
test eax, eax
jne 0x103c0ff
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x103c198
mov ecx, edi
call fcn.0103aedf
test eax, eax
je 0x103c198
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 0x100a6dc
push dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x103c18b
cmp dword [ebp - 0x14], 1
jbe 0x103c18b
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.01054617
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x103c198
push dword [ebp - 0x14]
push ebx
push eax
call fcn.010219e0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push ebx
push 0x100a6dc
push dword [edi + 0x10]
call esi
push dword [ebp - 0x18]
test eax, eax
je 0x103c16f
call fcn.01021189
pop ecx
jmp 0x103c198
lea ecx, [ebp - 0x10]
call fcn.01015acb
push dword [ebp - 0x18]
call fcn.01021189
xor eax, eax
cmp eax, dword [ebp - 0x14]
pop ecx
sbb eax, eax
neg eax
jmp 0x103c194
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, ebx
jne 0x103c1dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x103c1e2
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.010151f2
mov byte [ebp - 4], 0xe
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x100a6dc
call fcn.010161a7
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.0103b4d5
cmp eax, ebx
je 0x103bfbc
xor esi, esi
inc esi
jmp 0x103c1e4
xor esi, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.01015174
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.01015174
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.01015174
mov eax, esi
jmp 0x103bfed