Function at 0x413510
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e1b7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1c8
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1d4], esi
sub esp, 8
mov dword [ebp - 0x1d4], esi
lea ecx, [ebp - 0x1d0]
call fcn.00417500
push 1
push 0
push 0
lea eax, [ebp - 0x168]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1d0]
call fcn.00417280
lea edx, [ebp - 0x168]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x180]
call fcn.0040d040
mov edi, eax
push 0
push 0x2a
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
mov dword [ebp - 0x128], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x124], 0
movups xmmword [ebp - 0x138], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4135e1
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x138]
call fcn.00402000
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x124]
mov eax, edx
mov ecx, dword [ebp - 0x128]
sub eax, ecx
cmp eax, 1
jb 0x41363d
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x138]
cmova eax, dword [ebp - 0x138]
mov word [eax + ecx], 0x5c
lea eax, [ebp - 0x138]
jmp 0x413657
push 1
push 0x4218a8
push dword [ebp - 0x1d4]
lea ecx, [ebp - 0x138]
push 1
call fcn.004061f0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x198], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x188], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push edi
lea eax, [ebp - 0x198]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x1d4]
lea ecx, [ebp - 0x150]
call fcn.004162b0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x13c]
mov eax, edx
mov ecx, dword [ebp - 0x140]
sub eax, ecx
cmp eax, 1
jb 0x4136dc
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x150]
cmova eax, dword [ebp - 0x150]
mov word [eax + ecx], 0x5c
lea eax, [ebp - 0x150]
jmp 0x4136f6
push 1
push 0x4218a8
push dword [ebp - 0x1d4]
lea ecx, [ebp - 0x150]
push 1
call fcn.004061f0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x13c]
cmp ecx, 0xf
jbe 0x413765
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41375b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4138fa
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
cmp ecx, 0xf
jbe 0x4137ba
mov edx, dword [ebp - 0x198]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4137b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4138fa
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov ecx, dword [ebp - 0x124]
cmp ecx, 0xf
jbe 0x4137f4
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4137ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4138fa
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
cmp ecx, 0xf
jbe 0x413849
mov edx, dword [ebp - 0x180]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41383f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4138fa
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0xf
mov byte [ebp - 0x180], 0
cmp ecx, 7
jbe 0x4138a0
mov edx, dword [ebp - 0x168]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413896
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4138fa
push ecx
push edx
call fcn.0041c16d
add esp, 8
xor eax, eax
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x1b8]
mov dword [ebp - 0x154], 7
mov word [ebp - 0x168], ax
call fcn.00410c20
mov ecx, dword [ebp - 0x1bc]
cmp ecx, 7
jbe 0x41390a
mov edx, dword [ebp - 0x1d0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413900
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x413900
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041bed2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret