Function at 0x456960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc20
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4569a9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.RegisterFile__s___s___d___File_doesnt_exits_
call fcn.00457270
add esp, 0x10
mov eax, dword [ebp - 4]
jmp 0x456bb3
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 8], eax
push str..exe
mov edx, dword [ebp - 8]
push edx
call fcn.0046bc7e
add esp, 8
test eax, eax
jne 0x456a75
xor eax, eax
mov word [ebp - 0x810], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80e]
push ecx
call fcn.00468010
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x400
lea eax, [ebp - 0x810]
push eax
call fcn.0046a95d
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x456a27
push str.__regserver
push 0x400
lea ecx, [ebp - 0x810]
push ecx
call fcn.004684d1
add esp, 0xc
jmp 0x456a40
push str.__unregserver
push 0x400
lea edx, [ebp - 0x810]
push edx
call fcn.004684d1
add esp, 0xc
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 1
push str.open
push 0
lea ecx, [ebp - 0x810]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call fcn.004550d0
add esp, 0x24
mov dword [ebp - 4], eax
jmp 0x456bb0
push str..dll
mov eax, dword [ebp - 8]
push eax
call fcn.0046bc7e
add esp, 8
test eax, eax
jne 0x456b97
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
je 0x456b8f
mov byte [ebp - 0xc18], 0
push 0x3ff
push 0
lea edx, [ebp - 0xc17]
push edx
call fcn.00468010
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x456af1
push str.DllRegisterServer
push 0x400
lea eax, [ebp - 0xc18]
push eax
call fcn.0046a7ad
add esp, 0xc
jmp 0x456b0a
push str.DllUnregisterServer
push 0x400
lea ecx, [ebp - 0xc18]
push ecx
call fcn.0046a7ad
add esp, 0xc
lea edx, [ebp - 0xc18]
push edx
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc1c], eax
cmp dword [ebp - 0xc1c], 0
je 0x456b82
call dword [ebp - 0xc1c]
mov dword [ebp - 0xc20], eax
cmp dword [ebp - 0xc20], 0
jne 0x456b63
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xc18]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.RegisterFile_____s__s_successfully_
call fcn.00457270
add esp, 0xc
jmp 0x456b82
mov eax, dword [ebp - 0xc20]
push eax
lea ecx, [ebp - 0xc18]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.RegisterFile_____s__s_failed____x_
call fcn.00457270
add esp, 0x10
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x456bb0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.RegisterFile__s___s___d___File_not_supported_
call fcn.00457270
add esp, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00467fff
mov esp, ebp
pop ebp
ret