Function at 0x100140d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x52c
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x524], eax
mov eax, dword [esp + 0x534]
push ebx
push ebp
push esi
mov dword [esp + 0x1c], eax
xor ebp, ebp
xor ebx, ebx
push edi
mov dword [esp + 0x24], ecx
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.SoftwareClasses_]
mov word [esp + eax + 0x230], cx
add eax, 2
cmp cx, bp
jne 0x10014100
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
push 0x3f
xor edx, 0x7933
xor eax, 0x81956583
push edx
push eax
lea edi, [esp + 0x43c]
call fcn.10017ea0
mov eax, dword [esp + 0x54c]
add esp, 0xc
xor eax, 0x31857219
cdq
push 0x7f
push edx
push eax
lea edi, [esp + 0x33c]
call fcn.10017ea0
lea eax, [esp + 0x43c]
add esp, 0xc
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10014166
lea edi, [esp + 0x230]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10014180
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 + 0x1c]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x234]
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10014213
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x544]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
lea eax, [esp + 0x344]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
call fcn.10013c00
mov ecx, dword [esp + 0x30]
add esp, 0x14
push ecx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, ebp
je 0x10014213
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x100143e0
mov edx, dword [esp + 0x14]
mov dword [eax], edx
jmp 0x100143e0
xor eax, eax
jmp 0x10014220
movzx ecx, word [eax + str.__]
mov word [esp + eax + 0x28], cx
add eax, 2
cmp cx, bp
jne 0x10014220
lea eax, [esp + 0x28]
lea edx, [eax + 2]
jmp 0x10014240
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10014240
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 0x10014372
lea edi, [esp + 0x28]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10014270
mov ebx, dword [0x1007eae4]
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 0x10014290
lea edi, [esp + 0x28]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x100142a4
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 0x100142d0
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x100142d0
lea eax, [esp + 0x330]
mov dword [edi], ebx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100142e7
lea edi, [esp + 0x28]
sub eax, edx
add edi, 0xfffffffe
jmp 0x10014300
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10014300
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 0x10014323
mov ecx, dword [0x1007ebe0]
mov dx, word [0x1007ebe4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x540]
mov word [eax + 4], dx
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call fcn.10013ad0
mov ebx, eax
add esp, 0xc
cmp ebx, ebp
jne 0x100143d2
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x234]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100143e0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x544]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
lea eax, [esp + 0x344]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
call fcn.10013c00
mov ebx, eax
mov eax, dword [esp + 0x30]
add esp, 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, ebp
je 0x100143e0
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x100143e0
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x534]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.100201e8
add esp, 0x52c
ret