Function at 0x417a50
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cbbb
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x463444]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x340], ecx
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x120], 0
call fcn.0040b7b0
test eax, eax
je 0x417b0e
push 1
mov eax, dword [0x4556d8]
push eax
push 0x468ce0
mov ecx, dword [ebp - 0x340]
add ecx, 0x224
call fcn.004032a0
test eax, eax
je 0x417af6
push 0
mov ecx, dword [0x4556d4]
push ecx
push 0x4684a8
mov ecx, dword [ebp - 0x340]
add ecx, 0x224
call fcn.004032a0
test eax, eax
je 0x417af6
mov dword [ebp - 0x344], 1
jmp 0x417b00
mov dword [ebp - 0x344], 0
mov edx, dword [ebp - 0x344]
mov dword [ebp - 0x124], edx
jmp 0x417b32
push 0
mov eax, dword [0x4556d4]
push eax
push 0x4684a8
mov ecx, dword [ebp - 0x340]
add ecx, 0x224
call fcn.004032a0
mov dword [ebp - 0x124], eax
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call fcn.0040b7b0
test eax, eax
je 0x417c99
push 1
lea ecx, [ebp - 0x234]
call fcn.0040b800
mov dword [ebp - 4], 0
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.BQDeditBQDeditX64.dll
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x417ba3
mov dword [ebp - 0x10], 2
push 0x104
lea eax, [ebp - 0x33c]
push eax
call fcn.0040b700
add esp, 8
test eax, eax
je 0x417c7b
lea ecx, [ebp - 0x33c]
push ecx
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4545f8
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x417bfd
mov dword [ebp - 0x10], 2
lea edx, [ebp - 0x33c]
push edx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x454610
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x417c3b
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x454628
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x417c79
mov dword [ebp - 0x10], 2
jmp 0x417c82
mov dword [ebp - 0x10], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.0040b870
jmp 0x417d53
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.BQDeditBQDedit.dll
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x417cd7
mov dword [ebp - 0x10], 2
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.BQDedit_npBQDedit.dll
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x417d15
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.BQDedit_npSignMessenger.dll
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x417d53
mov dword [ebp - 0x10], 2
push 0
mov ecx, dword [0x4556ec]
push ecx
push 0x46ace8
mov ecx, dword [ebp - 0x340]
add ecx, 0x224
call fcn.004032a0
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x124], 1
jne 0x417da2
cmp dword [ebp - 0x10], 0
jne 0x417da2
cmp dword [ebp - 0x120], 0
jne 0x417da2
mov edx, dword [ebp - 0x340]
mov dword [edx + 0xac], 1
jmp 0x417dda
mov eax, dword [ebp - 0x340]
mov dword [eax + 0xac], 1
cmp dword [ebp - 0x10], 0
je 0x417dc1
mov eax, 2
jmp 0x417ddc
cmp dword [ebp - 0x120], 1
jne 0x417dd3
mov eax, 3
jmp 0x417ddc
mov eax, 1
jmp 0x417ddc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004381fb
mov esp, ebp
pop ebp
ret