Function at 0x40186c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
push ebx
push esi
push edi
mov esi, 0x200
xor edi, edi
push esi
lea eax, [ebp - 0x610]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x610]
push esi
push eax
push dword [0x4056b0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x410]
push eax
call ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x10
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x30c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
and byte [ebp - 0x208], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004015a3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
test eax, eax
mov edi, 0x100
jne 0x401a91
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push 0x405358
push eax
call esi
lea eax, [ebp - 0x208]
push edi
push eax
push GetFileAttributesA
push dword [0x405768]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x401960
lea eax, [ebp - 0x208]
push str.WebEx_Recorder
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push str..LNK
push eax
call esi
lea eax, [ebp - 0x108]
push 0xfffff922
push eax
lea eax, [ebp - 0x208]
push eax
push 0
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0040256e
lea eax, [ebp - 0x108]
push eax
push str.recorder_shortcut
push str.softwarewebexRecorderPlayback
push 0x80000001
call fcn.00401651
push dword [ebp + 8]
call fcn.004015e1
add esp, 0x2c
test eax, eax
je 0x401a91
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x108]
push 0x405358
push eax
call esi
push edi
lea eax, [ebp - 0x208]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push edi
push eax
push GetFileAttributesA
push dword [0x405768]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x401a2f
lea eax, [ebp - 0x208]
push str.WebEx_Recording_Editor
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push str..LNK
push eax
call esi
lea eax, [ebp - 0x108]
push 0xfffff920
push eax
lea eax, [ebp - 0x208]
push eax
push str._EDITOR
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0040256e
lea eax, [ebp - 0x108]
push eax
push str.editor_shortcut
push str.softwarewebexRecorderPlayback
push 0x80000001
call fcn.00401651
add esp, 0x28
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x108]
push 0x405358
push eax
call esi
push edi
lea eax, [ebp - 0x208]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push edi
push eax
push reloc.KERNEL32.dll_GetFileAttributesA
push dword [0x405768]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x401af1
lea eax, [ebp - 0x208]
push str.WebEx_Player
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push str..LNK
push eax
call esi
lea eax, [ebp - 0x108]
push 0xfffff921
push eax
lea eax, [ebp - 0x208]
push eax
push str._PLAYER
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0040256e
lea eax, [ebp - 0x108]
push eax
push str.player_shortcut
push str.softwarewebexRecorderPlayback
push 0x80000001
call fcn.00401651
add esp, 0x28
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret