Function at 0x4a5fb0
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 0x4a6013
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5ff0
sub ecx, esi
sar ecx, 1
je 0x4a6013
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6006
jmp 0x4a602b
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 0x4a6020
sub ecx, esi
lea esi, [ebx + 0x58]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00407020
test edi, edi
je 0x4a607e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6044
sub ecx, edx
sar ecx, 1
je 0x4a607e
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6060
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebx + 0x74]
call fcn.00407020
jmp 0x4a629e
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 0x4a60a6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x240]
call fcn.00407020
push 1
push 0x50f6b4
lea ecx, [ebp - 0x240]
call fcn.00405360
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4a60de
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x240]
push eax
call fcn.00405360
push 1
push 0x50f6b4
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 0x4a6110
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 0x4a6141
mov esi, dword [ebp - 0x240]
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004c4ac0
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 0x4a618b
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 0x4a61b1
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 0x4a621e
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 0x4a625e
mov edx, dword [ebp - 0x214]
cmp edx, 8
jb 0x4a625e
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a6254
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a63e1
push edx
push ecx
call fcn.004c1e27
add esp, 8
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x4a629e
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a6294
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a63e1
push edx
push ecx
call fcn.004c1e27
add esp, 8
mov esi, dword [ebp - 0x24c]
test esi, esi
je 0x4a62c9
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a62b0
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 0x4a62d5
mov eax, fcn.004a6d50
mov dword [ebx + 0xcc], eax
mov esi, dword [ebp - 0x244]
test esi, esi
je 0x4a6319
mov ecx, esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a62f0
sub ecx, edx
sar ecx, 1
je 0x4a6319
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6306
sub ecx, edx
sar ecx, 1
push ecx
push esi
jmp 0x4a6335
mov edx, dword [0x53a4d8]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6324
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.004a12f0
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 0x4a636f
push 4
push eax
call fcn.004c1e27
add esp, 8
lea ecx, [ebp - 0x244]
call fcn.004a15f0
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.004a0ca0
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.004a1950
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c20c9
mov esp, ebp
pop ebp
ret 0x1c
call fcn.004c7d81
int3