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

Disassembly:
sub esp, 0x82c
mov eax, dword [0x10189710]
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.1012e060
push 0x5c
push ebp
call fcn.1012a587
add esp, 0x14
test eax, eax
jne 0x10065fe1
mov eax, dword [0x101c85e8]
push esi
push edi
cmp eax, ebx
jne 0x10065c13
call fcn.10065490
mov eax, dword [0x101c85e8]
cmp eax, ebx
je 0x10065cd9
mov edi, eax
cmp eax, ebx
je 0x10065cd9
lea ecx, [ecx]
mov esi, dword [edi]
push 0x208
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.10129e6f
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10065c40
sub eax, edx
cmp eax, 0x208
jb 0x10065c57
mov byte [esp + 0x21f], bl
cmp byte [esp + 0x18], bl
je 0x10065c83
lea eax, [esp + 0x18]
inc eax
cmp byte [eax], bl
jne 0x10065c61
lea edx, [esp + 0x18]
sub eax, edx
je 0x10065c83
cmp byte [esp + eax + 0x17], 0x5c
je 0x10065c83
push 0x10158184
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 0x10065c90
sub eax, edx
cmp eax, 0x208
jge 0x10065cb5
mov edx, ebp
mov cl, byte [edx]
cmp cl, bl
je 0x10065cb5
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x208
jl 0x10065ca2
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + eax + 0x1c], bl
call fcn.10065660
add esp, 4
test eax, eax
jne 0x10065dcf
mov edi, dword [edi + 0x18]
cmp edi, ebx
jne 0x10065c20
push 0x103
lea edx, [esp + 0x225]
push ebx
push edx
mov byte [esp + 0x22c], bl
call fcn.1012e060
push 0x40f
lea eax, [esp + 0x439]
push ebx
push eax
mov byte [esp + 0x440], bl
call fcn.1012e060
push ebp
lea ecx, [esp + 0x23c]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_s
push ecx
mov dword [esp + 0x38], 0x410
call fcn.10127dc0
add esp, 0x24
lea edx, [esp + 0x10]
push edx
push 1
push ebx
lea eax, [esp + 0x22c]
push eax
push reloc.WS2_32.dll_bind
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 0x10065def
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 0x10065d99
push 1
lea edx, [esp + 0x42c]
push edx
call fcn.100796e0
lea eax, [esp + 0x428]
push eax
call fcn.10065660
add esp, 4
test eax, eax
je 0x10065def
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 0x10065dc0
jmp 0x10065fdf
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 0x10065de0
jmp 0x10065fdf
call fcn.1006b040
test eax, eax
je 0x10065e82
lea edx, [esp + 0x10]
push edx
push 0x20119
lea eax, [esp + 0x228]
push eax
push reloc.WS2_32.dll_bind
call fcn.1007ebc0
test eax, eax
jne 0x10065e82
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 0x10065e52
push 1
lea edx, [esp + 0x42c]
push edx
call fcn.100796e0
lea eax, [esp + 0x428]
push eax
call fcn.10065660
add esp, 4
test eax, eax
je 0x10065e82
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 0x10065e73
jmp 0x10065fdf
push 0x103
lea edx, [esp + 0x225]
push ebx
push edx
mov byte [esp + 0x22c], bl
call fcn.1012e060
push 0x103
lea eax, [esp + 0x335]
push ebx
push eax
mov byte [esp + 0x33c], bl
call fcn.1012e060
lea ecx, [esp + 0x238]
push 0x104
push ecx
call fcn.1005f830
add esp, 0x20
lea esi, [esp + 0x220]
call fcn.10065240
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.10065240
push 0x208
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.10129e6f
lea eax, [esp + 0x22c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10065f21
sub eax, edx
cmp eax, 0x208
jb 0x10065f38
mov byte [esp + 0x21f], bl
lea ecx, [esp + 0x18]
call fcn.10065200
push ebp
mov edi, 0x208
lea esi, [esp + 0x1c]
call fcn.10068740
mov edx, esi
push edx
call fcn.10065660
add esp, 8
mov ecx, esi
test eax, eax
jne 0x10065fcd
push edi
lea eax, [esp + 0x328]
push eax
push ecx
call fcn.10129e6f
lea eax, [esp + 0x330]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10065f80
sub eax, edx
cmp eax, 0x208
jb 0x10065f97
mov byte [esp + 0x21f], bl
lea ecx, [esp + 0x18]
call fcn.10065200
push ebp
lea esi, [esp + 0x1c]
call fcn.10068740
mov edx, esi
push edx
call fcn.10065660
add esp, 8
test eax, eax
je 0x10065fdf
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 0x10065fc1
jmp 0x10065fdf
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 0x10065fd5
pop edi
pop esi
mov ecx, dword [esp + 0x830]
pop ebp
pop ebx
xor ecx, esp
call fcn.10127db1
add esp, 0x82c
ret