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

Disassembly:
push 0xffffffffffffffff
push 0x49a4cb
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba700]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x9c]
mov eax, dword [ebx + 0xdbf4]
mov ecx, dword [eax + 4]
lea ebp, [ebx + 0xdbdc]
push ecx
mov ecx, ebp
mov byte [esp + 0x1b], 0
mov byte [esp + 0x1a], 0
call fcn.00423020
mov eax, dword [ebp + 0x18]
mov dword [eax + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x1c], 0
mov dword [eax], eax
mov eax, dword [ebp + 0x18]
lea edi, [ebx + 0xdbc4]
mov dword [eax + 8], eax
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
test edx, 0xfffffffc
jne 0x41f1b5
mov dword [esp + 0x20], 0
lea ebx, [ebx]
push 0x18
call fcn.0047c463
add esp, 4
mov dword [esp + 0x38], eax
xor ecx, ecx
mov dword [esp + 0x94], ecx
cmp eax, ecx
je 0x41f0e9
push eax
call fcn.00422bc0
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x41f0ef
mov dword [esp + 0x18], ecx
mov esi, ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x94], 0xffffffff
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 4]
mov dword [esp + 0x2c], esi
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
mov ecx, dword [esp + 0x30]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
imul ecx, eax
push ecx
call fcn.00422e40
cmp dword [esp + 0x18], 0
je 0x41f1a3
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x41f145
xor eax, eax
jmp 0x41f14d
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x41f169
mov eax, dword [esp + 0x18]
mov dword [esi], eax
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x41f187
cmp ecx, esi
jbe 0x41f172
call fcn.0047d091
mov eax, dword [edi]
push esi
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x50]
push edx
mov eax, edi
call fcn.004232e0
mov eax, dword [esp + 0x20]
push eax
push str.._vncdesktop.cpp_:__PixelsGrid__d_created___n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 8
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 0x28
mov dword [esp + 0x20], eax
jl 0x41f0c0
cmp dword [ebx + 0xdc08], 0
je 0x41f1cc
cmp byte [ebx + 0xe124], 0
mov byte [esp + 0x15], 1
je 0x41f1d1
mov byte [esp + 0x15], 0
mov edx, dword [ebx + 0xe0c0]
movzx eax, byte [ebx + 0xe088]
mov ecx, dword [ebx + 0xe0a8]
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 0xdc28]
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0xdc24]
lea esi, [ebx + 0xe238]
mov dword [esp + 0x28], edx
mov edx, dword [ebx + 0xdc20]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x14], edx
mov dl, byte [esp + 0x15]
mov byte [esi + 0x28], dl
mov edx, dword [esp + 0x28]
shr eax, 3
mov dword [esi + 0x10], 0
mov dword [esi + 4], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
mov eax, dword [ebx + 0xdbfc]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], eax
cmp eax, dword [edi + 0x10]
jbe 0x41f25a
call fcn.0047d091
mov eax, dword [esp + 0x30]
mov edi, dword [edi]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
test edi, edi
jne 0x41f28b
call fcn.0047d091
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov edx, dword [esp + 0x2c]
lea eax, [eax + edx*4]
mov dword [esp + 0x20], eax
cmp eax, dword [ecx + 0x10]
ja 0x41f296
test edi, edi
je 0x41f28f
mov edi, dword [edi]
jmp 0x41f291
mov ecx, dword [edi]
jmp 0x41f273
xor edi, edi
cmp eax, dword [edi + 0xc]
jae 0x41f29f
call fcn.0047d091
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x41f3b9
call fcn.0047d091
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp eax, dword [ecx + 0x10]
jb 0x41f2c4
call fcn.0047d091
mov eax, dword [esp + 0x20]
mov edi, dword [eax]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], eax
cmp eax, dword [edi + 0x10]
jbe 0x41f2df
call fcn.0047d091
mov eax, dword [esp + 0x30]
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
test edx, 0xfffffffc
jne 0x41f2fc
mov byte [esp + 0x16], 1
mov edi, dword [ebx + 0xdbfc]
add edi, edi
add edi, edi
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xa4]
call fcn.0041efb0
cmp byte [esi], 0
je 0x41f32a
mov byte [esp + 0x17], 1
mov ecx, dword [esp + 0xa4]
mov byte [ebx + 0xe270], 0
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
sub ecx, edi
dec ecx
cmp eax, ecx
mov dword [esp + 0x30], eax
jge 0x41f65b
lea ecx, [ecx]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
add edx, ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xa4]
mov eax, dword [edx]
mov edx, dword [edx + 8]
sub edx, ecx
cmp eax, edx
mov dword [esp + 0x2c], eax
jge 0x41f639
add eax, ecx
mov dword [esp + 0x18], eax
mov edi, edi
cmp byte [esi], 0
mov ecx, dword [esp + 0x18]
je 0x41f3c0
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
imul ecx, eax
imul edx, dword [esp + 0x24]
add edx, ecx
add edx, dword [esi + 0x14]
push eax
push edx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 0
call fcn.00485490
mov ebx, dword [esp + 0x34]
add esp, 0xc
jmp 0x41f3d2
mov ecx, dword [ecx]
jmp 0x41f2b6
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov ebx, eax
cmp byte [esp + 0x16], 0
mov dword [esp + 0x28], ebx
je 0x41f43c
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x41f3ec
xor eax, eax
jmp 0x41f3f4
mov eax, dword [eax + 0x14]
sub eax, ecx
sar eax, 2
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x41f417
mov eax, dword [esp + 0x1c]
mov dword [edi], ebx
add edi, 4
mov dword [eax + 0x10], edi
jmp 0x41f613
cmp ecx, edi
jbe 0x41f420
call fcn.0047d091
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push edi
push ecx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.004232e0
jmp 0x41f613
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x41f691
call fcn.0047d091
xor eax, eax
mov esi, dword [esp + 0x40]
cmp esi, dword [eax + 0x10]
jb 0x41f45d
call fcn.0047d091
cmp dword [esi], ebx
je 0x41f5e9
mov eax, dword [esp + 0x9c]
mov byte [eax + 0xe270], 1
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x41f698
call fcn.0047d091
xor eax, eax
mov esi, dword [esp + 0x40]
cmp esi, dword [eax + 0x10]
jb 0x41f494
call fcn.0047d091
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov dword [esi], ebx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x34]
je 0x41f5e9
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp]
push eax
mov ecx, esi
mov edx, eax
mov edx, dword [edx]
push ecx
mov edi, esi
push edx
push edi
lea ebx, [esp + 0x38]
lea edi, [esp + 0x64]
mov dword [esp + 0x58], eax
call fcn.00423be0
mov ecx, dword [eax]
mov edi, dword [eax + 4]
add esp, 0x10
test ecx, ecx
je 0x41f4e7
cmp ecx, esi
je 0x41f4ec
call fcn.0047d091
cmp edi, dword [esp + 0x48]
jne 0x41f5e9
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x68]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x41f5e9
mov edx, dword [esp + 0x9c]
mov eax, dword [edx + 0x6c]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x74]
sub ecx, eax
sub esi, eax
mov eax, dword [edx + 0x70]
sub ebx, eax
sub edi, eax
mov eax, dword [edx + 0xa8]
cmp ecx, eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ecx
jg 0x41f555
mov dword [esp + 0x78], eax
mov eax, dword [edx + 0xac]
cmp ebx, eax
mov dword [esp + 0x7c], ebx
jg 0x41f567
mov dword [esp + 0x7c], eax
mov eax, dword [edx + 0xb0]
cmp esi, eax
jl 0x41f573
mov esi, eax
mov edx, dword [edx + 0xb4]
cmp edi, edx
jl 0x41f57f
mov edi, edx
cmp dword [esp + 0x78], esi
jge 0x41f5e9
cmp dword [esp + 0x7c], edi
jge 0x41f5e9
push 0x4a3fbe
call fcn.0047d6d1
mov edx, dword [esp + 0x80]
add esp, 4
push edi
push esi
mov ebx, eax
mov eax, dword [esp + 0x80]
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ecx, dword [esp + 0xa0]
push 2
mov edi, eax
mov eax, dword [ecx]
push edi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call fcn.0047d643
add esp, 4
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x60]
push eax
mov ebx, ebp
call fcn.00422cd0
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x41f69f
call fcn.0047d091
xor eax, eax
mov ecx, dword [esp + 0x40]
cmp ecx, dword [eax + 0x10]
jb 0x41f60a
call fcn.0047d091
add dword [esp + 0x40], 4
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [edx + 8]
sub ecx, dword [esp + 0x20]
add dword [esp + 0x18], 0x20
add eax, 0x20
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x41f380
mov edx, dword [esp + 0xa4]
mov ecx, dword [edx + 0xc]
sub ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
add eax, 0x20
dec ecx
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x41f350
cmp byte [esi], 0
je 0x41f675
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x10], 0
mov esi, dword [esp + 0x9c]
cmp byte [esi + 0xe270], 0
je 0x41f6a6
mov dword [esi + 0xe26c], 0
jmp 0x41f6ac
mov eax, dword [eax]
jmp 0x41f44f
mov eax, dword [eax]
jmp 0x41f486
mov eax, dword [eax]
jmp 0x41f5fc
inc dword [esi + 0xe26c]
mov eax, dword [esi + 0xe26c]
cmp eax, 0x14
jle 0x41f6be
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x1f4
cmp dword [esi + 0xe26c], eax
jle 0x41f6d1
mov dword [esi + 0xe26c], eax
mov ecx, dword [esi + 0xdbfc]
inc ecx
and ecx, reloc.WSOCK32.dll_getsockopt
jns 0x41f6e5
dec ecx
or ecx, 0xfffffff8
inc ecx
mov dword [esi + 0xdbfc], ecx
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 0xc