Function at 0x10009e70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x528
mov eax, dword [0x1001b2a8]
xor eax, esp
mov dword [esp + 0x524], eax
mov eax, dword [esp + 0x52c]
push ebx
push ebp
push esi
mov dword [esp + 0x18], eax
xor ebp, ebp
xor ebx, ebx
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
xor eax, eax
movzx ecx, word [eax + str.SoftwareClasses_]
mov word [esp + eax + 0x230], cx
add eax, 2
cmp cx, bp
jne 0x10009ea1
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ecx, ecx
push 0x3f
xor ecx, 0x7933
xor eax, 0x81956583
push ecx
push eax
lea edi, [esp + 0x43c]
call fcn.10009a60
add esp, 0xc
push 0x7f
push ebp
push 0x31857218
lea edi, [esp + 0x33c]
call fcn.10009a60
lea eax, [esp + 0x43c]
add esp, 0xc
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10009f00
lea edi, [esp + 0x230]
sub eax, edx
add edi, 0xfffffffe
jmp 0x10009f20
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10009f20
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x234]
push eax
and ecx, 3
push 0x80000001
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10009fb7
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x33c]
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call fcn.10009d80
mov edx, dword [esp + 0x28]
add esp, 0x10
push edx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, ebp
je 0x10009fb7
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x10009fa2
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x1000a1a0
mov edx, dword [esp + 0x14]
jmp 0x1000a19e
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.__]
mov word [esp + eax + 0x28], cx
add eax, 2
cmp cx, bp
jne 0x10009fc0
lea eax, [esp + 0x28]
lea edx, [eax + 2]
jmp 0x10009fe0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10009fe0
sub eax, edx
push 1
sar eax, 1
push 0x23
lea eax, [esp + eax*2 + 0x30]
push eax
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1000a12c
lea edi, [esp + 0x28]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x1000a010
mov ebx, dword [0x10019470]
lea eax, [esp + 0x430]
mov dword [edi], ebx
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x1000a030
lea edi, [esp + 0x28]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x1000a044
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
add edi, 0xfffffffe
jmp 0x1000a070
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x1000a070
lea eax, [esp + 0x330]
mov dword [edi], ebx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x1000a087
lea edi, [esp + 0x28]
sub eax, edx
add edi, 0xfffffffe
jmp 0x1000a0a0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x1000a0a0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x28]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x1000a0c3
mov ecx, dword [0x100197c8]
mov dx, word [0x100197cc]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.10009c50
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x1000a12c
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x1000a118
mov edx, dword [esp + 0x14]
mov dword [eax], edx
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x1000a1a0
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
jmp 0x1000a1a0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x234]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1000a1a0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x33c]
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.10009d80
mov edx, dword [esp + 0x28]
add esp, 0x10
push edx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, ebp
je 0x1000a1a0
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x1000a192
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x1000a1a0
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov ecx, dword [esp + 0x534]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1000c11c
add esp, 0x528
ret