Function at 0x4080f0
Capabilities:
Create directory
Enumerate files on windows
Get disk information
Get hostname
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443ede
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x484
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x54]
mov esi, ecx
call edx
mov edx, dword [esi]
movsx eax, ax
push eax
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
push eax
push str.._vncClient.cpp:_tclient_connected_:__s__id__hd__n
push 1
push 0x457788
call fcn.00401860
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov ecx, dword [ebp + 0x54]
push 0x7530
mov dword [esp + 0xc8], eax
call fcn.004176e0
test eax, eax
jne 0x408185
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.._vncClient.cpp:_tfailed_to_set_socket_timeout__error_d_n
push 0
push 0x457788
call fcn.00401860
add esp, 0x10
mov ecx, dword [ebp + 0x58]
mov esi, dword [ecx]
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
add esi, 0x160
call eax
mov ecx, dword [ebp + 0x58]
mov edx, dword [esi]
push eax
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
mov ecx, ebp
call edx
test eax, eax
jne 0x4081ba
mov eax, dword [ebp + 0x58]
mov esi, dword [eax]
jmp 0x409f84
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
call edx
test eax, eax
je 0x4081b0
mov eax, dword [ebp]
mov edx, dword [eax + 0x34]
mov ecx, ebp
call edx
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
test eax, eax
mov eax, dword [ebp + 0x58]
mov esi, dword [eax]
je 0x409f89
mov eax, dword [edx + 0x4c]
add esi, 0x164
call eax
mov ecx, dword [ebp + 0x58]
mov edx, dword [esi]
push eax
call edx
mov ecx, dword [ebp + 0x58]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1a8]
call edx
imul eax, eax, 0x3e8
mov ecx, dword [ebp + 0x54]
push eax
call fcn.004176e0
push str.._vncClient.cpp:_tauthenticated_connection_n
push 9
push 0x457788
call fcn.00401860
mov ecx, dword [ebp + 0x5c]
mov ecx, dword [ecx + 0x24]
add esp, 0xc
lea eax, [esp + 0x9c]
push eax
call fcn.004051a0
mov ecx, dword [ebp + 0x5c]
mov edx, dword [eax]
mov dword [ecx + 0xc8], edx
mov edx, dword [eax + 4]
add ecx, 0xc8
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0xd8], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x4082c2
lea eax, [esp + 0x4c]
xor esi, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408288
sub eax, edx
je 0x4082e1
movsx eax, byte [esp + esi + 0x4c]
push eax
call fcn.00432d3f
mov byte [esp + esi + 0x50], al
lea eax, [esp + 0x50]
add esp, 4
add esi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4082b1
sub eax, edx
cmp esi, eax
jb 0x408295
jmp 0x4082e1
mov ecx, dword [str.WinVNC]
mov dx, word [0x4476b0]
mov al, byte [0x4476b2]
mov dword [esp + 0x4c], ecx
mov word [esp + 0x50], dx
mov byte [esp + 0x52], al
mov edx, dword [ebp + 0x5c]
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [edx + 0x24]
call fcn.004147e0
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xb4], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xb8], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp + 0x58]
mov dword [esp + 0xbc], edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x1dc]
lea edx, [esp + 0x9c]
push edx
call eax
mov ecx, dword [eax + 8]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov edx, ecx
sub edx, esi
sub ecx, esi
movzx dx, dh
shl ecx, 8
xor dx, cx
mov ecx, eax
sub ecx, edi
mov word [esp + 0xac], dx
sub eax, edi
movzx dx, ch
mov cx, word [esp + 0xb6]
shl eax, 8
xor dx, ax
mov ax, word [esp + 0xb4]
mov word [esp + 0xae], dx
mov dx, word [esp + 0xb8]
rol ax, 8
rol cx, 8
rol dx, 8
mov word [esp + 0xb4], ax
lea eax, [esp + 0x4c]
mov word [esp + 0xb8], dx
mov word [esp + 0xb6], cx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4083b0
sub eax, edx
lea ecx, [esp + 0x4c]
mov edi, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
add ecx, 1
test al, al
jne 0x4083c4
lea eax, [esp + 0x4c]
sub ecx, edx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4083d6
sub eax, esi
mov esi, eax
lea eax, [esp + 0x4c]
lea ebx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4083f0
sub eax, ebx
shl eax, 0x10
and ecx, 0xff0000
and esi, 0xff00
or eax, esi
shr edi, 0x10
or ecx, edi
shl eax, 8
shr ecx, 8
or eax, ecx
mov ecx, dword [ebp + 0x54]
mov dword [esp + 0xc0], eax
push 0x18
lea eax, [esp + 0xb0]
push eax
call fcn.00417bc0
test eax, eax
je 0x409f7f
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408441
mov ecx, dword [ebp + 0x54]
sub eax, edx
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00417bc0
test eax, eax
je 0x409f7f
push str.._vncClient.cpp:_tsent_pixel_format_to_client_n
push 9
push 0x457788
call fcn.00401860
mov eax, dword [ebp + 0x5c]
xor ebx, ebx
add esp, 0xc
cmp dword [eax + 0xc], ebx
je 0x4084a6
mov edx, dword [ebp]
mov eax, dword [edx + 0x38]
mov ecx, ebp
call eax
test eax, eax
je 0x409f7f
push str.._vncClient.cpp:_tlist_of_interaction_capabilities_sent_n
push 9
push 0x457788
call fcn.00401860
add esp, 0xc
mov esi, dword [ebp + 0x5c]
add esi, 0x90
mov ecx, esi
call fcn.004285a0
mov eax, dword [ebp + 0x5c]
mov edi, 1
mov ecx, esi
mov dword [eax + 0x3c], edi
call fcn.004285b0
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
call eax
test eax, eax
je 0x4084ea
push 0x14
call fcn.00406c40
push 0x91
call fcn.00406c40
add esp, 8
mov dword [esp + 0x40], edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.00415ae0
test eax, eax
jne 0x40850e
push ebx
call fcn.00415a30
add esp, 4
test eax, eax
je 0x409f41
push 1
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0x54]
call fcn.00417a10
test eax, eax
je 0x409f41
mov cl, byte [esp + 0x10]
movzx eax, cl
cmp eax, 0x88
ja case.0x40853e.1
movzx edx, byte [eax + 0x409fec]
jmp dword [edx*4 + 0x409fb4]
mov ecx, dword [ebp + 0x54]
push 0x13
lea eax, [esp + 0x15]
push eax
call fcn.00417a10
test eax, eax
je 0x409f41
push str.._vncClient.cpp:_tSetPixelFormat_message_received_n
push 9
push 0x457788
call fcn.00401860
mov cx, word [esp + 0x24]
mov dx, word [esp + 0x26]
mov ax, word [esp + 0x28]
mov esi, dword [ebp + 0x5c]
add esp, 0xc
rol cx, 8
rol dx, 8
add esi, 0x90
mov word [esp + 0x18], cx
rol ax, 8
mov ecx, esi
mov word [esp + 0x1a], dx
mov word [esp + 0x1c], ax
mov dword [esp + 0x24], esi
call fcn.004285a0
mov edx, dword [ebp + 0x5c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [edx + 0x24]
mov dword [esp + 0x4a0], ebx
call fcn.004058a0
test eax, eax
jne 0x4085e0
push str.._vncClient.cpp:_tremote_pixel_format_invalid_n
push ebx
push 0x457788
call fcn.00401860
add esp, 0xc
mov dword [esp + 0x40], ebx
mov eax, dword [ebp + 0x5c]
mov ecx, esi
mov dword [eax + 0xd8], 1
mov dword [esp + 0x49c], 0xffffffff
call fcn.004285b0
jmp 0x409f1c
push 3
lea ecx, [esp + 0x15]
push ecx
mov ecx, dword [ebp + 0x54]
call fcn.00417a10
test eax, eax
je 0x409f41
push str.._vncClient.cpp:_tSetEncodings_message_received_n
push 9
push 0x457788
call fcn.00401860
mov edx, dword [ebp + 0x5c]
mov ecx, dword [edx + 0x24]
add esp, 0xc
or ebx, 0xffffffff
push ebx
call fcn.00405610
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax + 0x24]
push 6
call fcn.004055e0
mov ecx, dword [ebp + 0x5c]
mov ecx, dword [ecx + 0x24]
xor edi, edi
push edi
call fcn.00405640
mov edx, dword [ebp + 0x5c]
mov ecx, dword [edx + 0x24]
push edi
call fcn.00405660
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax + 0x24]
push edi
call fcn.00405690
mov ecx, dword [ebp + 0x5c]
mov dword [ecx + 0xe4], edi
mov edx, dword [ebp + 0x5c]
mov dword [edx + 0xe0], edi
mov eax, dword [ebp + 0x5c]
mov dword [eax + 0x60], edi
mov ecx, dword [ebp + 0x5c]
mov dword [ecx + 0x64], edi
mov edx, dword [ebp + 0x5c]
mov dword [edx + 0x68], edi
mov ax, word [esp + 0x12]
mov esi, dword [ebp + 0x5c]
rol ax, 8
add esi, 0x90
mov ecx, esi
mov word [esp + 0x12], ax
mov dword [esp + 0x34], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x24], edi
call fcn.004285a0
mov ecx, dword [ebp + 0x5c]
mov dword [ecx + 0x1c], edi
mov ecx, esi
call fcn.004285b0
cmp word [esp + 0x12], di
mov dword [esp + 0x44], edi
jbe 0x408915
lea edi, [ebx + 2]
mov edi, edi
mov esi, dword [ebp + 0x5c]
add esi, 0x90
mov ecx, esi
mov dword [esp + 0x38], esi
call fcn.004285a0
mov ecx, dword [ebp + 0x54]
push 4
lea edx, [esp + 0xd8]
push edx
mov dword [esp + 0x4a4], edi
call fcn.00417a10
test eax, eax
je 0x4088ba
mov ecx, dword [esp + 0xd4]
mov eax, ecx
and eax, 0xff0000
mov edx, ecx
shr edx, 0x10
or eax, edx
mov edx, ecx
shl edx, 0x10
and ecx, 0xff00
or edx, ecx
shr eax, 8
shl edx, 8
or eax, edx
cmp eax, edi
jne 0x40874e
mov eax, dword [ebp + 0x5c]
mov dword [eax + 0x1c], edi
jmp 0x408893
cmp eax, 0xffffff10
jne 0x40877e
mov ecx, dword [ebp + 0x5c]
mov ecx, dword [ecx + 0x24]
push edi
call fcn.00405640
push str.._vncClient.cpp:_tX_style_cursor_shape_updates_enabled_n
push 9
push 0x457788
mov dword [esp + 0x54], edi
call fcn.00401860
add esp, 0xc
jmp 0x408893
cmp eax, 0xffffff11
jne 0x4087ae
mov edx, dword [ebp + 0x5c]
mov ecx, dword [edx + 0x24]
push edi
call fcn.00405660
push str.._vncClient.cpp:_tFull_color_cursor_shape_updates_enabled_n
push 9
push 0x457788
mov dword [esp + 0x54], edi
call fcn.00401860
add esp, 0xc
jmp 0x408893
cmp eax, 0xffffff00
jb 0x4087fb
cmp eax, 0xffffff09
ja 0x4087fb
lea edi, [eax + 0x100]
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax + 0x24]
push edi
call fcn.004055e0
push edi
push str.._vncClient.cpp:_tcompression_level_requested:__d_n
push 9
push 0x457788
call fcn.00401860
add esp, 0x10
mov ecx, esi
mov dword [esp + 0x49c], ebx
call fcn.004285b0
mov edi, 1
jmp 0x4088a1
cmp eax, 0xffffffe0
jb 0x40881c
cmp eax, 0xffffffe9
ja 0x40881c
mov ecx, dword [ebp + 0x5c]
mov ecx, dword [ecx + 0x24]
lea edi, [eax + 0x20]
push edi
call fcn.00405610
push edi
push str.._vncClient.cpp:_timage_quality_level_requested:__d_n
jmp 0x4087d4
cmp eax, 0xffffff18
jne 0x408829
mov dword [esp + 0x24], edi
jmp 0x408893
cmp eax, 0xffffff20
jne 0x408852
mov edx, dword [ebp + 0x5c]
mov ecx, dword [edx + 0x24]
push edi
call fcn.00405690
push str.._vncClient.cpp:_tLastRect_protocol_extension_enabled_n
push 9
push 0x457788
call fcn.00401860
add esp, 0xc
jmp 0x408893
cmp eax, 0xffffff21
jne 0x408878
mov eax, dword [ebp + 0x5c]
push str.._vncClient.cpp:_tNewFBSize_protocol_extension_enabled_n
push 9
push 0x457788
mov dword [eax + 0xe0], edi
call fcn.00401860
add esp, 0xc
jmp 0x408893
cmp dword [esp + 0x34], 0
jne 0x408893
mov ecx, dword [ebp + 0x5c]
mov ecx, dword [ecx + 0x24]
push eax
call fcn.00405270
test eax, eax
je 0x408893
mov dword [esp + 0x34], edi
mov ecx, esi
mov dword [esp + 0x49c], ebx
call fcn.004285b0
mov eax, dword [esp + 0x44]
movzx edx, word [esp + 0x12]
add eax, edi
cmp eax, edx
mov dword [esp + 0x44], eax
jl 0x4086e0
jmp 0x4088d0
mov ecx, esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x49c], ebx
call fcn.004285b0
cmp dword [esp + 0x48], 0
je 0x408905
cmp dword [esp + 0x24], 0
je 0x408905
mov eax, dword [ebp + 0x5c]
mov dword [eax + 0xe4], edi
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
push str.._vncClient.cpp:_tPointerPos_protocol_extension_enabled_n
push 9
push 0x457788
call fcn.00401860
add esp, 0xc
cmp dword [esp + 0x34], 0
jne 0x409f1c
or ebx, 0xffffffff
xor edi, edi
mov esi, dword [ebp + 0x5c]
add esi, 0x90
mov ecx, esi
mov dword [esp + 0x38], esi
call fcn.004285a0
push str.._vncClient.cpp:_tdefaulting_to_raw_encoder_n
push 9
push 0x457788
mov dword [esp + 0x4a8], 2
call fcn.00401860
mov ecx, dword [ebp + 0x5c]
mov ecx, dword [ecx + 0x24]
add esp, 0xc
push edi
call fcn.00405270
test eax, eax
jne 0x40896f
push str.._vncClient.cpp:_tfailed_to_select_raw_encoder__n
push edi
push 0x457788
call fcn.00401860
add esp, 0xc
mov dword [esp + 0x40], edi
mov ecx, esi
mov dword [esp + 0x49c], ebx
call fcn.004285b0
jmp 0x409f1c
mov ecx, dword [ebp + 0x54]
push 9
lea edx, [esp + 0x15]
push edx
call fcn.00417a10
test eax, eax
je 0x409f41
cmp byte [esp + 0x11], 0
je 0x4089a7
push str.._vncClient.cpp:_tFramebufferUpdateRequest_incr__received_n
jmp 0x4089ac
push str.._vncClient.cpp:_tFramebufferUpdateRequest_full__received_n
push 9
push 0x457788
call fcn.00401860
mov esi, dword [ebp + 0x5c]
add esi, 0x90
add esp, 0xc
mov ecx, esi
mov dword [esp + 0x38], esi
call fcn.004285a0
mov ecx, dword [ebp + 0x58]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1dc]
lea edx, [esp + 0x1b8]
push edx
mov dword [esp + 0x4a0], 3
call eax
mov ebx, dword [eax]
mov di, word [esp + 0x14]
mov dword [esp + 0x9c], ebx
mov edx, dword [eax + 4]
mov dword [esp + 0xa0], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xa4], ecx
mov cx, word [esp + 0x12]
mov eax, dword [eax + 0xc]
rol cx, 8
movzx ecx, cx
add ecx, ebx
rol di, 8
movzx edi, di
add edi, edx
mov dx, word [esp + 0x16]
rol dx, 8
movzx edx, dx
add edx, ecx
cmp edx, dword [esp + 0xa4]
mov dword [esp + 0xa8], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edx
jle 0x408a60
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x64], edx
cmp ecx, ebx
jge 0x408a68
mov dword [esp + 0x5c], ebx
mov cx, word [esp + 0x18]
rol cx, 8
movzx ecx, cx
add ecx, edi
cmp ecx, eax
mov dword [esp + 0x68], ecx
jle 0x408a82
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xa0]
cmp edi, eax
jge 0x408a91
mov dword [esp + 0x60], eax
mov edx, dword [ebp + 0x5c]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x60]
mov dword [edx + 0xc4], 1
push ecx
mov edx, ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x408af4
cmp byte [esp + 0x11], 0
je 0x408ad4
mov ecx, dword [ebp + 0x5c]
lea eax, [esp + 0x5c]
push eax
add ecx, 0x88
call fcn.004117a0
jmp 0x408af4
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x5c]
add ecx, 0x8c
call fcn.004117a0
mov edx, dword [ebp + 0x5c]
mov dword [edx + 0xa8], 0
mov ecx, dword [ebp + 0x58]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
mov ecx, esi
mov dword [esp + 0x49c], 0xffffffff
call fcn.004285b0
jmp 0x409f1c
mov ecx, dword [ebp + 0x54]
push 7
lea eax, [esp + 0x15]
push eax
call fcn.00417a10
test eax, eax
je 0x409f1c
push str.._vncClient.cpp:_tKeyEvent_message_received_n
push 9
push 0x457788
call fcn.00401860
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
add esp, 0xc
call eax
test eax, eax
je 0x409f1c
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
test eax, eax
jne 0x409f1c
mov ecx, dword [esp + 0x14]
mov eax, ecx
mov edx, ecx
shr edx, 0x10
and eax, 0xff0000
or eax, edx
mov edx, ecx
shl edx, 0x10
and ecx, 0xff00
or edx, ecx
mov ecx, dword [ebp + 0x5c]
shl edx, 8
shr eax, 8
or eax, edx
cmp byte [esp + 0x11], 0
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x28]
setne cl
push edx
push ecx
push eax
call fcn.00410730
mov edx, dword [ebp + 0x5c]
add esp, 0xc
mov dword [edx + 0xdc], 1
jmp 0x409f1c
mov ecx, dword [ebp + 0x54]
push 5
lea eax, [esp + 0x15]
push eax
call fcn.00417a10
test eax, eax
je 0x409f1c
push str.._vncClient.cpp:_tPointerEvent_message_received_n
push 9
push 0x457788
call fcn.00401860
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
add esp, 0xc
call eax
test eax, eax
je 0x409f1c
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
call eax
test eax, eax
jne 0x409f1c
mov ax, word [esp + 0x12]
movzx ecx, word [esp + 0x14]
rol ax, 8
movzx edx, ax
mov word [esp + 0x12], ax
mov eax, dword [ebp + 0x5c]
rol cx, 8
mov word [esp + 0x14], cx
mov dword [eax + 0x7c], edx
movzx ecx, word [esp + 0x14]
mov edx, dword [ebp + 0x5c]
mov dword [edx + 0x80], ecx
mov esi, dword [ebp + 0x5c]
add esi, 0x90
mov ecx, esi
mov dword [esp + 0x38], esi
call fcn.004285a0
mov ecx, dword [ebp + 0x58]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1dc]
lea edx, [esp + 0x1c8]
push edx
mov dword [esp + 0x4a0], 4
call eax
mov ecx, dword [eax]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x90], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 0xc]
mov ecx, esi
mov dword [esp + 0x98], edx
mov dword [esp + 0x49c], 0xffffffff
call fcn.004285b0
movzx eax, word [esp + 0x8c]
movzx ecx, word [esp + 0x90]
add word [esp + 0x12], ax
add word [esp + 0x14], cx
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx]
mov edx, dword [edx + 0x21c]
push ebx
add eax, 0x7c
push eax
push 1
mov esi, 0x8001
call edx
mov eax, dword [ebp + 0x5c]
mov dl, byte [eax + 0x59]
mov cl, byte [esp + 0x11]
xor dl, cl
test dl, 1
je 0x408d42
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x408d12
mov al, byte [esp + 0x11]
and al, 1
neg al
sbb eax, eax
and eax, 0xfffffff8
add eax, 0x10
or eax, esi
mov esi, eax
jmp 0x408d27
mov cl, byte [esp + 0x11]
and cl, 1
neg cl
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 4
or ecx, esi
mov esi, ecx
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx]
mov edx, dword [edx + 0x21c]
push ebx
add eax, 0x7c
push eax
push 1
call edx
mov cl, byte [esp + 0x11]
mov edi, dword [ebp + 0x5c]
mov dl, byte [edi + 0x59]
mov al, cl
and al, 2
and dl, 2
cmp al, dl
je 0x408d78
mov ecx, dword [ebp + 0x58]
neg al
push 0
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x40
add edi, 0x7c
or esi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x21c]
push edi
push 1
call edx
mov cl, byte [esp + 0x11]
mov eax, dword [ebp + 0x5c]
mov dl, byte [eax + 0x59]
xor dl, cl
test dl, 4
je 0x408dd4
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x408da5
mov al, byte [esp + 0x11]
and al, 4
neg al
sbb eax, eax
and eax, 0xfffffffe
add eax, 4
or esi, eax
jmp 0x408db8
mov cl, byte [esp + 0x11]
and cl, 4
neg cl
sbb ecx, ecx
and ecx, 0xfffffff8
add ecx, 0x10
or esi, ecx
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx]
mov edx, dword [edx + 0x21c]
push 0
add eax, 0x7c
push eax
push 1
call edx
mov cl, byte [esp + 0x11]
xor edi, edi
test cl, 8
je 0x408deb
mov eax, dword [ebp + 0x5c]
test byte [eax + 0x59], 8
jne 0x408deb
mov edi, 0x78
jmp 0x408dfe
test cl, 0x10
je 0x408e04
mov ecx, dword [ebp + 0x5c]
test byte [ecx + 0x59], 0x10
jne 0x408e04
mov edi, 0xffffff88
or esi, 0x800
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea edx, [esp + 0x8c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
movzx eax, word [esp + 0x14]
mov ecx, dword [esp + 0x98]
imul eax, eax, 0xffff
sub ecx, dword [esp + 0x90]
cdq
sub ecx, 1
idiv ecx
mov ecx, dword [esp + 0x94]
sub ecx, dword [esp + 0x8c]
push 0
push edi
sub ecx, 1
push eax
movzx eax, word [esp + 0x1e]
imul eax, eax, 0xffff
cdq
idiv ecx
push eax
push esi
call dword [sym.imp.USER32.dll_mouse_event]
mov eax, dword [ebp + 0x5c]
mov edx, dword [esp + 0x10]
add eax, 0x58
mov dword [eax], edx
mov cx, word [esp + 0x14]
mov word [eax + 4], cx
mov edx, dword [ebp + 0x5c]
push 0
mov dword [edx + 0xdc], 1
call fcn.00431d3e
mov ecx, dword [ebp + 0x5c]
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], edx
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esp, 4
call edx
mov ecx, dword [ebp + 0x58]
mov eax, dword [ecx]
mov edx, dword [eax + 0x60]
call edx
jmp 0x409f1c
mov ecx, dword [ebp + 0x54]
push 7
lea eax, [esp + 0x15]
push eax
call fcn.00417a10
test eax, eax
je 0x409f1c
push str.._vncClient.cpp:_tClientCutText_message_received_n
push 9
push 0x457788
call fcn.00401860
mov eax, dword [esp + 0x20]
mov esi, eax
mov ecx, eax
mov edx, eax
and esi, 0xff0000
shl edx, 0x10
and eax, 0xff00
shr ecx, 0x10
or esi, ecx
or edx, eax
shl edx, 8
shr esi, 8
or esi, edx
lea eax, [esi + 1]
push eax
call fcn.00432007
mov edi, eax
add esp, 0x10
test edi, edi
je 0x409f1c
push esi
mov byte [edi + esi], 0
mov ecx, dword [ebp + 0x54]
push edi
call fcn.00417a10
test eax, eax
jne 0x408f36
push edi
call fcn.00432002
add esp, 4
jmp 0x409f1c
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
call eax
test eax, eax
je 0x408f60
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
call eax
test eax, eax
je 0x408f60
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc0]
push edi
call eax
push edi
call fcn.00432002
add esp, 4
jmp 0x409f1c
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c0]
call eax
test eax, eax
je 0x409f41
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
test eax, eax
je 0x409f41
push 3
lea ecx, [esp + 0x15]
push ecx
mov ecx, dword [ebp + 0x54]
call fcn.00417a10
test eax, eax
je 0x409f1c
push str.._vncClient.cpp:_tFileListRequest_message_received_n
push 9
push 0x457788
call fcn.00401860
mov ax, word [esp + 0x1e]
add esp, 0xc
rol ax, 8
cmp ax, 0xff
mov word [esp + 0x12], ax
ja 0x409f1c
mov ecx, dword [ebp + 0x54]
movzx edx, ax
push edx
lea eax, [esp + 0x354]
push eax
call fcn.00417a10
movzx ecx, word [esp + 0x12]
lea edx, [esp + 0x350]
mov byte [esp + ecx + 0x350], 0
push edx
mov ecx, ebp
call fcn.004078a0
call fcn.00416430
test al, al
jne 0x409083
mov esi, dword [ebp + 0x5c]
add esi, 0xe8
mov ecx, esi
mov dword [esp + 0x38], esi
call fcn.004285a0
mov al, byte [esp + 0x11]
push 8
lea ecx, [esp + 0x7c]
or al, 0x80
push ecx
mov ecx, dword [ebp + 0x54]
mov dword [esp + 0x4a4], 5
mov byte [esp + 0x80], 0x82
mov word [esp + 0x82], bx
mov word [esp + 0x84], bx
mov word [esp + 0x86], bx
mov byte [esp + 0x81], al
call fcn.00417bc0
mov ecx, esi
mov dword [esp + 0x49c], 0xffffffff
call fcn.004285b0
jmp 0x409f1c
lea ecx, [esp + 0x28]
call fcn.00401910
lea eax, [esp + 0x350]
mov dword [esp + 0x49c], 6
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4090a1
sub eax, edx
jne 0x4093d5
lea edx, [esp + 0x1d8]
push edx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x409155
mov esi, dword [ebp + 0x5c]
add esi, 0xe8
mov ecx, esi
mov dword [esp + 0x38], esi
call fcn.004285a0
mov al, byte [esp + 0x11]
push 8
lea ecx, [esp + 0x88]
or al, 0x80
push ecx
mov ecx, dword [ebp + 0x54]
mov byte [esp + 0x4a4], 7
mov byte [esp + 0x8c], 0x82
mov word [esp + 0x8e], bx
mov word [esp + 0x90], bx
mov word [esp + 0x92], bx
mov byte [esp + 0x8d], al
call fcn.00417bc0
call fcn.004164b0
mov ecx, esi
mov byte [esp + 0x49c], 6
call fcn.004285b0
lea ecx, [esp + 0x28]
mov dword [esp + 0x49c], 0xffffffff
call fcn.00401ae0
jmp 0x409f1c
xor ebx, ebx
cmp byte [esp + 0x1d8], bl
je 0x4091b3
lea esi, [esp + 0x1d8]
push esi
call fcn.004437e0
mov edi, eax
push 0x5c
push edi
call fcn.00431cb0
add esp, 0xc
test eax, eax
je 0x409181
mov byte [eax], 0
push 0
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x34]
call fcn.00401930
push edi
call fcn.00431f74
push 0x445ab4
push esi
call fcn.00432b60
lea ebx, [ebx + eax + 1]
lea esi, [esp + ebx + 0x1e4]
add esp, 0xc
cmp byte [esi], 0
jne 0x409167
lea ecx, [esp + 0x28]
call fcn.00401a90
mov esi, eax
add esi, esi
add esi, esi
lea ecx, [esp + 0x28]
add esi, esi
call fcn.00401aa0
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.00401a90
add edi, esi
lea eax, [eax + edi + 8]
push eax
mov dword [esp + 0x48], eax
call fcn.00432007
mov ebx, eax
mov byte [ebx], 0x82
mov dl, byte [esp + 0x15]
lea ecx, [ebx + esi + 8]
mov dword [esp + 0x38], ecx
and dl, 0xf0
add esp, 4
lea ecx, [esp + 0x28]
mov byte [ebx + 1], dl
call fcn.00401a90
mov esi, eax
sar esi, 8
lea ecx, [esp + 0x28]
and esi, 0xff
call fcn.00401a90
xor ecx, ecx
mov ch, al
or ecx, esi
mov word [ebx + 2], cx
lea ecx, [esp + 0x28]
call fcn.00401aa0
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00401a90
add esi, eax
sar esi, 8
lea ecx, [esp + 0x28]
and esi, 0xff
call fcn.00401aa0
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.00401a90
add edi, eax
shl edi, 8
mov eax, edi
and eax, 0xff00
or eax, esi
lea ecx, [esp + 0x28]
mov word [ebx + 4], ax
mov word [ebx + 6], ax
xor esi, esi
call fcn.00401a90
test eax, eax
jle 0x40937e
push esi
lea ecx, [esp + 0x2c]
call fcn.00401a30
and eax, 0xff0000
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.00401a30
mov edi, eax
shr edi, 0x10
or edi, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x2c]
shr edi, 8
call fcn.00401a30
shl eax, 0x10
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.00401a30
and eax, 0xff00
or eax, dword [esp + 0x24]
push esi
shl eax, 8
or eax, edi
lea ecx, [esp + 0x2c]
mov dword [ebx + esi*8 + 8], eax
call fcn.00401a60
and eax, 0xff0000
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.00401a60
mov edi, eax
shr edi, 0x10
or edi, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x2c]
shr edi, 8
call fcn.00401a60
shl eax, 0x10
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.00401a60
and eax, 0xff00
or eax, dword [esp + 0x24]
push esi
shl eax, 8
or eax, edi
lea ecx, [esp + 0x2c]
mov dword [ebx + esi*8 + 0xc], eax
call fcn.00401a10
mov edi, dword [esp + 0x34]
nop
mov cl, byte [eax]
mov byte [edi], cl
add eax, 1
add edi, 1
test cl, cl
jne 0x409340
mov edx, dword [esp + 0x34]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409357
sub eax, edi
lea edx, [edx + eax + 1]
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], edx
add esi, 1
call fcn.00401a90
cmp esi, eax
jl 0x409285
mov esi, dword [ebp + 0x5c]
add esi, 0xe8
mov ecx, esi
mov dword [esp + 0x38], esi
call fcn.004285a0
mov eax, dword [esp + 0x44]
mov ecx, dword [ebp + 0x54]
push eax
push ebx
mov byte [esp + 0x4a4], 9
call fcn.00417bc0
call fcn.004164b0
mov ecx, esi
mov byte [esp + 0x49c], 6
call fcn.004285b0
lea ecx, [esp + 0x28]
mov dword [esp + 0x49c], 0xffffffff
call fcn.00401ae0
jmp 0x409f1c
lea eax, [esp + 0x350]
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4093e0
mov dx, word [0x447290]
mov cl, byte [0x447292]
mov word [eax], dx
push 1
mov byte [eax + 2], cl
call edi
lea edx, [esp + 0x1d8]
mov esi, eax
push edx
lea eax, [esp + 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call edi
cmp dword [esp + 0x24], 0xffffffff
je 0x4094f8
mov ebx, dword [esp + 0x24]
jmp 0x409440
mov edi, 0x44728c
lea esi, [esp + 0x204]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4094d5
mov edi, 0x447288
lea esi, [esp + 0x204]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4094d5
mov eax, dword [esp + 0x1ec]
mov ecx, dword [esp + 0x1f0]
push edx
sub eax, 0x61da8000
push 0x989680
sbb ecx, 0x1028f051
push ecx
push eax
call fcn.00432930
test byte [esp + 0x1d8], 0x10
mov dword [esp + 0x38], eax
je 0x4094b4
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x20c]
push ecx
jmp 0x4094cc
test byte [esp + 0x11], 0x10
jne 0x4094d5
push edx
mov edx, dword [esp + 0x1fc]
push edx
lea eax, [esp + 0x20c]
push eax
lea ecx, [esp + 0x34]
call fcn.00401930
lea ecx, [esp + 0x1d8]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409440
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4091b3
xor edi, edi
cmp ebx, edi
je 0x4091b3
cmp ebx, 2
je 0x4091b3
mov esi, dword [ebp + 0x5c]
add esi, 0xe8
mov ecx, esi
mov dword [esp + 0x38], esi
call fcn.004285a0
mov dl, byte [esp + 0x11]
mov ecx, dword [ebp + 0x54]
push 8
lea eax, [esp + 0x70]
or dl, 0x80
push eax
mov byte [esp + 0x4a4], 8
mov byte [esp + 0x74], 0x82
mov word [esp + 0x76], di
mov word [esp + 0x78], di
mov word [esp + 0x7a], di
mov byte [esp + 0x75], dl
call fcn.00417bc0
call fcn.004164b0
mov ecx, esi
mov byte [esp + 0x49c], 6
call fcn.004285b0
lea ecx, [esp + 0x28]
mov dword [esp + 0x49c], 0xffffffff
call fcn.00401ae0
jmp 0x409f1c
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c0]
call eax
test eax, eax
je 0x409f41
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
test eax, eax
je 0x409f41
push 7
lea ecx, [esp + 0x15]
push ecx
mov ecx, dword [ebp + 0x54]
call fcn.00417a10
test eax, eax
je 0x409f1c
push str.._vncClient.cpp:_tFileDownloadRequest_message_received_n
push 9
push 0x457788
call fcn.00401860
mov dx, word [esp + 0x1e]
mov eax, dword [esp + 0x20]
add esp, 0xc
rol dx, 8
mov word [esp + 0x12], dx
mov ecx, eax
mov edx, eax
shr edx, 0x10
and ecx, 0xff0000
or ecx, edx
mov edx, eax
shl edx, 0x10
and eax, 0xff00
or edx, eax
shr ecx, 8
shl edx, 8
or ecx, edx
mov dword [esp + 0x14], ecx
call fcn.00416430
test al, al
mov ecx, dword [ebp + 0x54]
jne 0x409666
movzx eax, word [esp + 0x12]
push eax
push 0
call fcn.00417a10
mov ecx, 8
mov esi, str.Cannot_impersonate_logged_on_user
lea edi, [esp + 0x170]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x170]
movsw word es:[edi], word [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409645
lea ecx, [esp + 0x170]
push ecx
mov ecx, dword [ebp + 0x5c]
sub eax, edx
push eax
call fcn.004079f0
jmp 0x409f1c
mov ax, word [esp + 0x12]
cmp ax, 0xff
movzx edx, ax
push edx
jbe 0x4096c1
push 0
call fcn.00417a10
mov ecx, 7
mov esi, str.Path_length_exceeds_255_bytes
lea edi, [esp + 0x108]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x108]
movsw word es:[edi], word [esi]
lea edx, [eax + 1]
jmp 0x4096a0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4096a0
lea ecx, [esp + 0x108]
push ecx
mov ecx, dword [ebp + 0x5c]
sub eax, edx
push eax
call fcn.004079f0
jmp 0x409f17
lea eax, [esp + 0x354]
push eax
call fcn.00417a10
movzx ecx, word [esp + 0x12]
lea edx, [esp + 0x350]
mov byte [esp + ecx + 0x350], 0
push edx
mov ecx, ebp
call fcn.004078a0
mov eax, dword [ebp + 0x5c]
lea edx, [esp + 0x350]
add eax, 0x214
lea esp, [esp]
mov cl, byte [edx]
mov byte [eax], cl
add edx, 1
add eax, 1
test cl, cl
jne 0x409700
push 1
call edi
mov ebx, eax
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x354]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call edi
lea edx, [esp + 0x350]
push edx
push str.._vncClient.cpp:_tfile_download_requested:__s_n
push 1
push 0x457788
call fcn.00401860
add esp, 0x10
test byte [esp + 0x1d8], 0x10
jne 0x409817
cmp esi, 0xffffffff
je 0x409817
cmp byte [esp + 0x350], 0
je 0x409817
mov ebx, dword [esp + 0x1f8]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x1f0]
mov ecx, dword [esp + 0x1ec]
mov esi, dword [ebp + 0x5c]
push eax
push ecx
mov ecx, esi
call fcn.00407bf0
test ebx, ebx
mov dword [esi + 0x318], eax
jne 0x4097bc
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx + 0x318]
push edx
call fcn.00407aa0
jmp 0x409f17
push 1
call edi
push 0
push 0x8000000
push 3
push 0
push 1
mov esi, eax
push bind
lea eax, [esp + 0x368]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0x5c]
push esi
mov dword [ecx + 0x108], eax
call edi
mov edx, dword [ebp + 0x5c]
cmp dword [edx + 0x108], 0xffffffff
je 0x409f17
mov eax, edx
mov dword [eax + 0x104], 1
mov ecx, dword [ebp + 0x5c]
call fcn.00408020
jmp 0x409f17
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0xe
mov esi, str.Cannot_open_file__perhaps_it_is_absent_or_is_a_directory
lea edi, [esp + 0x454]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x454]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409840
lea ecx, [esp + 0x454]
push ecx
mov ecx, dword [ebp + 0x5c]
sub eax, edx
push eax
call fcn.004079f0
jmp 0x409f17
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c0]
call eax
test eax, eax
je 0x409f41
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
test eax, eax
je 0x409f41
push 7
lea ecx, [esp + 0x15]
push ecx
mov ecx, dword [ebp + 0x54]
call fcn.00417a10
test eax, eax
je 0x409f1c
push str.._vncClient.cpp:_tFileUploadRequest_message_received_n
push 9
push 0x457788
call fcn.00401860
mov dx, word [esp + 0x1e]
mov eax, dword [esp + 0x20]
add esp, 0xc
rol dx, 8
mov word [esp + 0x12], dx
mov ecx, eax
mov edx, eax
shr edx, 0x10
and ecx, 0xff0000
or ecx, edx
mov edx, eax
shl edx, 0x10
and eax, 0xff00
or edx, eax
shr ecx, 8
shl edx, 8
or ecx, edx
mov dword [esp + 0x14], ecx
call fcn.00416430
test al, al
mov ecx, dword [ebp + 0x54]
jne 0x409945
movzx eax, word [esp + 0x12]
push eax
push 0
call fcn.00417a10
mov ecx, 8
mov esi, str.Cannot_impersonate_logged_on_user
lea edi, [esp + 0x14c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14c]
movsw word es:[edi], word [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409924
lea ecx, [esp + 0x14c]
push ecx
mov ecx, dword [ebp + 0x5c]
sub eax, edx
push eax
call fcn.00407910
jmp 0x409f1c
mov ax, word [esp + 0x12]
cmp ax, 0x104
movzx edx, ax
push edx
jbe 0x4099a1
push 0
call fcn.00417a10
mov ecx, 8
mov esi, str.Path_length_exceeds_MAX_PATH_value
lea edi, [esp + 0x194]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x194]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
jmp 0x409980
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409980
lea ecx, [esp + 0x194]
push ecx
mov ecx, dword [ebp + 0x5c]
sub eax, edx
push eax
call fcn.00407910
jmp 0x409f17
mov eax, dword [ebp + 0x5c]
add eax, 0x110
push eax
call fcn.00417a10
movzx ecx, word [esp + 0x12]
mov edx, dword [ebp + 0x5c]
mov byte [ecx + edx + 0x110], 0
mov eax, dword [ebp + 0x5c]
add eax, 0x110
push eax
mov ecx, ebp
call fcn.004078a0
mov ecx, dword [ebp + 0x5c]
add ecx, 0x110
push ecx
push str.._vncClient.cpp:_tfile_upload_requested:__s_n
push 1
push 0x457788
call fcn.00401860
mov edx, dword [ebp + 0x5c]
add esp, 0x10
push ebx
push 0x8000000
push 2
push ebx
push 3
push 0x40000000
add edx, 0x110
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0x5c]
mov dword [ecx + 0x10c], eax
mov edx, dword [ebp + 0x5c]
mov dword [edx + 0x100], 1
mov eax, dword [ebp + 0x5c]
cmp dword [eax + 0x10c], 0xffffffff
jne 0x409f17
mov eax, dword [0x447108]
mov edx, dword [0x447104]
mov ecx, dword [str.Could_not_create_file]
mov dword [esp + 0xe0], eax
mov ax, word [0x447114]
mov dword [esp + 0xdc], edx
mov edx, dword [0x447110]
mov dword [esp + 0xd8], ecx
mov ecx, dword [0x44710c]
mov word [esp + 0xec], ax
lea eax, [esp + 0xd8]
mov dword [esp + 0xe8], edx
mov dword [esp + 0xe4], ecx
lea edx, [eax + 1]
jmp 0x409a90
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409a90
lea ecx, [esp + 0xd8]
push ecx
mov ecx, dword [ebp + 0x5c]
sub eax, edx
push eax
call fcn.00407910
jmp 0x409f17
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c0]
call eax
test eax, eax
je 0x409f41
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
test eax, eax
je 0x409f41
push 5
lea ecx, [esp + 0x15]
push ecx
mov ecx, dword [ebp + 0x54]
call fcn.00417a10
test eax, eax
je 0x409f1c
push str.._vncClient.cpp:_tFileUploadData_message_received_n
push 9
push 0x457788
call fcn.00401860
mov dx, word [esp + 0x1e]
mov ax, word [esp + 0x20]
add esp, 0xc
rol dx, 8
rol ax, 8
mov word [esp + 0x12], dx
mov word [esp + 0x14], ax
call fcn.00416430
test al, al
mov ax, word [esp + 0x14]
jne 0x409b99
cmp word [esp + 0x12], bx
jne 0x409b3d
cmp ax, bx
jne 0x409b3d
push 4
jmp 0x409b41
movzx ecx, ax
push ecx
mov ecx, dword [ebp + 0x54]
push ebx
call fcn.00417a10
mov ecx, 8
mov esi, str.Cannot_impersonate_logged_on_user
lea edi, [esp + 0x128]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x128]
movsw word es:[edi], word [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409b70
mov ecx, dword [ebp + 0x5c]
sub eax, edx
lea edx, [esp + 0x128]
push edx
push eax
call fcn.00407910
mov ecx, dword [ebp + 0x5c]
call fcn.00407c20
jmp 0x409f1c
cmp word [esp + 0x12], bx
jne 0x409c71
cmp ax, bx
jne 0x409c71
mov ecx, dword [ebp + 0x54]
push 4
lea eax, [esp + 0x84]
push eax
call fcn.00417a10
mov ecx, dword [esp + 0x80]
mov esi, dword [ebp + 0x5c]
mov eax, ecx
mov edx, ecx
shr edx, 0x10
and eax, 0xff0000
or eax, edx
mov edx, ecx
and ecx, 0xff00
shl edx, 0x10
or edx, ecx
shr eax, 8
shl edx, 8
lea ecx, [esp + 0xc8]
or eax, edx
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x88], eax
call fcn.004079c0
lea edx, [esp + 0xc8]
push edx
mov eax, edx
push eax
mov ecx, edx
mov edx, dword [esi + 0x10c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x409c36
push str.._vncClient.cpp:_tSetFileTime___failed_n
push 9
push 0x457788
call fcn.00401860
add esp, 0xc
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x5c]
mov dword [edx + 0x100], ebx
mov eax, dword [ebp + 0x5c]
add eax, 0x110
push eax
push str.._vncClient.cpp:_tfile_upload_complete:__s__n
push 1
push 0x457788
call fcn.00401860
add esp, 0x10
jmp 0x409f17
movzx ecx, ax
push ecx
call fcn.00432007
movzx edx, word [esp + 0x18]
mov ecx, dword [ebp + 0x54]
add esp, 4
mov esi, eax
push edx
push esi
call fcn.00417a10
cmp byte [esp + 0x11], 0
je 0x409ce9
push esi
call fcn.00432002
mov ecx, 0xc
mov esi, str.Server_does_not_support_data_compression_on_upload
lea edi, [esp + 0x320]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x320]
add esp, 4
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409cc0
lea ecx, [esp + 0x31c]
push ecx
mov ecx, dword [ebp + 0x5c]
sub eax, edx
push eax
call fcn.00407910
mov ecx, dword [ebp + 0x5c]
call fcn.00407c20
jmp 0x409f17
movzx eax, word [esp + 0x14]
mov ecx, dword [ebp + 0x5c]
push ebx
lea edx, [esp + 0x78]
push edx
mov edx, dword [ecx + 0x10c]
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call fcn.00432002
movzx eax, word [esp + 0x18]
add esp, 4
cmp dword [esp + 0x74], eax
jne 0x409d24
cmp edi, ebx
jne 0x409f1c
mov eax, dword [0x447034]
mov edx, dword [0x447030]
mov ecx, dword [str.Error_writing_file_data]
mov dword [esp + 0xf8], eax
mov eax, dword [0x447040]
mov dword [esp + 0xf4], edx
mov edx, dword [0x44703c]
mov dword [esp + 0xf0], ecx
mov ecx, dword [0x447038]
mov dword [esp + 0x104], eax
lea eax, [esp + 0xf0]
mov dword [esp + 0x100], edx
mov dword [esp + 0xfc], ecx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409d80
lea ecx, [esp + 0xf0]
jmp 0x409cd0
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c0]
call eax
test eax, eax
je 0x409f41
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
test eax, eax
je 0x409f41
push 3
lea ecx, [esp + 0x15]
push ecx
mov ecx, dword [ebp + 0x54]
call fcn.00417a10
test eax, eax
je 0x409f1c
push str.._vncClient.cpp:_tFileDownloadCancel_message_received_n
push 9
push 0x457788
call fcn.00401860
call fcn.00416430
mov ax, word [esp + 0x1e]
rol ax, 8
movzx edx, ax
add edx, 1
push edx
mov word [esp + 0x22], ax
call fcn.00432007
mov ecx, dword [ebp + 0x54]
mov esi, eax
movzx eax, word [esp + 0x22]
add esp, 0x10
push eax
push esi
call fcn.00417a10
movzx ecx, word [esp + 0x12]
mov byte [ecx + esi], 0
mov ecx, dword [ebp + 0x5c]
call fcn.00407c20
jmp 0x409f0e
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c0]
call eax
test eax, eax
je 0x409f41
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
test eax, eax
je 0x409f41
push 3
lea ecx, [esp + 0x15]
push ecx
mov ecx, dword [ebp + 0x54]
call fcn.00417a10
test eax, eax
je 0x409f1c
push str.._vncClient.cpp:_tFileUploadFailed_message_received_n
jmp 0x409dd8
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c0]
call eax
test eax, eax
je 0x409f41
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
test eax, eax
je 0x409f41
push 3
lea ecx, [esp + 0x15]
push ecx
mov ecx, dword [ebp + 0x54]
call fcn.00417a10
test eax, eax
je 0x409f1c
push str.._vncClient.cpp:_tFileCreateDirRequest_message_received_n
push 9
push 0x457788
call fcn.00401860
call fcn.00416430
mov ax, word [esp + 0x1e]
rol ax, 8
movzx edx, ax
add edx, 1
push edx
mov word [esp + 0x22], ax
call fcn.00432007
mov ecx, dword [ebp + 0x54]
mov esi, eax
movzx eax, word [esp + 0x22]
add esp, 0x10
push eax
push esi
call fcn.00417a10
movzx ecx, word [esp + 0x12]
mov byte [ecx + esi], 0
push esi
mov ecx, ebp
call fcn.004078a0
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call fcn.00432002
add esp, 4
call fcn.004164b0
xor ebx, ebx
cmp dword [esp + 0x40], ebx
je 0x409f41
jmp 0x4084ee
movzx edx, cl
push edx
push str.._vncClient.cpp:_tinvalid_message_received_:__d_n
push 1
push 0x457788
call fcn.00401860
add esp, 0x10
mov eax, dword [esp + 0xc4]
push eax
call fcn.00415930
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x54]
add esp, 4
mov esi, ecx
call eax
mov edx, dword [esi]
movsx ecx, ax
mov eax, dword [edx + 0x4c]
push ecx
mov ecx, esi
call eax
push eax
push str.._vncClient.cpp:_tclient_disconnected_:__s__id__hd__n
push 1
push 0x457788
call fcn.00401860
add esp, 0x14
mov ecx, dword [ebp + 0x58]
mov esi, dword [ecx]
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x54]
add esi, 0x44
call eax
mov ecx, dword [ebp + 0x58]
mov edx, dword [esi]
push eax
call edx
mov ecx, dword [esp + 0x494]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4