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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100848fd
mov eax, dword fs:[0]
push eax
mov eax, 0x1034
call fcn.100790e0
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x24
mov dword [ebp - 0x1040], 0x100aca80
mov dword [0x100aca84], ebx
call fcn.10067232
add esp, 4
cmp eax, ebx
je 0x10056b84
mov dword [0x100aca80], eax
mov dword [eax], eax
mov eax, dword [0x100aca80]
mov dword [eax + 4], eax
push 0xffe
lea ecx, [ebp - 0x100e]
xor eax, eax
push ebx
mov dword [ebp - 4], ebx
push ecx
mov word [ebp - 0x1010], ax
call fcn.1006b580
add esp, 0xc
push ebx
push 0x1a
lea edx, [ebp - 0x1010]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100566f0
lea eax, [ebp - 0x1010]
push eax
call fcn.1006a266
add esp, 4
xor ecx, ecx
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], ebx
mov word [ebp - 0x102c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10056670
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x102c]
call fcn.10003a30
mov byte [ebp - 4], 1
mov eax, dword [0x100aca80]
mov ecx, dword [eax + 4]
lea esi, [eax + 4]
lea edx, [ebp - 0x102c]
push edx
push ecx
push eax
call fcn.1004fa30
mov edx, 0x9249248
sub edx, dword [0x100aca84]
cmp edx, 1
jae 0x100566c8
push str.list_T__too_long
call fcn.1005efb6
inc dword [0x100aca84]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1018], 8
jb 0x100566f0
mov eax, dword [ebp - 0x102c]
push eax
call fcn.10066b10
add esp, 4
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
push ebx
mov ecx, 0x400
lea edi, [ebp - 0x1010]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1010]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100567d3
lea ecx, [ebp - 0x1010]
push ecx
call fcn.1006a266
add esp, 4
xor edx, edx
lea eax, [ebp - 0x1010]
mov word [ebp - 0x102c], dx
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10056753
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x102c]
call fcn.10003a30
mov byte [ebp - 4], 2
mov eax, dword [0x100aca80]
mov edx, dword [eax + 4]
lea esi, [eax + 4]
lea ecx, [ebp - 0x102c]
push ecx
push edx
push eax
call fcn.1004fa30
mov ecx, 0x9249248
sub ecx, dword [0x100aca84]
cmp ecx, 1
jae 0x100567ab
push str.list_T__too_long
call fcn.1005efb6
inc dword [0x100aca84]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1018], 8
jb 0x100567d3
mov edx, dword [ebp - 0x102c]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
push ebx
mov ecx, 0x400
lea edi, [ebp - 0x1010]
rep stosd dword es:[edi], eax
push 0x23
lea eax, [ebp - 0x1010]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100568b6
lea ecx, [ebp - 0x1010]
push ecx
call fcn.1006a266
add esp, 4
xor edx, edx
lea eax, [ebp - 0x1010]
mov word [ebp - 0x102c], dx
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10056836
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x102c]
call fcn.10003a30
mov byte [ebp - 4], 3
mov eax, dword [0x100aca80]
mov edx, dword [eax + 4]
lea esi, [eax + 4]
lea ecx, [ebp - 0x102c]
push ecx
push edx
push eax
call fcn.1004fa30
mov ecx, 0x9249248
sub ecx, dword [0x100aca84]
cmp ecx, 1
jae 0x1005688e
push str.list_T__too_long
call fcn.1005efb6
inc dword [0x100aca84]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1018], 8
jb 0x100568b6
mov edx, dword [ebp - 0x102c]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
push ebx
mov ecx, 0x400
lea edi, [ebp - 0x1010]
rep stosd dword es:[edi], eax
push 0x26
lea eax, [ebp - 0x1010]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x100569a0
lea ecx, [ebp - 0x1010]
push ecx
call fcn.1006a266
add esp, 4
xor edx, edx
lea eax, [ebp - 0x1010]
mov word [ebp - 0x102c], dx
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10056920
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x102c]
call fcn.10003a30
mov byte [ebp - 4], 4
mov eax, dword [0x100aca80]
mov edx, dword [eax + 4]
lea esi, [eax + 4]
lea ecx, [ebp - 0x102c]
push ecx
push edx
push eax
call fcn.1004fa30
mov ecx, 0x9249248
sub ecx, dword [0x100aca84]
cmp ecx, 1
jae 0x10056978
push str.list_T__too_long
call fcn.1005efb6
inc dword [0x100aca84]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1018], 8
jb 0x100569a0
mov edx, dword [ebp - 0x102c]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
push ebx
mov ecx, 0x400
lea edi, [ebp - 0x1010]
rep stosd dword es:[edi], eax
push 0x2b
lea eax, [ebp - 0x1010]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10056a83
lea ecx, [ebp - 0x1010]
push ecx
call fcn.1006a266
add esp, 4
xor edx, edx
lea eax, [ebp - 0x1010]
mov word [ebp - 0x102c], dx
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10056a03
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x102c]
call fcn.10003a30
mov byte [ebp - 4], 5
mov eax, dword [0x100aca80]
mov edx, dword [eax + 4]
lea esi, [eax + 4]
lea ecx, [ebp - 0x102c]
push ecx
push edx
push eax
call fcn.1004fa30
mov ecx, 0x9249248
sub ecx, dword [0x100aca84]
cmp ecx, 1
jae 0x10056a5b
push str.list_T__too_long
call fcn.1005efb6
inc dword [0x100aca84]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1018], 8
jb 0x10056a83
mov edx, dword [ebp - 0x102c]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
push ebx
mov ecx, 0x400
lea edi, [ebp - 0x1010]
rep stosd dword es:[edi], eax
push 0x2c
lea eax, [ebp - 0x1010]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10056b63
lea ecx, [ebp - 0x1010]
push ecx
call fcn.1006a266
add esp, 4
xor edx, edx
lea eax, [ebp - 0x1010]
mov word [ebp - 0x102c], dx
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10056ae6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x102c]
call fcn.10003a30
mov byte [ebp - 4], 6
mov eax, dword [0x100aca80]
mov edx, dword [eax + 4]
lea esi, [eax + 4]
lea ecx, [ebp - 0x102c]
push ecx
push edx
push eax
call fcn.1004fa30
mov ecx, 0x9249248
sub ecx, dword [0x100aca84]
cmp ecx, 1
jae 0x10056b3e
push str.list_T__too_long
call fcn.1005efb6
inc dword [0x100aca84]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], eax
cmp dword [ebp - 0x1018], 8
jb 0x10056b63
mov eax, dword [ebp - 0x102c]
push eax
call fcn.10066b10
add esp, 4
mov eax, 0x100aca80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1030]
push ecx
lea ecx, [ebp - 0x103c]
mov dword [ebp - 0x1030], ebx
call fcn.10066dc7
push 0x10099a10
lea edx, [ebp - 0x103c]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.1006752f
int3