Function at 0x41cec0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x210
push ebx
mov ebx, dword [esp + 0x218]
push ebp
push esi
mov dword [esp + 0x14], ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
je 0x41da19
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], eax
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push str._listen
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call fcn.00431ca0
add esp, 8
test eax, eax
jne 0x41cf3a
lea edx, [esp + 0x20]
push 0x44459c
push edx
call fcn.00431ca0
add esp, 8
test eax, eax
je 0x41cf55
mov ecx, dword [esp + 0x18]
push str.SoftwareORLVNCviewerHistory
push str..listen
call fcn.0041fed0
mov dword [esp + 0x14], 1
inc ebp
push ebp
call fcn.00430b6b
mov ebp, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x20
mov eax, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x28], ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
call fcn.00431220
add esp, 0xc
test eax, eax
je 0x41cfa3
inc esi
inc eax
push 0x20
push eax
call fcn.00431220
add esp, 8
test eax, eax
jne 0x41cf92
lea ecx, [esi*4 + 4]
push ecx
call fcn.00430b6b
mov ebx, eax
add esp, 4
xor edi, edi
xor cl, cl
mov dword [ebx], ebp
mov dl, byte [ebp]
test dl, dl
mov eax, ebp
je 0x41cff8
mov esi, ebx
cmp byte [eax], 0x20
jne 0x41cfda
test cl, cl
jne 0x41cfda
inc edi
add esi, 4
lea edx, [eax + 1]
mov byte [eax], cl
mov dword [esi], edx
cmp byte [eax], 0x22
jne 0x41cff0
test cl, cl
jne 0x41cfe8
inc eax
mov dword [esi], eax
jmp 0x41cfeb
mov byte [eax], 0
test cl, cl
sete cl
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x41cfc6
inc edi
test edi, edi
mov dword [esp + 0x10], edi
jle 0x41d05b
mov ebp, dword [esp + 0x18]
mov esi, ebx
mov ecx, dword [esi]
lea eax, [ebp + 0x36c]
push eax
lea eax, [esp + 0x124]
push 0xff
push eax
push ecx
call fcn.00420c50
add esp, 0x10
test al, al
je 0x41d055
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41d055
mov edx, dword [esi]
push 0x443d4c
push edx
call fcn.00431ca0
add esp, 8
test eax, eax
jne 0x41d055
mov eax, dword [esi]
push str.SoftwareORLVNCviewerHistory
push eax
mov ecx, ebp
call fcn.0041fed0
add esi, 4
dec edi
jne 0x41d007
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
xor ebp, ebp
test eax, eax
jle 0x41d9d6
mov ecx, dword [ebx + ebp*4]
push str.help
push ecx
call fcn.0041da50
add esp, 8
test al, al
jne 0x41da32
mov edx, dword [ebx + ebp*4]
push 0x444590
push edx
call fcn.0041da50
add esp, 8
test al, al
jne 0x41da32
mov eax, dword [ebx + ebp*4]
push 0x44458c
push eax
call fcn.0041da50
add esp, 8
test al, al
jne 0x41da32
mov ecx, dword [ebx + ebp*4]
push str.listen
push ecx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d127
mov eax, dword [esp + 0x10]
lea edi, [ebp + 1]
cmp edi, eax
mov byte [esi + 4], 1
jge 0x41d9c9
mov eax, dword [ebx + edi*4]
mov cl, byte [eax]
cmp cl, 0x30
jl 0x41d9c9
cmp cl, 0x39
jg 0x41d9c9
lea edx, [esi + 8]
push edx
push 0x442b34
push eax
call fcn.0043109e
add esp, 0xc
cmp eax, 1
je 0x41d120
push str.Invalid_listen_port_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov ebp, edi
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
push str.restricted
push eax
call fcn.0041da50
add esp, 8
test al, al
je 0x41d148
mov byte [esi + 0x21a], 1
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.viewonly
push ecx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d169
mov byte [esi + 0x21b], 1
jmp 0x41d9c9
mov edx, dword [ebx + ebp*4]
push str.fullscreen
push edx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d18a
mov byte [esi + 0x21c], 1
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
push str.notoolbar
push eax
call fcn.0041da50
add esp, 8
test al, al
je 0x41d1ab
mov byte [esi + 0x10c], 0
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.8bit
push ecx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d1cc
mov byte [esi + 0x21d], 1
jmp 0x41d9c9
mov edx, dword [ebx + ebp*4]
push str.shared
push edx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d1ed
mov byte [esi + 0x230], 1
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
push str.noshared
push eax
call fcn.0041da50
add esp, 8
test al, al
je 0x41d20e
mov byte [esi + 0x230], 0
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.swapmouse
push ecx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d22f
mov byte [esi + 0x224], 1
jmp 0x41d9c9
mov edx, dword [ebx + ebp*4]
push str.nocursor
push edx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d253
mov dword [esi + 0x234], 0
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
push str.dotcursor
push eax
call fcn.0041da50
add esp, 8
test al, al
je 0x41d277
mov dword [esi + 0x234], 1
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.smalldotcursor
push ecx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d29b
mov dword [esi + 0x234], 3
jmp 0x41d9c9
mov edx, dword [ebx + ebp*4]
push str.normalcursor
push edx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d2bf
mov dword [esi + 0x234], 2
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
push str.belldeiconify
push eax
call fcn.0041da50
add esp, 8
test al, al
je 0x41d2e0
mov byte [esi + 0x231], 1
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.emulate3
push ecx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d301
mov byte [esi + 0x225], 1
jmp 0x41d9c9
mov edx, dword [ebx + ebp*4]
push str.noemulate3
push edx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d322
mov byte [esi + 0x225], 0
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
push str.nojpeg
push eax
call fcn.0041da50
add esp, 8
test al, al
je 0x41d343
mov byte [esi + 0x24c], 0
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.nocursorshape
push ecx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d364
mov byte [esi + 0x254], 0
jmp 0x41d9c9
mov edx, dword [ebx + ebp*4]
push str.noremotecursor
push edx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d38c
mov byte [esi + 0x254], 1
mov byte [esi + 0x255], 1
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
push str.fitwindow
push eax
call fcn.0041da50
add esp, 8
test al, al
je 0x41d3ad
mov byte [esi + 0x239], 1
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.scale
push ecx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d41b
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jne 0x41d3dd
push str.No_scaling_factor_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
lea edx, [esi + 0x23c]
push edx
push 0x442b34
push eax
call fcn.0043109e
add esp, 0xc
cmp eax, 1
jge 0x41d40c
push str.Invalid_scaling_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov dword [esi + 0x240], 0x64
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.emulate3timeout
push ecx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d47e
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jne 0x41d44b
push str.No_timeout_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
lea edx, [esi + 0x228]
push edx
push 0x442b34
push eax
call fcn.0043109e
add esp, 0xc
cmp eax, 1
je 0x41d9c9
push str.Invalid_timeout_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.emulate3fuzz
push ecx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d4e1
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jne 0x41d4ae
push str.No_fuzz_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
lea edx, [esi + 0x22c]
push edx
push 0x442b34
push eax
call fcn.0043109e
add esp, 0xc
cmp eax, 1
je 0x41d9c9
push str.Invalid_fuzz_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.disableclipboard
push ecx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d502
mov byte [esi + 0x232], 1
jmp 0x41d9c9
mov edx, dword [ebx + ebp*4]
push str.delay
push edx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d565
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jne 0x41d532
push str.No_delay_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
lea eax, [esi + 0x47c]
push eax
push 0x442b34
push ecx
call fcn.0043109e
add esp, 0xc
cmp eax, 1
je 0x41d9c9
push str.Invalid_delay_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov edx, dword [ebx + ebp*4]
push str.loglevel
push edx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d5c8
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jne 0x41d595
push str.No_loglevel_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
lea eax, [esi + 0x370]
push eax
push 0x442b34
push ecx
call fcn.0043109e
add esp, 0xc
cmp eax, 1
je 0x41d9c9
push str.Invalid_loglevel_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov edx, dword [ebx + ebp*4]
push str.console
push edx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d5e9
mov byte [esi + 0x375], 1
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
push str.logfile
push eax
call fcn.0041da50
add esp, 8
test al, al
je 0x41d654
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jne 0x41d619
push str.No_logfile_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov edx, dword [ebx + ebp*4]
lea ecx, [esi + 0x376]
push ecx
push 0x444324
push edx
call fcn.0043109e
add esp, 0xc
cmp eax, 1
je 0x41d648
push str.Invalid_logfile_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov byte [esi + 0x374], 1
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
push str.config
push eax
call fcn.0041da50
add esp, 8
test al, al
je 0x41d6ce
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jne 0x41d684
push str.No_config_file_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
lea edi, [esi + 0x116]
push 0x104
push ecx
push edi
call fcn.00431bf6
push 4
push edi
call fcn.00431bb0
add esp, 0x14
test eax, eax
je 0x41d6ba
push str.Cant_open_specified_config_file_for_reading.
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
push edi
mov ecx, esi
call fcn.0041dca0
mov byte [esi + 0x115], 1
jmp 0x41d9c9
mov edx, dword [ebx + ebp*4]
push str.encoding
push edx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d84a
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jne 0x41d702
push str.No_encoding_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
push 0x44428c
push eax
call fcn.00431ae0
add esp, 8
test eax, eax
jne 0x41d72a
mov byte [eax + esi + 0x260], 1
mov dword [esi + 0x220], eax
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push 0x444288
push ecx
call fcn.00431ae0
add esp, 8
test eax, eax
jne 0x41d757
mov eax, 2
mov byte [eax + esi + 0x260], 1
mov dword [esi + 0x220], eax
jmp 0x41d9c9
mov edx, dword [ebx + ebp*4]
push str.corre
push edx
call fcn.00431ae0
add esp, 8
test eax, eax
jne 0x41d784
mov eax, 4
mov byte [eax + esi + 0x260], 1
mov dword [esi + 0x220], eax
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
push str.hextile
push eax
call fcn.00431ae0
add esp, 8
test eax, eax
jne 0x41d7b1
mov eax, 5
mov byte [eax + esi + 0x260], 1
mov dword [esi + 0x220], eax
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.zlib
push ecx
call fcn.00431ae0
add esp, 8
test eax, eax
jne 0x41d7de
mov eax, 6
mov byte [eax + esi + 0x260], 1
mov dword [esi + 0x220], eax
jmp 0x41d9c9
mov edx, dword [ebx + ebp*4]
push str.tight
push edx
call fcn.00431ae0
add esp, 8
test eax, eax
jne 0x41d80b
mov eax, 7
mov byte [eax + esi + 0x260], 1
mov dword [esi + 0x220], eax
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
push str.zlibhex
push eax
call fcn.00431ae0
add esp, 8
test eax, eax
jne 0x41d838
mov eax, 8
mov byte [eax + esi + 0x260], 1
mov dword [esi + 0x220], eax
jmp 0x41d9c9
push str.Invalid_encoding_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.compresslevel
push ecx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d8b4
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jne 0x41d87a
push str.No_compression_level_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
lea edx, [esi + 0x248]
mov byte [esi + 0x244], 1
mov eax, dword [ebx + ebp*4]
push edx
push 0x442b34
push eax
call fcn.0043109e
add esp, 0xc
cmp eax, 1
je 0x41d9c9
push str.Invalid_compression_level_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.quality
push ecx
call fcn.0041da50
add esp, 8
test al, al
je 0x41d917
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jne 0x41d8e4
push str.No_image_quality_level_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov eax, dword [ebx + ebp*4]
lea edx, [esi + 0x250]
push edx
push 0x442b34
push eax
call fcn.0043109e
add esp, 0xc
cmp eax, 1
je 0x41d9c9
push str.Invalid_image_quality_level_specified
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
mov ecx, dword [ebx + ebp*4]
push str.register
push ecx
call fcn.0041da50
add esp, 8
test al, al
jne 0x41da26
mov ecx, dword [ebx + ebp*4]
lea edx, [esi + 0x36c]
push edx
lea eax, [esp + 0x124]
push 0xff
push eax
push ecx
call fcn.00420c50
add esp, 0x10
test al, al
jne 0x41d963
push str.Invalid_VNC_server_specified.
call fcn.0041da80
add esp, 4
jmp 0x41d9c9
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0x269]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x14], esi
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + ebp*4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0xc]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x14], esi
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [edx + 0x114], 1
mov esi, edx
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jl 0x41d06d
mov ecx, esi
call fcn.0041ce40
mov ecx, dword [esi + 0x23c]
mov eax, 1
cmp ecx, eax
jne 0x41da00
cmp dword [esi + 0x240], eax
jne 0x41da00
mov cl, byte [esi + 0x239]
test cl, cl
jne 0x41da00
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov byte [esi + 0x238], al
push ecx
call fcn.00430a30
push ebx
call fcn.00430a30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
call fcn.0041def0
push 1
call fcn.004319e4
push str.TightVNC_Usage_Help
call fcn.004010a0
add esp, 4
push 1
call fcn.004319e4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop