Function at 0x4204c9
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x290]
sub esp, 0x31c
mov eax, dword [0x4f0dd0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x298]
xor eax, ebp
push str.shell32.dll
mov dword [ebp + 0x28c], eax
mov esi, ecx
mov dword [ebp + 0x78], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push esi
mov dword [ebp + 0x7c], eax
call ebx
lea edi, [esi + 0xa28]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [0x4ed250]
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, esi
call fcn.0040fb5d
test eax, eax
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
je 0x4205bb
mov ecx, esi
call fcn.0041c0da
test eax, eax
je 0x4205bb
lea eax, [ebp + 0x80]
push eax
push 0
push 0
push 0x4ba880
call dword [ebp + 0x7c]
push dword [0x4ed250]
lea eax, [esi + 0x208]
push dword [ebp + 0x80]
push eax
call edi
push dword [ebp + 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp + 0x80]
push eax
push 0
push 0
push 0x4ba860
call dword [ebp + 0x7c]
push dword [0x4ed250]
lea eax, [esi + 0x618]
push dword [ebp + 0x80]
push eax
call edi
push dword [ebp + 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4205cf
lea eax, [esi + 0x208]
push esi
push eax
call ebx
lea eax, [esi + 0x618]
push esi
push eax
call ebx
xor eax, eax
cmp dword [ebp + 0x7c], eax
jne 0x4205ea
lea ecx, [esi + 0x1658]
push ecx
push eax
push eax
push 0x1c
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jmp 0x42064e
lea ecx, [ebp + 0x80]
push ecx
push eax
push eax
push 0x4ba870
call dword [ebp + 0x7c]
push dword [ebp + 0x80]
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], eax
call fcn.004018df
push dword [ebp - 0x8c]
lea eax, [esi + 0x1658]
push eax
call ebx
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x8c], eax
je 0x420642
push dword [ebp - 0x8c]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
push dword [ebp + 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [0x4ed250]
lea eax, [esi + 0x1658]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Profiles_
lea ecx, [esi + 0x208]
lea eax, [esi + 0x410]
push ecx
push eax
call edi
push str.Xar_
push esi
lea eax, [esi + 0xc30]
push eax
call edi
mov ebx, str.BHO_
push ebx
push esi
lea eax, [esi + 0xe38]
push eax
call edi
push str.Addins_
lea ecx, [esi + 0x618]
lea eax, [esi + 0x820]
push ecx
push eax
call edi
push str.Data_
lea ecx, [esi + 0x618]
lea eax, [esi + 0x1450]
push ecx
push eax
call edi
push str.Skin_
lea ecx, [esi + 0x208]
lea eax, [esi + 0x1248]
push ecx
push eax
call edi
push ebx
lea ecx, [esi + 0x1658]
lea eax, [esi + 0x1040]
push ecx
push eax
call edi
lea eax, [esi + 0x410]
push eax
mov ecx, esi
call fcn.0041c09a
lea eax, [esi + 0x208]
push eax
mov ecx, esi
call fcn.0041c09a
lea eax, [esi + 0xa28]
push eax
mov ecx, esi
call fcn.0041c09a
lea eax, [esi + 0x820]
push eax
mov ecx, esi
call fcn.0041c09a
lea eax, [esi + 0x1450]
push eax
mov ecx, esi
call fcn.0041c09a
lea eax, [esi + 0x1248]
push eax
mov ecx, esi
call fcn.0041c09a
lea eax, [esi + 0x1040]
push eax
mov ecx, esi
call fcn.0041c09a
cmp dword [ebp + 0x29c], 0
mov ebx, 0x1f01ff
je 0x420766
push 3
push ebx
lea eax, [esi + 0x618]
push eax
mov ecx, esi
call fcn.00420260
push 0x4bdfb8
push dword [ebp + 0x78]
lea eax, [ebp + 0x84]
push eax
call edi
push 3
push ebx
lea eax, [ebp + 0x84]
push eax
mov ecx, esi
call fcn.004201e5
mov ecx, dword [ebp + 0x28c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f127
add ebp, 0x290
leave
ret 8