Function at 0x4a5db0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x244], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 0x14]
test edx, edx
je 0x4a5e13
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5df0
sub ecx, esi
sar ecx, 1
je 0x4a5e13
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5e06
jmp 0x4a5e2b
mov edx, dword [str.WebView]
mov ecx, edx
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5e20
sub ecx, esi
lea esi, [ebx + 0x58]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00407020
test edi, edi
je 0x4a5e7e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5e44
sub ecx, edx
sar ecx, 1
je 0x4a5e7e
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5e60
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebx + 0x74]
call fcn.00407020
jmp 0x4a609e
mov edx, dword [str.WebView]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5ea6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x240]
call fcn.00407020
push 1
push 0x50f724
lea ecx, [ebp - 0x240]
call fcn.00405360
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4a5ede
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x240]
push eax
call fcn.00405360
push 1
push 0x50f724
lea ecx, [ebp - 0x240]
call fcn.00405360
mov edx, dword [str.Cache]
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5f10
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x240]
call fcn.00405360
cmp dword [ebp - 0x22c], 8
lea esi, [ebp - 0x240]
jb 0x4a5f41
mov esi, dword [ebp - 0x240]
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004c49e0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test esi, esi
je 0x4a5f8b
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [ebp - 0x218], 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5fb1
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.00407020
lea esi, [ebx + 0x74]
lea eax, [ebp - 0x228]
cmp esi, eax
je 0x4a601e
mov ecx, esi
call fcn.004072c0
mov eax, dword [ebp - 0x228]
mov dword [esi], eax
mov eax, dword [ebp - 0x224]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x220]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x218]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x214]
mov dword [esi + 0x14], eax
jmp 0x4a605e
mov edx, dword [ebp - 0x214]
cmp edx, 8
jb 0x4a605e
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a6054
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61e1
push edx
push ecx
call fcn.004c1d47
add esp, 8
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x4a609e
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a6094
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a61e1
push edx
push ecx
call fcn.004c1d47
add esp, 8
mov esi, dword [ebp - 0x24c]
test esi, esi
je 0x4a60c9
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a60b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebx + 0x40]
call fcn.00407020
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4a60d5
mov eax, fcn.004a6b50
mov dword [ebx + 0xcc], eax
mov esi, dword [ebp - 0x244]
test esi, esi
je 0x4a6119
mov ecx, esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a60f0
sub ecx, edx
sar ecx, 1
je 0x4a6119
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6106
sub ecx, edx
sar ecx, 1
push ecx
push esi
jmp 0x4a6135
mov edx, dword [0x53a4d8]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6124
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x28]
call fcn.00407020
lea eax, [ebp - 0x244]
push eax
call fcn.004a1350
add esp, 4
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [ebx + 0xc8]
mov dword [ebx + 0xc8], ecx
test eax, eax
je 0x4a616f
push 4
push eax
call fcn.004c1d47
add esp, 8
lea ecx, [ebp - 0x244]
call fcn.004a1650
mov eax, dword [ebp + 0x1c]
push dword [ebp - 0x248]
mov dword [ebx + 0x8c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x90], eax
lea eax, [ebx + 0x20]
push eax
push 0x53a520
push 0x53a4e4
push 0x543e5c
call fcn.004a0d00
add esp, 0x14
movzx eax, ax
mov ecx, ebx
push 0
push eax
push 0
push 0
push 0x56000000
push 0
push 0
push 0xfffffffffffffffd
call fcn.004a19b0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c1fe9
mov esp, ebp
pop ebp
ret 0x1c
call fcn.004c7ca1
int3