Function at 0x413de4
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0xe70
lea ebp, [esp - 4]
mov eax, dword [0x506550]
xor eax, ebp
mov dword [ebp + 0xe70], eax
push 0x10
mov eax, 0x4c0c04
call fcn.0043c032
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0xe7c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xe80]
xor edi, edi
mov esi, 0x206
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc6a]
push edi
push eax
mov dword [ebp - 0x1c], edi
mov word [ebp + 0xc68], di
call fcn.0043b4c0
add esp, 0xc
push edi
push 0x19
lea eax, [ebp + 0xc68]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
je 0x413f44
lea eax, [ebp + 0xc68]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004015c0
push 0x4dfb94
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], edi
call fcn.004036c0
push esi
lea eax, [ebp + 0x44a]
push edi
push eax
mov word [ebp + 0x448], di
call fcn.0043b4c0
push esi
lea eax, [ebp + 0xa62]
push edi
push eax
mov word [ebp + 0xa60], di
call fcn.0043b4c0
mov eax, dword [ebp + 0x20]
add esp, 0x18
cmp dword [ebp + 0x34], 8
jae 0x413eb6
lea eax, [ebp + 0x20]
push dword [ebp - 0x14]
push eax
lea eax, [ebp + 0x448]
push str._s_s.lnk
push eax
call fcn.0043c4d1
mov ecx, dword [ebp - 0x18]
add esp, 0x10
lea eax, [ebp + 0xa60]
push eax
lea eax, [ebp + 0x448]
push eax
call fcn.00413760
push esi
lea eax, [ebp + 0x3a]
push edi
push eax
mov word [ebp + 0x38], di
call fcn.0043b4c0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0xa60]
push eax
call ebx
lea eax, [ebp + 0xa60]
push eax
call fcn.0043b6aa
test eax, eax
pop ecx
je 0x413f35
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x38]
push eax
call fcn.004015c0
lea ecx, [ebp + 0x1c]
push edi
push 1
call fcn.004017c0
jmp 0x414058
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.004017c0
push edi
push 0x10
lea eax, [ebp + 0xc68]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41404b
lea eax, [ebp + 0xc68]
push eax
lea ecx, [ebp]
call fcn.004015c0
push 0x4dfb94
lea ecx, [ebp]
mov dword [ebp - 4], 1
call fcn.004036c0
push esi
lea eax, [ebp + 0x242]
push edi
push eax
mov word [ebp + 0x240], di
call fcn.0043b4c0
push esi
lea eax, [ebp + 0x85a]
push edi
push eax
mov word [ebp + 0x858], di
call fcn.0043b4c0
mov eax, dword [ebp + 4]
add esp, 0x18
cmp dword [ebp + 0x18], 8
jae 0x413fb9
lea eax, [ebp + 4]
push dword [ebp - 0x14]
push eax
lea eax, [ebp + 0x240]
push str._s_s.lnk
push eax
call fcn.0043c4d1
mov ecx, dword [ebp - 0x18]
add esp, 0x10
lea eax, [ebp + 0x858]
push eax
lea eax, [ebp + 0x240]
push eax
call fcn.00413760
push esi
lea eax, [ebp + 0x652]
push edi
push eax
mov word [ebp + 0x650], di
call fcn.0043b4c0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x650]
push eax
lea eax, [ebp + 0x858]
push eax
call ebx
lea eax, [ebp + 0x858]
push eax
call fcn.0043b6aa
test eax, eax
pop ecx
je 0x41403c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x650]
push eax
call fcn.004015c0
lea ecx, [ebp]
jmp 0x413f28
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp]
call fcn.004017c0
mov ecx, dword [ebp - 0x10]
push 0x4dfbb4
call fcn.004015c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe70]
xor ecx, ebp
call fcn.0043b4a5
add ebp, 0xe74
leave
ret 8