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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c50c7
mov eax, dword fs:[0]
push eax
mov eax, 0x1030
call fcn.004aa1a0
mov eax, dword [0x4fad60]
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 [0x506370], ebx
call fcn.00490dc4
add esp, 4
cmp eax, ebx
je 0x47cfd1
mov dword [0x50636c], eax
mov dword [eax], eax
mov eax, dword [0x50636c]
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.00497ad0
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 0x47cb36
lea eax, [ebp - 0x1010]
push eax
call fcn.00491c7a
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 0x47cab6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x102c]
call fcn.00403e70
mov byte [ebp - 4], 1
mov eax, dword [0x50636c]
mov ecx, dword [eax + 4]
lea esi, [eax + 4]
lea edx, [ebp - 0x102c]
push edx
push ecx
push eax
call fcn.00481780
mov edx, 0x9249248
sub edx, dword [0x506370]
cmp edx, 1
jae 0x47cb0e
push str.list_T__too_long
call fcn.0048d598
inc dword [0x506370]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1018], 8
jb 0x47cb36
mov eax, dword [ebp - 0x102c]
push eax
call fcn.00490a16
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 0x47cc20
lea ecx, [ebp - 0x1010]
push ecx
call fcn.00491c7a
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 0x47cba0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x102c]
call fcn.00403e70
mov byte [ebp - 4], 2
mov eax, dword [0x50636c]
mov edx, dword [eax + 4]
lea esi, [eax + 4]
lea ecx, [ebp - 0x102c]
push ecx
push edx
push eax
call fcn.00481780
mov ecx, 0x9249248
sub ecx, dword [0x506370]
cmp ecx, 1
jae 0x47cbf8
push str.list_T__too_long
call fcn.0048d598
inc dword [0x506370]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1018], 8
jb 0x47cc20
mov edx, dword [ebp - 0x102c]
push edx
call fcn.00490a16
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 0x47cd03
lea ecx, [ebp - 0x1010]
push ecx
call fcn.00491c7a
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 0x47cc83
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x102c]
call fcn.00403e70
mov byte [ebp - 4], 3
mov eax, dword [0x50636c]
mov edx, dword [eax + 4]
lea esi, [eax + 4]
lea ecx, [ebp - 0x102c]
push ecx
push edx
push eax
call fcn.00481780
mov ecx, 0x9249248
sub ecx, dword [0x506370]
cmp ecx, 1
jae 0x47ccdb
push str.list_T__too_long
call fcn.0048d598
inc dword [0x506370]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1018], 8
jb 0x47cd03
mov edx, dword [ebp - 0x102c]
push edx
call fcn.00490a16
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 0x47cde6
lea ecx, [ebp - 0x1010]
push ecx
call fcn.00491c7a
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 0x47cd66
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x102c]
call fcn.00403e70
mov byte [ebp - 4], 4
mov eax, dword [0x50636c]
mov edx, dword [eax + 4]
lea esi, [eax + 4]
lea ecx, [ebp - 0x102c]
push ecx
push edx
push eax
call fcn.00481780
mov ecx, 0x9249248
sub ecx, dword [0x506370]
cmp ecx, 1
jae 0x47cdbe
push str.list_T__too_long
call fcn.0048d598
inc dword [0x506370]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1018], 8
jb 0x47cde6
mov edx, dword [ebp - 0x102c]
push edx
call fcn.00490a16
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 0x47ced0
lea ecx, [ebp - 0x1010]
push ecx
call fcn.00491c7a
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 0x47ce50
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x102c]
call fcn.00403e70
mov byte [ebp - 4], 5
mov eax, dword [0x50636c]
mov edx, dword [eax + 4]
lea esi, [eax + 4]
lea ecx, [ebp - 0x102c]
push ecx
push edx
push eax
call fcn.00481780
mov ecx, 0x9249248
sub ecx, dword [0x506370]
cmp ecx, 1
jae 0x47cea8
push str.list_T__too_long
call fcn.0048d598
inc dword [0x506370]
mov dword [esi], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1018], 8
jb 0x47ced0
mov edx, dword [ebp - 0x102c]
push edx
call fcn.00490a16
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 0x47cfb0
lea ecx, [ebp - 0x1010]
push ecx
call fcn.00491c7a
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 0x47cf33
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x102c]
call fcn.00403e70
mov byte [ebp - 4], 6
mov eax, dword [0x50636c]
mov edx, dword [eax + 4]
lea esi, [eax + 4]
lea ecx, [ebp - 0x102c]
push ecx
push edx
push eax
call fcn.00481780
mov ecx, 0x9249248
sub ecx, dword [0x506370]
cmp ecx, 1
jae 0x47cf8b
push str.list_T__too_long
call fcn.0048d598
inc dword [0x506370]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], eax
cmp dword [ebp - 0x1018], 8
jb 0x47cfb0
mov eax, dword [ebp - 0x102c]
push eax
call fcn.00490a16
add esp, 4
mov eax, 0x50636c
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.00490a21
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1030]
push ecx
lea ecx, [ebp - 0x103c]
mov dword [ebp - 0x1030], ebx
call fcn.00490ac9
push 0x4e94b0
lea edx, [ebp - 0x103c]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00495f48
int3