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

Disassembly:
push 0xffffffffffffffff
push 0x52ba7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
push 0x10d8
mov dword [esp + 0x18], ebx
mov byte [ebx + 4], al
call sub.MFC42.DLL_operatornew
xor ebp, ebp
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ebp
mov cl, byte [esp + 0x17]
push 0x10d8
mov dword [esp + 0x28], ebp
mov byte [ebx + 0x10], cl
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ebp
mov dl, byte [esp + 0x1b]
push 0x10d8
mov byte [esp + 0x2c], 1
mov byte [ebx + 0x1c], dl
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 0xc
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ebp
mov al, byte [esp + 0x13]
lea esi, [ebx + 0x28]
push ebp
push ebp
mov ecx, esi
mov byte [esp + 0x28], 2
mov byte [esi], al
call fcn.004b6280
mov dword [esi + 4], eax
mov dword [esi + 8], ebp
mov cl, byte [esp + 0x13]
lea esi, [ebx + 0x34]
push ebp
push ebp
mov byte [esi], cl
mov ecx, esi
mov byte [esp + 0x28], 3
call fcn.004b6280
mov dword [esi + 4], eax
mov dword [esi + 8], ebp
mov dl, byte [esp + 0x13]
lea esi, [ebx + 0x40]
push ebp
push ebp
mov ecx, esi
mov byte [esp + 0x28], 4
mov byte [esi], dl
call fcn.004b6310
mov dword [esi + 4], eax
mov dword [esi + 8], ebp
mov al, byte [esp + 0x13]
push 0xc
mov byte [esp + 0x24], 5
mov byte [ebx + 0x4c], al
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], ebp
mov cl, byte [esp + 0x13]
lea esi, [ebx + 0x58]
push ebp
push ebp
mov byte [esi], cl
mov ecx, esi
mov byte [esp + 0x28], 6
call fcn.0041ce40
mov dword [esi + 4], eax
mov dword [esi + 8], ebp
lea esi, [ebx + 0x168]
push ebp
push 0x25
push esi
push ebp
mov dword [ebx], 0x53b080
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
call dword [sym.imp.MSVCRT.dll__mbslwr]
mov al, byte [ebx + 0x169]
lea edi, [ebx + 0x169]
add esp, 4
cmp al, 0x3a
jne 0x4b20fb
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebx + 0x168]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x64]
push ebp
push 0x26
push esi
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
call dword [sym.imp.MSVCRT.dll__mbslwr]
mov al, byte [ebx + 0x65]
lea edi, [ebx + 0x65]
add esp, 4
cmp al, 0x3a
jne 0x4b213b
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
lea edi, [ebx + 0x64]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x26c]
push ebp
push 0x24
push esi
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
call dword [sym.imp.MSVCRT.dll__mbslwr]
mov al, byte [ebx + 0x26d]
lea edi, [ebx + 0x26d]
add esp, 4
cmp al, 0x3a
jne 0x4b2187
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebx + 0x26c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret