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

Disassembly:
push 0xc
mov eax, 0x10566c8
call fcn.01022092
mov edi, ecx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.010155dc
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x103bce7
push 0x100d33c
lea ecx, [ebp + 8]
call fcn.01015d13
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jne 0x103bcfc
push 0x100d314
lea ecx, [ebp + 0xc]
call fcn.01015d13
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], ebx
jne 0x103bd11
push 0x100d2ec
lea ecx, [ebp + 0x10]
call fcn.01015d13
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
test eax, eax
jne 0x103bd2b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x103bdc4
mov ecx, edi
call fcn.0103ad2a
test eax, eax
je 0x103bdc4
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 0x100d2d4
push dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x103bdb7
cmp dword [ebp - 0x14], 1
jbe 0x103bdb7
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.010542e0
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x103bdc4
push dword [ebp - 0x14]
push ebx
push eax
call fcn.01021bf0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push ebx
push 0x100d2d4
push dword [edi + 0x10]
call esi
test eax, eax
push dword [ebp - 0x18]
je 0x103bd9b
call fcn.010213d8
pop ecx
jmp 0x103bdc4
lea ecx, [ebp - 0x10]
call fcn.01016141
push dword [ebp - 0x18]
call fcn.010213d8
xor eax, eax
cmp eax, dword [ebp - 0x14]
pop ecx
sbb eax, eax
neg eax
jmp 0x103bdc0
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, ebx
jne 0x103be3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x103be05
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.010157a2
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x100d2d4
call fcn.01016a0f
mov byte [ebp - 4], 7
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.0103b320
cmp eax, ebx
jne 0x103be3e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.010151a6
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.010151a6
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.010151a6
xor eax, eax
call fcn.0102217e
ret 0xc
lea eax, [ebp - 0x10]
test eax, eax
jne 0x103be52
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x103beeb
mov ecx, edi
call fcn.0103ad2a
test eax, eax
je 0x103beeb
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 0x100d2b0
push dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x103bede
cmp dword [ebp - 0x14], 1
jbe 0x103bede
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.010542e0
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x103beeb
push dword [ebp - 0x14]
push ebx
push eax
call fcn.01021bf0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push ebx
push 0x100d2b0
push dword [edi + 0x10]
call esi
test eax, eax
push dword [ebp - 0x18]
je 0x103bec2
call fcn.010213d8
pop ecx
jmp 0x103beeb
lea ecx, [ebp - 0x10]
call fcn.01016141
push dword [ebp - 0x18]
call fcn.010213d8
xor eax, eax
cmp eax, dword [ebp - 0x14]
pop ecx
sbb eax, eax
neg eax
jmp 0x103bee7
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, ebx
jne 0x103bf34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x103be05
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.010157a2
mov byte [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x100d2b0
call fcn.01016a0f
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.0103b320
cmp eax, ebx
je 0x103be05
lea eax, [ebp - 0x10]
test eax, eax
jne 0x103bf48
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x103bfe1
mov ecx, edi
call fcn.0103ad2a
test eax, eax
je 0x103bfe1
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 0x100adb0
push dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
call esi
cmp eax, ebx
jne 0x103bfd4
cmp dword [ebp - 0x14], 1
jbe 0x103bfd4
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
call fcn.010542e0
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x103bfe1
push dword [ebp - 0x14]
push ebx
push eax
call fcn.01021bf0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
push ebx
push ebx
push 0x100adb0
push dword [edi + 0x10]
call esi
test eax, eax
push dword [ebp - 0x18]
je 0x103bfb8
call fcn.010213d8
pop ecx
jmp 0x103bfe1
lea ecx, [ebp - 0x10]
call fcn.01016141
push dword [ebp - 0x18]
call fcn.010213d8
xor eax, eax
cmp eax, dword [ebp - 0x14]
pop ecx
sbb eax, eax
neg eax
jmp 0x103bfdd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, ebx
jne 0x103c026
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x103c02b
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.010157a2
mov byte [ebp - 4], 0xe
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x100adb0
call fcn.01016a0f
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.0103b320
cmp eax, ebx
je 0x103be05
xor esi, esi
inc esi
jmp 0x103c02d
xor esi, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.010151a6
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.010151a6
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.010151a6
mov eax, esi
jmp 0x103be36