Function at 0x45a930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x5d60c4]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
cmp dword [ebx + 0x78], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
jne 0x45a96b
cmp dword [ebx + 0x7c], 0
je 0x45af04
mov eax, dword [eax + 0xe88c]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x45a992
push str.vncEncoder::SendCursorShape_:_cursor_handle_is_NULL._n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
jmp 0x45af04
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
jne 0x45a9bb
push str.vncEncoder::SendCursorShape_:_GetIconInfo___failed._n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
jmp 0x45af04
mov eax, dword [esp + 0x48]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x10], 0
test eax, eax
je 0x45a9dc
push eax
mov dword [esp + 0x14], 1
call esi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x45a9fd
push str.vncEncoder::SendCursorShape_:_cursor_bitmap_handle_is_NULL._n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
jmp 0x45af04
lea ecx, [esp + 0x4c]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x45aa19
push str.vncEncoder::SendCursorShape_:_GetObject___for_bitmap_failed._n
jmp 0x45aeef
cmp word [esp + 0x5c], 1
jne 0x45aeea
cmp word [esp + 0x5e], 1
jne 0x45aeea
mov eax, dword [esp + 0x54]
imul eax, dword [esp + 0x58]
push eax
call fcn.0052b7da
mov ecx, dword [esp + 0x58]
add esp, 4
imul ecx, dword [esp + 0x58]
mov edi, eax
mov dword [esp + 0x74], edi
push edi
push ecx
push dword [esp + 0x4c]
call dword [sym.imp.GDI32.dll_GetBitmapBits]
push dword [esp + 0x44]
mov esi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
jne 0x45aa90
push str.vncEncoder::SendCursorShape_:_GetBitmapBits___failed._n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
push edi
call fcn.0052b797
add esp, 4
jmp 0x45af04
cmp dword [esp + 0x10], 0
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x18], ecx
je 0x45ab35
mov esi, dword [esp + 0x54]
mov dword [esp + 0x30], esi
cmp dword [ebx + 0x7c], 0
je 0x45aec9
mov eax, ecx
imul eax, esi
mov dword [esp + 0x64], eax
shl eax, 2
push eax
call fcn.0052b7da
mov dword [esp + 0x20], eax
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xe424
mov dword [esp + 0x10], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x14]
push esi
push dword [esp + 0x1c]
push dword [eax + 0xe41c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x45ab26
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0xe418]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x45ac60
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45ad40
mov eax, dword [esp + 0x54]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp dword [ebx + 0x78], 0
mov dword [esp + 0x30], esi
je 0x45aaab
push dword [esp + 0x58]
push dword [esp + 0x58]
push ecx
push 0
push edi
mov ecx, ebx
call fcn.0045af20
mov ecx, dword [esp + 0x3c]
mov eax, ecx
sar eax, 8
mov edx, dword [esp + 0x18]
movzx eax, al
shl ecx, 8
or eax, ecx
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
mov word [esp + 0x68], ax
mov eax, ecx
sar eax, 8
movzx eax, al
shl ecx, 8
or eax, ecx
mov dword [esp + 0x70], 0x10ffffff
mov word [esp + 0x6a], ax
mov eax, edx
sar eax, 8
movzx ecx, al
mov eax, edx
shl eax, 8
or ecx, eax
mov dword [esp + 0x74], 0xff000000
mov word [esp + 0x6c], cx
mov eax, esi
sar eax, 8
movzx ecx, al
mov eax, esi
shl eax, 8
or ecx, eax
mov word [esp + 0x78], 0xffff
lea eax, [edx + 7]
mov word [esp + 0x6e], cx
cdq
mov ecx, ebx
and edx, 7
add eax, edx
sar eax, 3
imul eax, esi
push 0xc
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x6c]
push eax
call fcn.00487b20
test eax, eax
je 0x45aec9
push 6
lea eax, [esp + 0x78]
mov ecx, ebx
push eax
call fcn.00487b20
test eax, eax
je 0x45aec9
mov esi, dword [esp + 0x28]
mov ecx, ebx
push esi
lea eax, [esi + edi]
push eax
call fcn.00487b20
test eax, eax
je 0x45aec9
push esi
push edi
mov ecx, ebx
call fcn.00487b20
test eax, eax
je 0x45aec9
push edi
mov esi, 1
call fcn.0052b797
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x14]
push 2
push 0
push 0
push 0
push 0
push dword [esp + 0x38]
push 0
push 0
push dword [eax + 0xe418]
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [esp + 0x14]
push dword [esp + 0x20]
push dword [eax + 0xe418]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x42c
push 1
call fcn.005407ff
mov edx, eax
mov dword [esp + 0x2c], 0
add esp, 8
mov dword [esp + 0x20], edx
test edx, edx
je 0x45ad25
mov esi, dword [esp + 0x14]
mov edi, edx
mov eax, dword [esp + 0x18]
add esi, 0xe450
mov ecx, 0x10b
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x1c]
mov dword [edx + 4], eax
mov eax, esi
neg eax
mov dword [edx + 8], eax
mov eax, dword [esp + 0x64]
shl eax, 2
push eax
push 0
push edi
call fcn.0052d9b0
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push dword [esp + 0x24]
push edi
push esi
push 0
push dword [esp + 0x40]
push dword [eax + 0xe418]
call dword [sym.imp.GDI32.dll_GetDIBits]
push dword [esp + 0x20]
mov dword [esp + 0x28], eax
call fcn.0052fd09
mov edi, dword [esp + 0x78]
add esp, 4
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x24], 0
jne 0x45ad6e
push str.vncEncoder::SendCursorShape_:_vncDesktop::GetRichCursorData___failed._n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
push edi
call fcn.0052b797
add esp, 4
push dword [esp + 0x1c]
call fcn.0052b797
add esp, 4
jmp 0x45af04
push dword [esp + 0x58]
mov ecx, ebx
push esi
push dword [esp + 0x20]
push dword [esp + 0x28]
push edi
call fcn.0045af20
mov ecx, dword [esp + 0x3c]
mov eax, ecx
mov edx, dword [esp + 0x18]
sar eax, 8
movzx eax, al
movzx ebx, byte [ebx + 0x10]
shl ecx, 8
or eax, ecx
shr ebx, 3
mov ecx, dword [esp + 0x40]
mov word [esp + 0x68], ax
mov eax, ecx
sar eax, 8
movzx eax, al
shl ecx, 8
or eax, ecx
imul ebx, edx
mov word [esp + 0x6a], ax
mov eax, edx
sar eax, 8
movzx ecx, al
mov eax, edx
shl eax, 8
or ecx, eax
mov dword [esp + 0x70], 0x11ffffff
mov eax, esi
mov word [esp + 0x6c], cx
sar eax, 8
movzx ecx, al
mov eax, esi
shl eax, 8
or ecx, eax
mov word [esp + 0x6e], cx
test bl, 3
je 0x45adf8
inc ebx
test bl, 3
jne 0x45adf2
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + 0x20]
shr eax, 3
imul eax, esi
imul eax, edx
push eax
mov dword [esp + 0x78], eax
call fcn.0052b7da
add esp, 4
mov dword [esp + 0x10], eax
push esi
push dword [esp + 0x1c]
push ebx
push eax
mov eax, dword [esp + 0x38]
push dword [esp + 0x2c]
lea ecx, [eax + 0x30]
push ecx
lea ecx, [eax + 0x10]
push ecx
push dword [eax + 8]
mov eax, dword [eax + 4]
call eax
mov ebx, dword [esp + 0x54]
lea eax, [esp + 0x88]
add esp, 0x20
mov ecx, ebx
push 0xc
push eax
call fcn.00487b20
test eax, eax
je 0x45ae8f
push dword [esp + 0x74]
mov ecx, ebx
push dword [esp + 0x14]
call fcn.00487b20
test eax, eax
je 0x45ae8f
mov eax, dword [esp + 0x18]
mov ecx, ebx
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, esi
push eax
push edi
call fcn.00487b20
test eax, eax
je 0x45ae8f
mov esi, 1
jmp 0x45ae91
xor esi, esi
mov eax, dword [esp + 0x10]
push eax
call fcn.0052b797
add esp, 4
push dword [esp + 0x1c]
call fcn.0052b797
add esp, 4
push edi
call fcn.0052b797
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret 8
push edi
xor esi, esi
call fcn.0052b797
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret 8
push str.vncEncoder::SendCursorShape_:_incorrect_data_in_cursor_bitmap._n
push 9
push 0x5d6df8
call fcn.0041d510
add esp, 0xc
push dword [esp + 0x44]
call esi
mov ecx, dword [esp + 0x7c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052b789
mov esp, ebp
pop ebp
ret 8