Function at 0x437700
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc20
mov eax, dword [0x4b1120]
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 0x437749
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.00437970
add esp, 0x10
mov eax, dword [ebp - 4]
jmp 0x437953
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.0044b2ae
add esp, 8
test eax, eax
jne 0x437815
xor eax, eax
mov word [ebp - 0x810], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80e]
push ecx
call fcn.00447660
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0x400
lea eax, [ebp - 0x810]
push eax
call fcn.0044a00d
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x4377c7
push str.__regserver
push 0x400
lea ecx, [ebp - 0x810]
push ecx
call fcn.00447b21
add esp, 0xc
jmp 0x4377e0
push str.__unregserver
push 0x400
lea edx, [ebp - 0x810]
push edx
call fcn.00447b21
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.00436040
add esp, 0x24
mov dword [ebp - 4], eax
jmp 0x437950
push str..dll
mov eax, dword [ebp - 8]
push eax
call fcn.0044b2ae
add esp, 8
test eax, eax
jne 0x437937
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 0x43792f
mov byte [ebp - 0xc18], 0
push 0x3ff
push 0
lea edx, [ebp - 0xc17]
push edx
call fcn.00447660
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x437891
push str.DllRegisterServer
push 0x400
lea eax, [ebp - 0xc18]
push eax
call fcn.00449d9d
add esp, 0xc
jmp 0x4378aa
push str.DllUnregisterServer
push 0x400
lea ecx, [ebp - 0xc18]
push ecx
call fcn.00449d9d
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 0x437922
call dword [ebp - 0xc1c]
mov dword [ebp - 0xc20], eax
cmp dword [ebp - 0xc20], 0
jne 0x437903
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.00437970
add esp, 0xc
jmp 0x437922
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.00437970
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 0x437950
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.00437970
add esp, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret