Function at 0x4144a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4712b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48ea40]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push str.._vncclient.cpp_:_SendFileChunk_..._n
push 9
push 0x490660
call fcn.00401810
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
add esp, 0xc
mov ecx, esi
mov bl, 1
call edx
mov ebp, eax
push ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi + 0x456], 0
mov dword [esp + 0x38], 0
je 0x4147f2
cmp byte [esi + 0x444], 0
jne 0x4147d7
cmp byte [esi + 0x455], 0
jne 0x4147d7
mov eax, dword [esi + 0x2d8]
mov ecx, dword [esi + 0x440]
push 0
lea edi, [esi + 0x448]
push edi
push 0x2000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414603
cmp dword [edi], eax
je 0x414558
mov byte [esi + 0x455], bl
mov ecx, dword [esi + 0x458]
test ecx, ecx
je 0x414618
mov eax, dword [esi + 0x45c]
cmp eax, dword [esi + 0x460]
jge 0x414618
mov ebp, dword [eax + ecx]
test ebp, ebp
je 0x414618
push 0
add eax, 4
push 0
push 0
mov dword [esi + 0x45c], eax
call fcn.00454550
mov edx, dword [edi]
mov ecx, dword [esi + 0x2d8]
push edx
push ecx
push eax
call fcn.00454550
add esp, 0x18
cmp eax, ebp
jne 0x414618
mov eax, dword [edi]
movzx ecx, byte [esi + 0x44b]
mov edx, eax
shl edx, 0x10
mov dword [esp + 0x18], eax
and eax, 0xff00
or edx, eax
xor eax, eax
mov ah, byte [esp + 0x1a]
shl edx, 8
push 7
push 0xc
mov byte [esp + 0x2c], 7
mov byte [esp + 0x2d], 5
mov dword [esp + 0x30], 0x2000000
or edx, eax
or edx, ecx
mov ecx, dword [esi + 0xf0]
mov dword [esp + 0x34], edx
lea edx, [esp + 0x2c]
push edx
call fcn.0044a1f0
jmp 0x41475c
cmp dword [edi], 0
jne 0x414558
mov byte [esi + 0x444], 1
jmp 0x41478b
xor bl, bl
cmp byte [esi + 0x454], bl
mov ebp, 0x2400
mov dword [esp + 0x1c], ebp
je 0x414680
mov eax, dword [edi]
mov ecx, dword [esi + 0x2d8]
push eax
mov eax, dword [esi + 0x2dc]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00454880
add esp, 0x10
test eax, eax
je 0x41467a
push eax
push str.._vncclient.cpp_:_Compress_returned_error_in_File_Send_:_d_n
push 9
push 0x490660
call fcn.00401810
add esp, 0x10
mov ecx, esi
mov byte [esi + 0x455], 1
call fcn.00413290
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x4147f3
mov ebp, dword [esp + 0x1c]
mov bl, 1
mov eax, dword [edi]
cmp ebp, eax
mov dword [esp + 0x18], eax
jbe 0x41468c
xor bl, bl
mov dl, bl
neg dl
mov byte [esp + 0x24], 7
mov byte [esp + 0x25], 5
sbb edx, edx
and edx, 0x1000000
test bl, bl
mov dword [esp + 0x28], edx
je 0x4146d3
mov eax, ebp
mov ecx, ebp
mov edx, ebp
and eax, 0xff0000
shl edx, 0x10
shr ecx, 0x10
and ebp, 0xff00
or eax, ecx
or edx, ebp
shr eax, 8
shl edx, 8
or eax, edx
mov dword [esp + 0x2c], eax
jmp 0x4146f7
xor edx, edx
mov dh, byte [esp + 0x1a]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
or ecx, eax
movzx eax, byte [esi + 0x44b]
shl ecx, 8
or ecx, edx
or ecx, eax
mov dword [esp + 0x2c], ecx
push 7
push 0xc
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0xf0]
call fcn.0044a1f0
cmp eax, 0xffffffff
sete al
test al, al
mov byte [esp + 0x17], al
je 0x414740
test bl, bl
je 0x41472b
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x2dc]
push edx
push eax
jmp 0x414735
mov ecx, dword [edi]
mov edx, dword [esi + 0x2d8]
push ecx
push edx
mov ecx, dword [esi + 0xf0]
call fcn.00449cc0
movzx eax, bl
push eax
push str.._vncclient.cpp_:_SendFileChunk_:_fCompressed_d__n
push 9
push 0x490660
call fcn.00401810
mov bl, byte [esp + 0x27]
add esp, 0x10
mov ecx, dword [edi]
add dword [esi + 0x44c], ecx
mov eax, dword [esi + 0x44c]
movzx edx, bl
push edx
push eax
push str.._vncclient.cpp_:_SendFileChunk_:_TotalNbBytesRead_ld__connected_d__n
push 9
push 0x490660
call fcn.00401810
mov ebp, dword [esp + 0x34]
add esp, 0x14
test bl, bl
je 0x4147ba
mov eax, dword [0x4a5488]
push 0
push esi
push eax
call fcn.00447b50
add esp, 0xc
test eax, eax
jne 0x4147ba
push str.._vncclient.cpp_:_SendFileChunk_:_Post_FileTransferSendPacketMessage_failed_____________n
push eax
push 0x490660
call fcn.00401810
add esp, 0xc
mov ecx, esi
call fcn.00414480
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, esi
call fcn.00413290
push str.._vncclient.cpp_:_SendFileChunk_...DONE_n
push 9
push 0x490660
call fcn.00401810
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret