Function at 0x4566b0
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 0x4566f9
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.00456fc0
add esp, 0x10
mov eax, dword [ebp - 4]
jmp 0x456903
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.0046b9ce
add esp, 8
test eax, eax
jne 0x4567c5
xor eax, eax
mov word [ebp - 0x810], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80e]
push ecx
call fcn.00467d60
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x400
lea eax, [ebp - 0x810]
push eax
call fcn.0046a6ad
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x456777
push str.__regserver
push 0x400
lea ecx, [ebp - 0x810]
push ecx
call fcn.00468221
add esp, 0xc
jmp 0x456790
push str.__unregserver
push 0x400
lea edx, [ebp - 0x810]
push edx
call fcn.00468221
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.00454e40
add esp, 0x24
mov dword [ebp - 4], eax
jmp 0x456900
push str..dll
mov eax, dword [ebp - 8]
push eax
call fcn.0046b9ce
add esp, 8
test eax, eax
jne 0x4568e7
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 0x4568df
mov byte [ebp - 0xc18], 0
push 0x3ff
push 0
lea edx, [ebp - 0xc17]
push edx
call fcn.00467d60
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x456841
push str.DllRegisterServer
push 0x400
lea eax, [ebp - 0xc18]
push eax
call fcn.0046a4fd
add esp, 0xc
jmp 0x45685a
push str.DllUnregisterServer
push 0x400
lea ecx, [ebp - 0xc18]
push ecx
call fcn.0046a4fd
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 0x4568d2
call dword [ebp - 0xc1c]
mov dword [ebp - 0xc20], eax
cmp dword [ebp - 0xc20], 0
jne 0x4568b3
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.00456fc0
add esp, 0xc
jmp 0x4568d2
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.00456fc0
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 0x456900
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.00456fc0
add esp, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret