Function at 0x44c1e0
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3b4
mov eax, dword [0x55800c]
xor eax, esp
mov dword [esp + 0x3b0], eax
push ebx
push esi
push edi
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_InitWindow_called_n
push 0
push 0x558c50
mov esi, ecx
call fcn.0041c840
add esp, 0xc
push 0x400001cf
push 0
push 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov ebx, eax
mov ecx, str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_InitWindow:OpenInputdesktop_Error__n
mov eax, str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_InitWindow:OpenInputdesktop_OK_n
mov dword [esp + 0x44], ebx
test ebx, ebx
cmovne ecx, eax
push ecx
push 0
push 0x558c50
call fcn.0041c840
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov edi, eax
lea eax, [esp + 0x78]
push eax
push 0x100
lea eax, [esp + 0x2c0]
mov dword [esp + 0x44], edi
push eax
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
jne 0x44c28c
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_InitWindow:_GetUserObjectInformation__n
push eax
push 0x558c50
call fcn.0041c840
add esp, 0xc
push edi
push ebx
lea eax, [esp + 0x2c0]
push eax
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_InitWindow:SelectHDESK_to__s___x__from__x_n
push 0
push 0x558c50
call fcn.0041c840
mov eax, dword [sym.imp.USER32.dll_SetThreadDesktop]
add esp, 0x18
mov dword [esp + 0x40], eax
push ebx
call eax
test eax, eax
jne 0x44c2cd
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_InitWindow:SelectHDESK:_SetThreadDesktop__n
push eax
push 0x558c50
call fcn.0041c840
add esp, 0xc
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ChangeWindowMessageFilter
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x44c319
push 1
push dword [0x569bb4]
call ebx
push 1
push dword [0x569bac]
call ebx
push 1
push dword [0x569bb0]
call ebx
push 1
push 0x12
call ebx
push 1
push 0x8008
call ebx
cmp word [0x55b150], 0
jne 0x44c3d9
mov eax, dword [0x568a68]
push 0
mov dword [esp + 0x4c], 0x30
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x44b4b0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0x518d34
mov dword [esp + 0x78], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov word [0x55b150], ax
test ax, ax
jne 0x44c3d9
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_failed_to_register_window_class_n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0xc
push dword [esi + 0xdbbc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b0]
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
push 0
push dword [0x568a68]
push 0
push 0
push 0xc8
push 0x190
push bind
push bind
push 0xcf0000
push 0x542d04
push 0x518d34
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 0xdc10], eax
test eax, eax
jne 0x44c421
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_failed_to_create_hook_window_n
jmp 0x44c3a7
push 0
push 0x3e8
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push esi
push 0xffffffffffffffeb
push dword [esi + 0xdc10]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push dword [esi + 0xdc10]
mov byte [esi + 0xdc18], 1
call dword [sym.imp.USER32.dll_SetClipboardViewer]
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_OOOOOOOOOOOO_load_hookdlls_n
push 0
push 0x558c50
mov dword [esi + 0xdc14], eax
mov byte [esi + 0xdc18], 0
call fcn.0041c840
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0xb4]
add esp, 0xc
mov dword [esi + 0xe124], 0
push 0x104
push eax
push 0
call ebx
test eax, eax
je 0x44c4ec
lea eax, [esp + 0xa8]
push 0x5c
push eax
call fcn.004cd350
add esp, 8
test eax, eax
je 0x44c3c2
lea ecx, [esp + 0xa8]
mov byte [eax], 0
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x44c4c1
mov eax, dword [str._vnchooks.dll]
mov dword [ecx], eax
mov eax, dword [0x546600]
mov dword [ecx + 4], eax
mov eax, dword [0x546604]
mov dword [ecx + 8], eax
mov ax, word [0x546608]
mov word [ecx + 0xc], ax
push 0x104
lea eax, [esp + 0x1b4]
mov dword [esi + 0xe128], 0
push eax
push 0
call ebx
test eax, eax
je 0x44c551
lea eax, [esp + 0x1b0]
push 0x5c
push eax
call fcn.004cd350
add esp, 8
test eax, eax
je 0x44c3c2
lea ecx, [esp + 0x1b0]
mov byte [eax], 0
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x44c530
mov eax, dword [str._schook.dll]
mov dword [ecx], eax
mov eax, dword [0x546610]
mov dword [ecx + 4], eax
mov eax, dword [0x546614]
mov dword [ecx + 8], eax
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0xa8]
push eax
mov dword [esi + 0xe130], 0
mov dword [esi + 0xe140], 0
mov dword [esi + 0xe13c], 0
mov dword [esi + 0xe148], 0
mov dword [esi + 0xe144], 0
mov dword [esi + 0xe12c], 0
mov dword [esi + 0xe138], 0
mov dword [esi + 0xe134], 0
call ebx
mov dword [esi + 0xe124], eax
lea eax, [esp + 0x1b0]
push eax
call ebx
mov dword [esi + 0xe128], eax
mov eax, dword [esi + 0xe124]
test eax, eax
je 0x44c618
push str.UnSetHooks
push eax
call edi
push str.SetMouseFilterHook
push dword [esi + 0xe124]
mov dword [esi + 0xe130], eax
call edi
push str.SetKeyboardFilterHook
push dword [esi + 0xe124]
mov dword [esi + 0xe140], eax
call edi
push str.SetHooks
push dword [esi + 0xe124]
mov dword [esi + 0xe13c], eax
call edi
mov dword [esi + 0xe12c], eax
mov eax, dword [esi + 0xe128]
test eax, eax
je 0x44c669
push str.UnSetHook
push eax
call edi
push str.SetHook
push dword [esi + 0xe128]
mov dword [esi + 0xe138], eax
call edi
push str.SetMouseFilterHook
push dword [esi + 0xe128]
mov dword [esi + 0xe134], eax
call edi
push str.SetKeyboardFilterHook
push dword [esi + 0xe128]
mov dword [esi + 0xe148], eax
call edi
mov dword [esi + 0xe144], eax
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_OOOOOOOOOOOO_start_dispatch_n
push 0
push 0x558c50
call fcn.0041c840
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
add esp, 0xc
mov dword [esp + 0x10], ebx
push dword [esi + 0xdbbc]
call ebx
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_WaitMessage]
mov dword [esp + 0x20], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
mov dword [esp + 0x34], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageA]
mov dword [esp + 0x38], eax
mov eax, dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [esp + 0x28], eax
mov eax, dword [sym.imp.GDI32.dll_CombineRgn]
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], eax
jmp 0x44c6df
mov edi, dword [esp + 0x14]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x8c]
push eax
call edx
test eax, eax
je 0x44c913
mov eax, dword [esp + 0x80]
cmp eax, 0x12
je 0x44c940
cmp byte [0x563186], 0
jne 0x44c940
cmp eax, 0x8008
je 0x44c91e
cmp eax, dword [0x569bb4]
jne 0x44c87a
push str.vnchook
push 0x10
push 0x55b154
call fcn.004d0170
mov edx, dword [esp + 0x18]
add esp, 0xc
cmp byte [esi + 0xe15c], 0
je 0x44c6df
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_RFB_SCREEN_UPDATE___n
push 0
push 0x558c50
call fcn.0041c840
mov eax, dword [esp + 0x90]
add esp, 0xc
movsx edi, ax
shr eax, 0x10
movsx ebx, ax
mov eax, dword [esp + 0x88]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov eax, dword [esi + 0x80]
sub ecx, eax
sub edi, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x84]
sub edx, eax
push edx
sub ebx, eax
mov dword [esp + 0x20], edx
push ebx
push ecx
push edi
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_REct3__i__i__i__i___n
push 0
push 0x558c50
call fcn.0041c840
mov edx, dword [esi + 0xbc]
add esp, 0x1c
mov ecx, dword [esi + 0xc8]
cmp edi, edx
cmovge edx, edi
mov edi, dword [esi + 0xc0]
cmp ebx, edi
mov dword [esp + 0x24], edx
cmovge edi, ebx
mov ebx, dword [esi + 0xc4]
cmp ebx, dword [esp + 0x18]
cmovge ebx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
cmovge ecx, dword [esp + 0x1c]
cmp edx, ebx
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
jge 0x44c6db
cmp edi, ecx
jge 0x44c6db
cmp byte [esi + 0xdbcc], 0
je 0x44c826
push 5
call dword [esp + 0x24]
cmp byte [esi + 0xdbcc], 0
jne 0x44c817
push 0x518188
call fcn.004dad37
add esp, 4
mov ebx, eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
push dword [esp + 0x30]
call dword [esp + 0x38]
mov ecx, dword [esi + 0xdbc4]
mov edi, eax
push 2
push edi
push ecx
push ecx
call dword [esp + 0x3c]
push edi
call dword [esp + 0x34]
push ebx
call fcn.004dab64
mov ebx, dword [esp + 0x14]
add esp, 4
push dword [esi + 0xdb98]
call ebx
mov edx, dword [esp + 0xc]
jmp 0x44c6db
cmp eax, dword [0x569bb0]
jne 0x44c8dd
cmp byte [esi + 0xe15c], 0
mov edx, dword [esp + 0xc]
je 0x44c6df
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_RFB_MOUSE_UPDATE___n
push 0
push 0x558c50
call fcn.0041c840
mov ecx, dword [esp + 0x90]
add esp, 0xc
test ecx, ecx
jne 0x44c8ba
mov ecx, dword [esi + 0xe0b4]
jmp 0x44c8c6
mov eax, dword [esi + 0xe0ac]
mov dword [esi + 0xe0b0], eax
mov dword [esi + 0xe0ac], ecx
push dword [esi + 0xdb9c]
call ebx
mov edx, dword [esp + 0xc]
jmp 0x44c6df
cmp eax, 0x403
jne 0x44c8f8
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_OOOOOOOOOOOO_called_wm_user3_n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0xc
lea eax, [esp + 0x7c]
push eax
call dword [esp + 0x38]
lea eax, [esp + 0x7c]
push eax
call dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
jmp 0x44c6df
call edi
mov edx, dword [esp + 0xc]
jmp 0x44c6df
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_OOOOOOOOOOOO_called_wm_user4_n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0xc
push dword [esi + 0xdc10]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x44c968
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_OOOOOOOOOOOO_called_wm_quit_n
push 0
push 0x558c50
call fcn.0041c840
add esp, 0xc
push dword [esi + 0xdc10]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [esi + 0xdba8]
call ebx
cmp dword [0x55ad2c], 0
je 0x44c982
mov ebx, dword [esp + 0x20]
push 0x64
call ebx
cmp dword [0x55ad2c], 0
jne 0x44c975
push 0x3e9
push dword [esi + 0xdc10]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0xe124]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x44c9a6
push eax
call edi
mov eax, dword [esi + 0xe128]
test eax, eax
je 0x44c9b3
push eax
call edi
push dword [esp + 0x3c]
call dword [esp + 0x44]
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_CloseDesktop]
push str.d:_saasultravncwinvncwinvnc_vncdesktopsink.cpp_:_OOOOOOOOOOOO_end_dispatch_n
push 0
push 0x558c50
call fcn.0041c840
mov ecx, dword [esp + 0x3c8]
add esp, 0xc
mov dword [esi + 0xdc10], 0
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret