Function at 0x495790
Capabilities:
Get common file path

Disassembly:
mov eax, 0x50d8
call fcn.004e6a80
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x50d4], eax
cmp byte [0x53d329], 0
push ebp
mov ebp, ecx
push edi
mov edi, dword [esp + 0x50e4]
mov dword [esp + 0xc], ebp
jne 0x4957f0
cmp word [edi], 0x2e
jne 0x4957f0
movzx eax, word [edi + 2]
push eax
call fcn.00452c50
test al, al
je 0x4957df
add edi, 4
cmp word [edi], 0x2e
je 0x4957c6
jmp 0x4957f0
cmp word [edi], 0x2e
jne 0x4957f0
cmp word [edi + 2], 0
je 0x495c8d
push 0x800
lea ecx, [esp + 0x3018]
push ecx
push edi
call fcn.00453e90
mov ecx, 0x502498
mov eax, edi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x495836
test dx, dx
je 0x495832
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x495836
add eax, 4
add ecx, 4
test dx, dx
jne 0x495810
xor eax, eax
jmp 0x49583b
sbb eax, eax
sbb eax, 0xffffffff
push ebx
test eax, eax
push esi
sete bl
push edi
mov byte [esp + 0x17], bl
call fcn.00452bf0
mov esi, eax
movzx edx, word [esi]
push edx
call fcn.00452c50
test al, al
je 0x49589c
test bl, bl
jne 0x49589c
lea ecx, [esp + 0x301c]
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49588e
test dx, dx
je 0x49588a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49588e
add eax, 4
add ecx, 4
test dx, dx
jne 0x495868
xor eax, eax
jmp 0x495893
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x49589c
xor eax, eax
mov word [esi], ax
xor ebx, ebx
mov esi, edi
cmp word [edi], bx
je 0x4958de
cmp word [esi], 0x2e
jne 0x4958de
cmp word [esi + 2], 0x2e
jne 0x4958de
movzx ecx, word [esi + 4]
push ecx
call fcn.00452c50
test al, al
jne 0x4958c7
cmp word [esi + 4], 0
jne 0x4958de
xor edx, edx
cmp word [esi + 4], dx
setne dl
inc ebx
add edx, 2
cmp word [esi + edx*2], 0
lea esi, [esi + edx*2]
jne 0x4958a5
cmp byte [0x53d329], 0
je 0x495902
cmp byte [esp + 0x50f0], 0
je 0x495902
push edi
call fcn.00453130
test al, al
je 0x495902
mov ecx, ebp
call fcn.004927d0
cmp byte [ebp + 0x1042], 0
je 0x495939
mov ecx, dword [ebp + 0x2144]
cmp ebx, ecx
mov eax, ebx
jl 0x495919
mov eax, ecx
cmp byte [esp + 0x13], 0
je 0x495922
mov eax, ecx
test eax, eax
je 0x495939
push 0
mov esi, ebp
push eax
mov ecx, esi
call fcn.00490dc0
push 0
jmp 0x495c84
mov byte [ebp + 0x1042], 0
cmp byte [0x53d329], 0
je 0x495a35
push 0
push str.FlatView
push str.FileList
call fcn.0049c510
test eax, eax
je 0x49596a
test ebx, ebx
je 0x495c8b
push 0x800
lea eax, [esp + 0x1020]
push eax
mov ecx, 0x54be10
call fcn.0047b040
mov ecx, 0x502498
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4959ae
test dx, dx
je 0x4959aa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4959ae
add eax, 4
add ecx, 4
test dx, dx
jne 0x495988
xor eax, eax
jmp 0x4959b3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4959e4
push edi
mov ecx, 0x54be10
call fcn.0047af20
test al, al
je 0x4959e4
xor ecx, ecx
test ebx, ebx
setle cl
lea edx, [esp + 0x101c]
dec ecx
and ecx, edx
push ecx
mov ecx, ebp
call fcn.00493f90
jmp 0x495c8b
push 0x800
lea eax, [esp + 0x20]
push eax
mov ecx, 0x54be10
call fcn.0047b060
push 0x800
lea ecx, [esp + 0x20]
push ecx
lea esi, [ebp + 0x1044]
push esi
call fcn.004694f0
push esi
call fcn.00453800
mov ecx, ebp
call fcn.004927d0
test al, al
je 0x495c8b
lea edx, [esp + 0x1c]
push edx
call fcn.00453550
push eax
mov ecx, ebp
jmp 0x495c86
push 0x800
add ebp, 0x1044
push ebp
lea eax, [esp + 0x1024]
push eax
call fcn.004694f0
xor ecx, ecx
mov word [esp + 0x1c], cx
test ebx, ebx
jle 0x495b33
mov esi, dword [0x501444]
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x1042], 0
jne 0x495b33
push ebp
call fcn.00452c80
test al, al
je 0x495aef
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0x1048]
push ecx
call fcn.00452c50
test al, al
je 0x495aef
mov eax, dword [esp + 0x14]
cmp word [eax + 0x104a], 0
jne 0x495aef
cmp dword [eax + 0x2144], 0
jle 0x495ab3
mov byte [eax + 0x1042], 1
jmp 0x495b0b
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0x11
push eax
mov dword [esp + 0x2c], 0
call esi
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, 0x549cc0
call fcn.00491a90
mov eax, dword [0x572b44]
mov ecx, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
jmp 0x495b0b
push 0x800
push ebp
call fcn.00453550
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004694f0
push ebp
call fcn.00453800
dec ebx
cmp word [edi], 0x2e
jne 0x495b1b
add edi, 2
cmp word [edi], 0x2e
je 0x495b12
movzx ecx, word [edi]
push ecx
call fcn.00452c50
test al, al
je 0x495b2b
add edi, 2
test ebx, ebx
jg 0x495a63
cmp byte [esp + 0x13], 0
je 0x495b62
push 0x800
lea edx, [esp + 0x2020]
push edx
push ebp
call fcn.00453e90
push 0x800
lea eax, [esp + 0x2020]
push eax
push ebp
call fcn.004694f0
jmp 0x495b97
push edi
call fcn.00453130
test al, al
je 0x495b7a
push 0x800
push edi
push ebp
call fcn.004694f0
jmp 0x495b97
cmp word [edi], 0
je 0x495b97
push 0x800
push ebp
call fcn.00452cf0
push 0x800
push edi
push ebp
call fcn.00469570
push ebp
call fcn.00452cb0
mov esi, eax
cmp esi, 0xffffffff
je 0x495bce
call fcn.004b3bd0
mov edx, 1
mov ecx, esi
shl edx, cl
test edx, eax
jne 0x495bce
push 0x800
lea eax, [esp + 0x1020]
push eax
push ebp
call fcn.004694f0
jmp 0x495c8b
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x1042], 0
jne 0x495c74
push ebp
call fcn.00445500
test al, al
jne 0x495c74
push 0x800
lea ecx, [esp + 0x2020]
push ecx
push edi
call dword [0x501324]
test eax, eax
je 0x495c25
lea edx, [esp + 0x201c]
push edx
call fcn.00445500
test al, al
je 0x495c25
push 0x800
lea eax, [esp + 0x2020]
push eax
jmp 0x495c6e
push ebp
push 0x6c
call fcn.00463430
push eax
lea ecx, [esp + 0x4024]
push ecx
mov edx, 0x864
call fcn.00497580
add esp, 0xc
push 0x10
push 0x66
call fcn.00463430
push eax
mov eax, dword [0x53f484]
lea edx, [esp + 0x4024]
push edx
push eax
call dword [0x5015fc]
push 0x800
lea ecx, [esp + 0x1020]
push ecx
push ebp
call fcn.004694f0
movzx edx, word [esp + 0x1c]
neg edx
sbb edx, edx
lea eax, [esp + 0x1c]
and edx, eax
push edx
mov ecx, esi
call fcn.00494b40
pop esi
pop ebx
mov ecx, dword [esp + 0x50dc]
pop edi
pop ebp
xor ecx, esp
call fcn.004e6a64
add esp, 0x50d8
ret 8