Function at 0x10013db0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x528
mov eax, dword [0x100812a0]
xor eax, esp
mov dword [esp + 0x524], eax
mov eax, dword [esp + 0x52c]
push ebx
push ebp
push esi
push edi
push eax
mov ebx, edx
mov dword [esp + 0x28], eax
push ebx
lea eax, [esp + 0x1c]
mov esi, ecx
push eax
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], 0
call fcn.10013920
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10013e09
mov eax, 0xfffffffe
jmp 0x100140ad
xor eax, eax
jmp 0x10013e10
movzx ecx, word [eax + str.SoftwareClasses_]
mov word [esp + eax + 0x330], cx
add eax, 2
test cx, cx
jne 0x10013e10
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.10017ea0
mov eax, esi
add esp, 0xc
xor eax, 0x31857219
cdq
push 0x7f
push edx
push eax
lea edi, [esp + 0x23c]
call fcn.10017ea0
lea eax, [esp + 0x43c]
add esp, 0xc
mov esi, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10013e71
lea edi, [esp + 0x330]
sub eax, esi
add edi, 0xfffffffe
jmp 0x10013e90
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10013e90
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x334]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push closesocket
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10013ed5
cmp eax, 0xb7
jne 0x10013f02
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ecx
push edx
push eax
lea edi, [esp + 0x23c]
call fcn.10013cf0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call ebp
mov ebx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x334]
push eax
push closesocket
call esi
test eax, eax
je 0x10013f21
cmp eax, 0xb7
jne 0x10013f46
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push edx
lea edi, [esp + 0x23c]
call fcn.10013cf0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call ebp
xor eax, eax
jmp 0x10013f50
movzx ecx, word [eax + str.__]
mov word [esp + eax + 0x28], cx
add eax, 2
test cx, cx
jne 0x10013f50
lea eax, [esp + 0x28]
lea edx, [eax + 2]
jmp 0x10013f70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10013f70
sub eax, edx
push 1
sar eax, 1
push 0x23
lea ecx, [esp + eax*2 + 0x30]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1001409d
lea edi, [esp + 0x28]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10013fa0
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
test cx, cx
jne 0x10013fc0
lea edi, [esp + 0x28]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10013fd4
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 0x10014000
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10014000
push 0
lea edx, [esp + 0x2c]
push edx
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x230]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10014024
lea edi, [esp + 0x28]
sub eax, edx
add edi, 0xfffffffe
jmp 0x10014040
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10014040
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
test cx, cx
jne 0x10014063
mov ecx, dword [0x1007ebe0]
mov dx, word [0x1007ebe4]
mov ebx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov word [eax + 4], dx
mov eax, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.100139e0
add esp, 0xc
mov eax, dword [esp + 0x1c]
push eax
call fcn.100201f7
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x534]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100201e8
add esp, 0x528
ret