Function at 0x1004a5f0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x82c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push ebp
mov ebp, dword [esp + 0x838]
xor ebx, ebx
push 0x207
lea eax, [esp + 0x15]
push ebx
push eax
mov byte [esp + 0x1c], bl
call fcn.10116880
push 0x5c
push ebp
call fcn.1011063b
add esp, 0x14
test eax, eax
jne 0x1004aa21
mov eax, dword [0x1019e6b0]
push esi
push edi
cmp eax, ebx
jne 0x1004a653
call fcn.10049ed0
mov eax, dword [0x1019e6b0]
cmp eax, ebx
je 0x1004a719
mov edi, eax
cmp eax, ebx
je 0x1004a719
lea ecx, [ecx]
mov esi, dword [edi]
push 0x208
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.1010ffa3
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1004a680
sub eax, edx
cmp eax, 0x208
jb 0x1004a697
mov byte [esp + 0x21f], bl
cmp byte [esp + 0x18], bl
je 0x1004a6c3
lea eax, [esp + 0x18]
inc eax
cmp byte [eax], bl
jne 0x1004a6a1
lea edx, [esp + 0x18]
sub eax, edx
je 0x1004a6c3
cmp byte [esp + eax + 0x17], 0x5c
je 0x1004a6c3
push 0x10149ea8
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1004a6d0
sub eax, edx
cmp eax, 0x208
jge 0x1004a6f5
mov edx, ebp
mov cl, byte [edx]
cmp cl, bl
je 0x1004a6f5
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x208
jl 0x1004a6e2
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + eax + 0x1c], bl
call fcn.1004a0a0
add esp, 4
test eax, eax
jne 0x1004a80f
mov edi, dword [edi + 0x18]
cmp edi, ebx
jne 0x1004a660
push 0x103
lea edx, [esp + 0x225]
push ebx
push edx
mov byte [esp + 0x22c], bl
call fcn.10116880
push 0x40f
lea eax, [esp + 0x439]
push ebx
push eax
mov byte [esp + 0x440], bl
call fcn.10116880
push ebp
lea ecx, [esp + 0x23c]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_s
push ecx
mov dword [esp + 0x38], 0x410
call fcn.1010d6a8
add esp, 0x24
lea edx, [esp + 0x10]
push edx
push 1
push ebx
lea eax, [esp + 0x22c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x1004a82f
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x42c]
push edx
push ebx
push ebx
push ebx
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call edi
cmp byte [esp + 0x428], bl
je 0x1004a7d9
push 1
lea edx, [esp + 0x42c]
push edx
call sym.EncDec.dll_IsItEnvStringType
lea eax, [esp + 0x428]
push eax
call fcn.1004a0a0
add esp, 4
test eax, eax
je 0x1004a82f
lea eax, [esp + 0x428]
mov edx, ebp
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1004a800
jmp 0x1004aa1f
lea eax, [esp + 0x18]
mov edx, ebp
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1004a820
jmp 0x1004aa1f
call fcn.1004f190
test eax, eax
je 0x1004a8c2
lea edx, [esp + 0x10]
push edx
push 0x20119
lea eax, [esp + 0x228]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10062150
test eax, eax
jne 0x1004a8c2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x42c]
push edx
push ebx
push ebx
push ebx
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call edi
cmp byte [esp + 0x428], bl
je 0x1004a892
push 1
lea edx, [esp + 0x42c]
push edx
call sym.EncDec.dll_IsItEnvStringType
lea eax, [esp + 0x428]
push eax
call fcn.1004a0a0
add esp, 4
test eax, eax
je 0x1004a8c2
lea eax, [esp + 0x428]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1004a8b3
jmp 0x1004aa1f
push 0x103
lea edx, [esp + 0x225]
push ebx
push edx
mov byte [esp + 0x22c], bl
call fcn.10116880
push 0x103
lea eax, [esp + 0x335]
push ebx
push eax
mov byte [esp + 0x33c], bl
call fcn.10116880
lea ecx, [esp + 0x238]
push 0x104
push ecx
call fcn.10042f40
add esp, 0x20
lea esi, [esp + 0x220]
call fcn.10049c80
push 0x104
lea edx, [esp + 0x328]
push edx
mov byte [esp + 0x32c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea esi, [esp + 0x324]
call fcn.10049c80
push 0x208
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.1010ffa3
lea eax, [esp + 0x22c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1004a961
sub eax, edx
cmp eax, 0x208
jb 0x1004a978
mov byte [esp + 0x21f], bl
lea ecx, [esp + 0x18]
call fcn.10049c40
push ebp
mov edi, 0x208
lea esi, [esp + 0x1c]
call fcn.1004d280
mov edx, esi
push edx
call fcn.1004a0a0
add esp, 8
mov ecx, esi
test eax, eax
jne 0x1004aa0d
push edi
lea eax, [esp + 0x328]
push eax
push ecx
call fcn.1010ffa3
lea eax, [esp + 0x330]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1004a9c0
sub eax, edx
cmp eax, 0x208
jb 0x1004a9d7
mov byte [esp + 0x21f], bl
lea ecx, [esp + 0x18]
call fcn.10049c40
push ebp
lea esi, [esp + 0x1c]
call fcn.1004d280
mov edx, esi
push edx
call fcn.1004a0a0
add esp, 8
test eax, eax
je 0x1004aa1f
mov edx, ebp
mov ecx, esi
mov eax, esi
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1004aa01
jmp 0x1004aa1f
mov edx, ebp
lea eax, [esp + 0x18]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1004aa15
pop edi
pop esi
mov ecx, dword [esp + 0x830]
pop ebp
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x82c
ret