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

Disassembly:
sub esp, 0x838
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x834], eax
push ebx
push ebp
mov ebp, dword [esp + 0x844]
push esi
push edi
xor ebx, ebx
push 0x207
lea eax, [esp + 0x1d]
push ebx
push eax
mov byte [esp + 0x24], bl
call fcn.00a7ffb0
add esp, 0xc
push 0x5c
push ebp
call fcn.00a7baf4
add esp, 8
test eax, eax
jne 0x961992
mov eax, dword [0xbfc924]
cmp eax, ebx
jne 0x9615c6
call fcn.00960ce0
mov eax, dword [0xbfc924]
cmp eax, ebx
je 0x961689
mov edi, eax
cmp eax, ebx
je 0x961689
mov esi, dword [edi]
push 0x208
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.00a7b9de
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x9615f0
sub eax, edx
cmp eax, 0x208
jb 0x961607
mov byte [esp + 0x21f], bl
cmp byte [esp + 0x18], bl
je 0x961633
lea eax, [esp + 0x18]
inc eax
cmp byte [eax], bl
jne 0x961611
lea edx, [esp + 0x18]
sub eax, edx
je 0x961633
cmp byte [esp + eax + 0x17], 0x5c
je 0x961633
push 0xaa1564
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 0x961640
sub eax, edx
cmp eax, 0x208
jge 0x961665
mov edx, ebp
mov cl, byte [edx]
cmp cl, bl
je 0x961665
mov byte [esp + eax + 0x18], cl
inc eax
inc edx
cmp eax, 0x208
jl 0x961652
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + eax + 0x1c], bl
call fcn.00961010
add esp, 4
test eax, eax
jne 0x96177f
mov edi, dword [edi + 0x18]
cmp edi, ebx
jne 0x9615d0
push 0x103
lea edx, [esp + 0x225]
push ebx
push edx
mov byte [esp + 0x22c], bl
call fcn.00a7ffb0
add esp, 0xc
push 0x40f
lea eax, [esp + 0x435]
push ebx
push eax
mov byte [esp + 0x43c], bl
call fcn.00a7ffb0
add esp, 0xc
push ebp
lea ecx, [esp + 0x224]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_s
push ecx
mov dword [esp + 0x20], 0x410
call fcn.00a78f30
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 1
push ebx
lea eax, [esp + 0x22c]
push eax
push 0x80000002
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 0x96179f
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x434]
push edx
push ebx
push ebx
push ebx
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call edi
cmp byte [esp + 0x430], bl
je 0x96174f
push 1
lea edx, [esp + 0x434]
push edx
call fcn.00977760
lea eax, [esp + 0x430]
push eax
call fcn.00961010
add esp, 4
test eax, eax
je 0x96179f
lea eax, [esp + 0x430]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x961770
jmp 0x961992
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 0x961790
jmp 0x961992
call fcn.00968110
test eax, eax
je 0x961832
lea edx, [esp + 0x10]
push edx
push 0x20119
lea eax, [esp + 0x228]
push eax
push 0x80000002
call fcn.0097eda0
test eax, eax
jne 0x961832
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x434]
push edx
push ebx
push ebx
push ebx
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call edi
cmp byte [esp + 0x430], bl
je 0x961802
push 1
lea edx, [esp + 0x434]
push edx
call fcn.00977760
lea eax, [esp + 0x430]
push eax
call fcn.00961010
add esp, 4
test eax, eax
je 0x961832
lea eax, [esp + 0x430]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x961823
jmp 0x961992
push 0x103
lea edx, [esp + 0x225]
push ebx
push edx
mov byte [esp + 0x22c], bl
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea eax, [esp + 0x32d]
push ebx
push eax
mov byte [esp + 0x334], bl
call fcn.00a7ffb0
add esp, 0xc
mov edi, 0x104
lea ecx, [esp + 0x220]
call fcn.00958630
lea esi, [esp + 0x220]
call fcn.00960950
push edi
lea ecx, [esp + 0x32c]
push ecx
mov byte [esp + 0x330], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea esi, [esp + 0x328]
call fcn.00960950
push 0x208
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00a7b9de
lea eax, [esp + 0x22c]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x9618d0
sub eax, edx
cmp eax, 0x208
jb 0x9618e7
mov byte [esp + 0x21f], bl
lea ecx, [esp + 0x18]
call fcn.00960910
push ebp
mov edi, 0x208
lea esi, [esp + 0x1c]
call fcn.009653e0
mov ecx, esi
add esp, 4
push ecx
call fcn.00961010
add esp, 4
test eax, eax
mov eax, esi
jne 0x961980
push edi
lea edx, [esp + 0x32c]
push edx
push eax
call fcn.00a7b9de
lea eax, [esp + 0x334]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x961930
sub eax, edx
cmp eax, 0x208
jb 0x961947
mov byte [esp + 0x21f], bl
lea ecx, [esp + 0x18]
call fcn.00960910
push ebp
lea esi, [esp + 0x1c]
call fcn.009653e0
mov ecx, esi
add esp, 4
push ecx
call fcn.00961010
add esp, 4
test eax, eax
je 0x961992
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 0x961974
jmp 0x961992
mov edx, ebp
lea ecx, [esp + 0x18]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x961988
mov ecx, dword [esp + 0x844]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x838
ret