Function at 0x1014631
Capabilities:
Check if file exists
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x99c
push ebx
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.01013e18
push dword [ebp + 8]
lea ecx, [ebp - 0x17c]
xor ebx, ebx
call fcn.0100f83d
push eax
push 0x1009780
push 7
call fcn.01017562
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.01013e18
push 1
push ebx
push 0x10095b0
push 0x80000002
lea ecx, [ebp - 8]
call fcn.01013e6f
test al, al
jne 0x1014695
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10148f9
push dword [ebp + 8]
lea ecx, [ebp - 0x17c]
call fcn.0100f83d
push eax
lea eax, [ebp - 0x794]
push 0x1009770
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
push ebx
push ebx
xor eax, eax
push ebx
mov word [ebp - 0x12c], ax
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x384]
push eax
mov dword [ebp + 8], ebx
push ebx
jmp 0x101488d
cmp esi, ebx
je 0x1014712
cmp esi, 0xea
je 0x1014878
push esi
lea ecx, [ebp - 0x584]
call fcn.0100e252
push eax
push dword [ebp + 8]
push 0x1009720
call fcn.01011f22
add esp, 0xc
jmp 0x10148f9
lea eax, [ebp - 0x794]
push eax
lea eax, [ebp - 0x384]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1014769
lea eax, [ebp - 0x384]
push eax
push 0x10096d8
push 7
call fcn.01017562
add esp, 0xc
cmp word [ebp - 0x12c], bx
jne 0x10148db
lea eax, [ebp - 0x384]
push eax
mov edx, 0x80
lea ecx, [ebp - 0x12c]
call fcn.01019ef0
jmp 0x1014878
mov eax, dword [0x101c274]
cmp eax, ebx
je 0x1014878
cmp word [eax], bx
je 0x1014878
lea ecx, [ebp - 0x10]
call fcn.01013e18
push 1
push ebx
lea eax, [ebp - 0x384]
push eax
push dword [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.01013e6f
test al, al
je 0x10148e2
push ebx
lea eax, [ebp - 0x99c]
push eax
push 0x100956c
lea ecx, [ebp - 0x10]
call fcn.01013fae
test al, al
jne 0x10147e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x1014870
cmp esi, 0xea
je 0x1014870
cmp esi, ebx
jne 0x10148f1
push 0x7c
push dword [0x101c274]
lea ecx, [ebp - 0x24]
call fcn.010172e0
jmp 0x1014868
push 0x104
lea eax, [ebp - 0x58c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0101730f
push 1
lea edx, [ebp - 0x99c]
lea ecx, [ebp - 0x58c]
call fcn.0101a360
test al, al
je 0x1014860
lea eax, [ebp - 0x58c]
push eax
lea eax, [ebp - 0x384]
push eax
push 0x1009670
push 7
call fcn.01017562
add esp, 0x10
cmp word [ebp - 0x12c], bx
jne 0x10148ec
lea eax, [ebp - 0x384]
push eax
mov edx, 0x80
lea ecx, [ebp - 0x12c]
call fcn.01019ef0
lea ecx, [ebp - 0x24]
call fcn.01017369
mov eax, dword [ebp - 0x20]
cmp word [eax], bx
jne 0x10147f4
lea ecx, [ebp - 0x10]
call fcn.01014478
inc dword [ebp + 8]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x384]
push eax
push dword [ebp + 8]
push dword [ebp - 8]
mov dword [ebp - 0x14], 0x104
call edi
mov esi, eax
cmp esi, 0x103
jne 0x10146e0
cmp word [ebp - 0x12c], bx
jne 0x10148b5
push 2
pop esi
jmp 0x10148f9
push dword [ebp + 0x10]
lea eax, [ebp - 0x12c]
push dword [ebp + 0xc]
push eax
call fcn.01014530
test al, al
je 0x1014688
lea ecx, [ebp - 8]
mov bl, 1
call fcn.01014478
jmp 0x1014908
mov esi, 0x476
jmp 0x10148f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10148f1
mov esi, 0x476
lea ecx, [ebp - 0x10]
call fcn.01014478
lea ecx, [ebp - 8]
call fcn.01014478
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x2c]
call fcn.01014478
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0xc