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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x449048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x442048
push 0x44b300
call fcn.00403250
add esp, 8
push 0
push 0x10
lea eax, [ebp - 0x40c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x40c]
add ecx, 0xfffffffe
mov dword [ebp - 0x420], ecx
mov edx, dword [ebp - 0x420]
mov ax, word [edx + 2]
mov word [ebp - 0x44e], ax
add dword [ebp - 0x420], 2
cmp word [ebp - 0x44e], 0
jne 0x40a179
mov edi, dword [ebp - 0x420]
mov ecx, dword [0x442058]
mov dword [edi], ecx
mov dword [ebp - 0x414], 0x44b0f8
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x454], edx
mov eax, dword [ebp - 0x414]
mov cx, word [eax]
mov word [ebp - 0x43a], cx
add dword [ebp - 0x414], 2
cmp word [ebp - 0x43a], 0
jne 0x40a1bf
mov edx, dword [ebp - 0x414]
sub edx, dword [ebp - 0x454]
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x464], edx
lea ecx, [ebp - 0x40c]
add ecx, 0xfffffffe
mov dword [ebp - 0x424], ecx
mov edx, dword [ebp - 0x424]
mov ax, word [edx + 2]
mov word [ebp - 0x43c], ax
add dword [ebp - 0x424], 2
cmp word [ebp - 0x43c], 0
jne 0x40a20d
mov edi, dword [ebp - 0x424]
mov esi, dword [ebp - 0x460]
mov edx, dword [ebp - 0x464]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x40c]
add eax, 0xfffffffe
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x428]
mov dx, word [ecx + 2]
mov word [ebp - 0x43e], dx
add dword [ebp - 0x428], 2
cmp word [ebp - 0x43e], 0
jne 0x40a25e
mov edi, dword [ebp - 0x428]
mov eax, dword [0x44205c]
mov dword [edi], eax
mov ecx, dword [0x442060]
mov dword [edi + 4], ecx
mov dx, word [0x442064]
mov word [edi + 8], dx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x40c]
push ecx
call fcn.0040a070
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.00419f90
add esp, 0xc
push 0
push 2
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov dword [ebp - 0x42c], ecx
mov edx, dword [ebp - 0x42c]
mov ax, word [edx + 2]
mov word [ebp - 0x440], ax
add dword [ebp - 0x42c], 2
cmp word [ebp - 0x440], 0
jne 0x40a2ec
mov edi, dword [ebp - 0x42c]
mov ecx, dword [0x442068]
mov dword [edi], ecx
mov dword [ebp - 0x418], 0x44b0f8
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x458], edx
mov eax, dword [ebp - 0x418]
mov cx, word [eax]
mov word [ebp - 0x442], cx
add dword [ebp - 0x418], 2
cmp word [ebp - 0x442], 0
jne 0x40a332
mov edx, dword [ebp - 0x418]
sub edx, dword [ebp - 0x458]
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x46c], edx
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov dword [ebp - 0x430], ecx
mov edx, dword [ebp - 0x430]
mov ax, word [edx + 2]
mov word [ebp - 0x444], ax
add dword [ebp - 0x430], 2
cmp word [ebp - 0x444], 0
jne 0x40a380
mov edi, dword [ebp - 0x430]
mov esi, dword [ebp - 0x468]
mov edx, dword [ebp - 0x46c]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x434]
mov dx, word [ecx + 2]
mov word [ebp - 0x446], dx
add dword [ebp - 0x434], 2
cmp word [ebp - 0x446], 0
jne 0x40a3d1
mov edi, dword [ebp - 0x434]
mov eax, dword [0x44206c]
mov dword [edi], eax
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0041ccf3
add esp, 8
test eax, eax
je 0x40a424
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x410], 0x44b0f8
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x410]
mov dx, word [ecx]
mov word [ebp - 0x448], dx
add dword [ebp - 0x410], 2
cmp word [ebp - 0x448], 0
jne 0x40a43a
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x45c]
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x470], ecx
mov dword [ebp - 0x474], eax
lea edx, [ebp - 0x20c]
add edx, 0xfffffffe
mov dword [ebp - 0x438], edx
mov eax, dword [ebp - 0x438]
mov cx, word [eax + 2]
mov word [ebp - 0x44a], cx
add dword [ebp - 0x438], 2
cmp word [ebp - 0x44a], 0
jne 0x40a488
mov edi, dword [ebp - 0x438]
mov esi, dword [ebp - 0x470]
mov edx, dword [ebp - 0x474]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
mov dx, word [ecx + 2]
mov word [ebp - 0x44c], dx
add dword [ebp - 0x41c], 2
cmp word [ebp - 0x44c], 0
jne 0x40a4d9
mov edi, dword [ebp - 0x41c]
mov eax, dword [0x442070]
mov dword [edi], eax
mov ecx, dword [0x442074]
mov dword [edi + 4], ecx
mov dx, word [0x442078]
mov word [edi + 8], dx
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0041ccf3
add esp, 8
test eax, eax
je 0x40a544
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.0040a070
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418129
mov esp, ebp
pop ebp
ret