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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49a889
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba700]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
lea esi, [esp + 0x84]
mov dword [esp + 0x1c], ebx
call fcn.0040a4f0
push 0x4a3fbe
mov dword [esp + 0x16c], ebx
call fcn.0047d6d1
add esp, 4
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [esp + 0x28], eax
mov byte [esp + 0x168], 1
push str.._vncclient.cpp_:_starting_update_thread_n
lea ecx, [ebx + 9]
mov eax, 0x4bc990
mov dword [esp + 0x28], ebx
mov byte [esp + 0xac], 1
mov dword [0x4d9d50], ebx
call fcn.00401110
mov edi, dword [sym.imp.GDI32.dll_GetRgnBox]
add esp, 4
mov ecx, dword [ebp + 0x60]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call edx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x168], 2
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x28]
push 2
add eax, 0x154
mov eax, dword [eax]
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
cmp dword [0x4d9d50], 1
jae 0x4150c2
jmp 0x414f30
cmp dword [ebp + 0x6c], 0
je 0x41502c
cmp dword [ebp + 0x70], 0
je 0x415025
mov eax, dword [ebp + 0x60]
mov edx, dword [eax + 0x124]
lea ecx, [eax + 0x124]
add eax, 0x154
push eax
mov eax, dword [edx + 0x24]
call eax
push eax
lea esi, [esp + 0x7c]
call fcn.00409630
mov byte [esp + 0x168], 3
mov edx, dword [eax]
lea ecx, [esp + 0xdc]
push ecx
or ebx, 1
push edx
mov dword [esp + 0x24], ebx
call edi
cmp eax, 1
jne 0x41502c
mov eax, dword [ebp + 0x60]
lea ecx, [eax + 0x124]
add eax, 0x154
push eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
call edx
push eax
lea esi, [esp + 0x64]
call fcn.00409630
mov dword [esp + 0x168], 4
mov edx, dword [eax]
lea ecx, [esp + 0x14c]
push ecx
or ebx, 2
push edx
mov dword [esp + 0x24], ebx
call edi
cmp eax, 1
jne 0x41502c
mov eax, dword [ebp + 0x60]
lea ecx, [eax + 0x124]
add eax, 0x154
push eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
push eax
lea esi, [esp + 0x6c]
call fcn.00409630
mov edx, dword [eax]
lea ecx, [esp + 0xfc]
push ecx
or ebx, 4
push edx
mov dword [esp + 0x24], ebx
call edi
cmp eax, 1
jne 0x41502c
mov eax, dword [ebp + 0x60]
cmp dword [eax + 0x164], 0
jne 0x41502c
cmp dword [eax + 0x180], 0
jne 0x41502c
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov byte [esp + 0x1b], 1
jmp 0x415037
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov byte [esp + 0x1b], 0
test bl, 4
je 0x415057
mov eax, dword [esp + 0x64]
and ebx, 0xfffffffb
push eax
mov dword [esp + 0x20], ebx
call esi
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0047d643
add esp, 4
test bl, 2
je 0x415077
mov edx, dword [esp + 0x5c]
and ebx, 0xfffffffd
push edx
mov dword [esp + 0x20], ebx
call esi
mov eax, dword [esp + 0x60]
push eax
call fcn.0047d643
add esp, 4
mov dword [esp + 0x168], 2
test bl, 1
je 0x4150a2
mov ecx, dword [esp + 0x74]
and ebx, 0xfffffffe
push ecx
mov dword [esp + 0x20], ebx
call esi
mov edx, dword [esp + 0x78]
push edx
call fcn.0047d643
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x41527a
mov ecx, dword [ebp + 0x68]
call fcn.0047b9f0
mov ecx, dword [ebp + 0x64]
call fcn.0047c000
jmp 0x414f30
cmp dword [ebp + 0x6c], 0
je 0x4151e5
cmp dword [ebp + 0x70], 0
je 0x4151de
mov eax, dword [ebp + 0x60]
lea ecx, [eax + 0x124]
add eax, 0x154
push eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
call edx
push eax
lea esi, [esp + 0x74]
call fcn.00409630
mov byte [esp + 0x168], 5
mov edx, dword [eax]
lea ecx, [esp + 0x13c]
push ecx
or ebx, 8
push edx
mov dword [esp + 0x24], ebx
call edi
cmp eax, 1
jne 0x4151e5
mov eax, dword [ebp + 0x60]
lea ecx, [eax + 0x124]
add eax, 0x154
push eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
call edx
push eax
lea esi, [esp + 0x5c]
call fcn.00409630
mov dword [esp + 0x168], 6
mov edx, dword [eax]
lea ecx, [esp + 0x11c]
push ecx
or ebx, 0x10
push edx
mov dword [esp + 0x24], ebx
call edi
cmp eax, 1
jne 0x4151e5
mov eax, dword [ebp + 0x60]
lea ecx, [eax + 0x124]
add eax, 0x154
push eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
push eax
lea esi, [esp + 0x84]
call fcn.00409630
mov edx, dword [eax]
lea ecx, [esp + 0xec]
push ecx
or ebx, 0x20
push edx
mov dword [esp + 0x24], ebx
call edi
cmp eax, 1
jne 0x4151e5
mov eax, dword [ebp + 0x60]
cmp dword [eax + 0xa0], 0
jne 0x4151b4
cmp dword [eax + 0xa4], 0
je 0x4151c0
mov ecx, dword [eax + 0xc8]
cmp dword [ecx + 0x28], 0
jne 0x4151e5
cmp dword [eax + 0x164], 0
jne 0x4151e5
cmp dword [eax + 0x18], 0
jne 0x4151e5
cmp dword [eax + 0x180], 0
jne 0x4151e5
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov byte [esp + 0x1b], 1
jmp 0x4151f0
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov byte [esp + 0x1b], 0
test bl, 0x20
je 0x415213
mov edx, dword [esp + 0x7c]
and ebx, 0xffffffdf
push edx
mov dword [esp + 0x20], ebx
call esi
mov eax, dword [esp + 0x80]
push eax
call fcn.0047d643
add esp, 4
test bl, 0x10
je 0x415233
mov ecx, dword [esp + 0x54]
and ebx, 0xffffffef
push ecx
mov dword [esp + 0x20], ebx
call esi
mov edx, dword [esp + 0x58]
push edx
call fcn.0047d643
add esp, 4
mov dword [esp + 0x168], 2
test bl, 8
je 0x41525e
mov eax, dword [esp + 0x6c]
and ebx, 0xfffffff7
push eax
mov dword [esp + 0x20], ebx
call esi
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0047d643
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x41527a
mov ecx, dword [ebp + 0x68]
call fcn.0047b9f0
mov ecx, dword [ebp + 0x64]
call fcn.0047c000
jmp 0x4150c2
cmp dword [ebp + 0x6c], 0
je 0x41594e
mov eax, dword [ebp + 0x60]
cmp byte [eax + 0x490], 0
je 0x41548a
mov edi, dword [eax + 0xc8]
mov eax, dword [edi + 0x54]
lea esi, [esp + 0x10c]
call fcn.00425260
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov edi, dword [edi + 0x18]
mov dword [esp + 0xcc], edx
xor edx, edx
mov dword [esp + 0xd0], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
div edi
xor edx, edx
mov esi, eax
mov eax, ecx
div edi
mov edi, eax
mov eax, dword [ebp + 0x60]
cmp byte [eax + 0x491], 0
je 0x41539b
mov eax, dword [eax + 0xc8]
lea edx, [esp + 0xac]
push edx
push eax
call fcn.004119a0
mov eax, dword [esp + 0xb4]
mov edx, eax
sar edx, 8
and edx, 0xff
shl eax, 8
or edx, eax
mov eax, dword [esp + 0xb8]
mov word [esp + 0x42], dx
mov edx, eax
sar edx, 8
shl eax, 8
and edx, 0xff
or edx, eax
mov word [esp + 0x44], dx
mov eax, edi
sar eax, 8
mov edx, esi
and eax, 0xff
shl edi, 8
sar edx, 8
or eax, edi
and edx, 0xff
shl esi, 8
mov word [esp + 0x46], ax
mov eax, dword [ebp + 0x60]
or edx, esi
mov cl, 0xf
mov byte [esp + 0x40], cl
mov word [esp + 0x48], dx
mov edi, dword [eax + 0xec]
cmp byte [edi + 0x10], 0
je 0x415388
mov edx, dword [edi + 8]
cmp byte [edx + 0x21], 0
je 0x415388
mov byte [esp + 0x1b], cl
mov ecx, 1
lea eax, [esp + 0x1b]
call fcn.00453a00
mov ecx, 0xc
lea eax, [esp + 0x40]
call fcn.00453a00
jmp 0x41545e
mov ecx, edi
mov edx, esi
sar ecx, 8
sar edx, 8
shl edi, 8
and ecx, 0xff
and edx, 0xff
shl esi, 8
or ecx, edi
or edx, esi
mov byte [esp + 0x34], 4
mov word [esp + 0x36], cx
mov word [esp + 0x38], dx
mov edi, dword [eax + 0xec]
cmp byte [edi + 0x10], 0
je 0x4153f2
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], 0
je 0x4153f2
mov ecx, 1
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], 4
call fcn.00453a00
mov ecx, 6
lea eax, [esp + 0x34]
call fcn.00453a00
mov ecx, dword [ebp + 0x60]
mov edi, dword [ecx + 0xc8]
mov eax, dword [edi + 0x54]
lea esi, [esp + 0x12c]
call fcn.00425260
mov ecx, dword [eax + 8]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov edi, dword [edi + 0x18]
xor edx, edx
div edi
xor edx, edx
mov dword [esp + 0x30], eax
mov eax, ecx
div edi
mov ecx, dword [ebp + 0x60]
mov edx, dword [esp + 0x30]
add ecx, 0x47c
mov dword [ecx], esi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax + 0xc8]
mov ecx, dword [ecx + 0x18]
mov dword [eax + 0x48c], ecx
mov edx, dword [ebp + 0x60]
mov ebx, dword [edx + 0xc8]
call fcn.00413560
mov ecx, dword [ebp + 0x60]
mov ebx, dword [esp + 0x1c]
mov edi, dword [sym.imp.GDI32.dll_GetRgnBox]
xor al, al
mov byte [ecx + 0x490], al
mov edx, dword [ebp + 0x60]
mov byte [edx + 0x491], al
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax + 0x15c]
push 0
push 0
push 0
mov dword [eax + 0x15c], 0
mov edx, dword [esp + 0x34]
mov esi, dword [ebp + 0x60]
push 0
push edx
mov dword [esp + 0x44], ecx
add esi, 0x154
call dword [sym.imp.GDI32.dll_SetRectRgn]
mov esi, dword [esi]
mov eax, dword [esp + 0x28]
push 5
push esi
push esi
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov eax, dword [ebp + 0x60]
cmp dword [eax + 0x164], 0
je 0x4154f0
mov ecx, dword [eax + 0x164]
mov dword [esp + 0x24], ecx
mov dword [eax + 0x164], 0
jmp 0x415505
mov edx, dword [eax + 0x154]
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_SetRectRgn]
mov ecx, dword [ebp + 0x60]
mov eax, dword [ecx + 0x124]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x28]
add ecx, 0x124
push edx
lea edx, [esp + 0x88]
push edx
call eax
mov edx, dword [0x4d9d50]
cmp edx, 1
jbe 0x415550
mov eax, dword [ebp + 0x60]
add eax, 0x4c
mov eax, dword [eax + 0x7c]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x28], 0
mov eax, dword [ebp + 0x60]
mov dword [eax + 0x178], ecx
cmp edx, 1
jne 0x41555f
mov ecx, dword [ebp + 0x60]
mov dword [ecx + 0x178], 1
mov ecx, dword [ebp + 0x60]
cmp dword [ecx + 0x17c], 0
jne 0x415799
cmp dword [ecx + 0x178], 0
jne 0x415799
cmp dword [ecx + 0x118], 0
je 0x415799
mov eax, ecx
mov edx, dword [eax + 0x108]
mov esi, dword [eax + 0x47c]
cmp edx, esi
mov dword [esp + 0xbc], edx
jg 0x4155a9
mov dword [esp + 0xbc], esi
mov edx, dword [eax + 0x10c]
mov esi, dword [eax + 0x480]
cmp edx, esi
mov edi, edx
jg 0x4155bd
mov edi, esi
mov edx, dword [eax + 0x110]
mov esi, dword [eax + 0x484]
cmp edx, esi
jge 0x4155cf
mov esi, edx
mov edx, dword [eax + 0x114]
mov eax, dword [eax + 0x488]
cmp edx, eax
jge 0x4155e1
mov eax, edx
mov edx, dword [esp + 0xbc]
mov dword [ecx + 0x108], edx
mov dword [ecx + 0x10c], edi
mov dword [ecx + 0x110], esi
mov dword [ecx + 0x114], eax
mov esi, dword [ebp + 0x60]
mov eax, dword [esi + 0x108]
cmp eax, dword [esi + 0x110]
jge 0x415674
mov ecx, dword [esi + 0x10c]
cmp ecx, dword [esi + 0x114]
jge 0x415674
push 0x4a3fbe
call fcn.0047d6d1
mov edx, dword [esi + 0x114]
mov ecx, dword [esi + 0x10c]
add esp, 4
push edx
mov edx, dword [esi + 0x108]
mov edi, eax
mov eax, dword [esi + 0x110]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 2
mov esi, eax
mov eax, dword [esp + 0x8c]
push esi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call fcn.0047d643
add esp, 4
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax + 0xc8]
mov ecx, dword [ecx + 0x54]
mov edx, dword [ecx + 0xdbb0]
mov dword [eax + 0x108], edx
mov edx, dword [ecx + 0xdbb4]
mov dword [eax + 0x10c], edx
mov edx, dword [ecx + 0xdbb8]
mov dword [eax + 0x110], edx
mov ecx, dword [ecx + 0xdbbc]
mov dword [eax + 0x114], ecx
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax + 0x108]
mov edx, dword [eax + 0x47c]
cmp ecx, edx
mov edi, ecx
jg 0x4156c7
mov edi, edx
mov ecx, dword [eax + 0x10c]
mov esi, dword [eax + 0x480]
cmp ecx, esi
mov edx, ecx
jg 0x4156db
mov edx, esi
mov ecx, dword [eax + 0x110]
mov esi, dword [eax + 0x484]
cmp ecx, esi
jl 0x4156ed
mov ecx, esi
mov esi, dword [eax + 0x114]
mov eax, dword [eax + 0x488]
cmp esi, eax
jl 0x4156ff
mov esi, eax
mov eax, dword [ebp + 0x60]
add eax, 0x108
mov dword [eax], edi
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov esi, dword [ebp + 0x60]
mov edx, dword [esi + 0x108]
cmp edx, dword [esi + 0x110]
jge 0x415786
mov eax, dword [esi + 0x10c]
cmp eax, dword [esi + 0x114]
jge 0x415786
push 0x4a3fbe
call fcn.0047d6d1
mov ecx, dword [esi + 0x114]
mov edx, dword [esi + 0x110]
add esp, 4
push ecx
mov ecx, dword [esi + 0x108]
mov edi, eax
mov eax, dword [esi + 0x10c]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 2
mov esi, eax
mov eax, dword [esp + 0x8c]
push esi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call fcn.0047d643
add esp, 4
mov edx, dword [ebp + 0x60]
mov edi, dword [sym.imp.GDI32.dll_GetRgnBox]
mov dword [edx + 0x118], 0
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4158aa
mov eax, dword [ebp + 0x60]
cmp byte [eax + 0x312], 0
jne 0x4158aa
mov eax, ecx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4157c0
sub eax, edx
mov edx, dword [esp + 0x24]
mov ecx, edx
mov edi, eax
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4157d4
mov eax, edx
sub ecx, esi
lea esi, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x4157e2
sub eax, esi
mov esi, eax
mov eax, edx
lea edx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x4157f2
sub eax, edx
shl eax, 0x10
and ecx, 0xff0000
shr edi, 0x10
and esi, 0xff00
or eax, esi
or ecx, edi
shl eax, 8
shr ecx, 8
or eax, ecx
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x60]
mov cl, 3
mov byte [esp + 0x4c], cl
mov edi, dword [eax + 0xec]
cmp byte [edi + 0x10], bl
je 0x41584b
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], bl
je 0x41584b
mov byte [esp + 0x23], cl
mov ecx, 1
lea eax, [esp + 0x23]
call fcn.00453a00
mov ecx, 8
lea eax, [esp + 0x4c]
call fcn.00453a00
mov ebx, dword [esp + 0x24]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415862
sub eax, edx
mov edx, dword [ebp + 0x60]
mov edi, dword [edx + 0xec]
mov ecx, eax
mov eax, ebx
call fcn.00453a00
test eax, eax
jne 0x41588f
mov eax, dword [ebp + 0x60]
mov esi, dword [eax + 0xec]
call fcn.00453430
push ebx
call fcn.0047d643
mov ebx, dword [esp + 0x20]
mov edi, dword [sym.imp.GDI32.dll_GetRgnBox]
add esp, 4
mov dword [esp + 0x24], 0
cmp dword [esp + 0x30], 0
je 0x4158ba
mov ecx, dword [ebp + 0x60]
push ecx
call fcn.0041c460
mov eax, dword [ebp + 0x60]
mov edx, dword [eax + 0xc8]
mov ax, word [eax + 0xce]
cmp ax, word [edx + 0x2e]
jne 0x41591e
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax + 0xc8]
mov dx, word [eax + 0xcc]
cmp dx, word [ecx + 0x2c]
jne 0x41591e
mov ecx, dword [eax + 0xc8]
mov dl, byte [eax + 0xd0]
cmp dl, byte [ecx + 0x30]
jne 0x41591e
lea ecx, [esp + 0x84]
mov edx, eax
call fcn.0041b810
test eax, eax
je 0x415931
mov eax, dword [esp + 0x28]
inc dword [0x4d9d50]
push 0
push 0
push 0
push 0
push eax
jmp 0x41592b
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_SetRectRgn]
mov byte [esp + 0x168], 1
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0047bbd0
jmp 0x414ee2
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.._vncclient.cpp_:_stopping_update_thread_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
mov ecx, dword [0x4d9d50]
add esp, 4
push ecx
push str.client_sent__lu_updates_n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
mov edx, dword [esp + 0x30]
add esp, 8
push edx
call esi
mov eax, dword [esp + 0x2c]
push eax
call fcn.0047d643
mov ecx, dword [esp + 0x9c]
add esp, 4
push ecx
mov dword [esp + 0x88], vtable.rfb::SimpleUpdateTracker.0
call esi
mov edx, dword [esp + 0x9c]
push edx
call fcn.0047d643
mov eax, dword [esp + 0x94]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0047d643
mov edx, dword [esp + 0x8c]
add esp, 4
push edx
call esi
mov eax, dword [esp + 0x8c]
push eax
call fcn.0047d643
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4