Function at 0x1009b9c0
Capabilities:
Get file size
Read and send data from client to server
Read file on windows
Send data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019ec2d
mov eax, dword fs:[0]
push eax
mov eax, 0x2030
call fcn.10166520
mov eax, dword [0x10222354]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x203c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x203c]
cmp dword [eax + 8], 0
jne 0x1009ba29
mov byte [ebp - 0x2031], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000ba80
mov al, byte [ebp - 0x2031]
jmp 0x1009bd23
lea ecx, [ebp + 8]
call fcn.10008000
movzx ecx, al
test ecx, ecx
je 0x1009ba59
mov byte [ebp - 0x2032], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000ba80
mov al, byte [ebp - 0x2032]
jmp 0x1009bd23
push 0x1e
push 0x5c
lea ecx, [ebp + 8]
call fcn.1009bd70
add eax, 1
push eax
lea edx, [ebp - 0x202c]
push edx
lea ecx, [ebp + 8]
call fcn.10010ff0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x202c]
call fcn.10008000
movzx eax, al
test eax, eax
je 0x1009babe
mov byte [ebp - 0x2033], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x202c]
call fcn.1000ba80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000ba80
mov al, byte [ebp - 0x2033]
jmp 0x1009bd23
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp + 8]
call fcn.10007fa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2028], eax
cmp dword [ebp - 0x2028], 0xffffffff
jne 0x1009bb1e
mov byte [ebp - 0x2034], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x202c]
call fcn.1000ba80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000ba80
mov al, byte [ebp - 0x2034]
jmp 0x1009bd23
push 0
mov ecx, dword [ebp - 0x2028]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1009bb73
mov edx, dword [ebp - 0x2028]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x2035], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x202c]
call fcn.1000ba80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000ba80
mov al, byte [ebp - 0x2035]
jmp 0x1009bd23
mov eax, dword [ebp - 0x203c]
cmp dword [eax], 0
je 0x1009bb95
mov ecx, dword [ebp - 0x203c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x203c]
mov ecx, dword [eax]
mov edx, dword [edx]
mov eax, dword [edx + 4]
call eax
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x202c]
call fcn.10007fa0
push eax
mov ecx, dword [ebp - 0x203c]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WININET.dll_FtpOpenFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1009bbf3
mov byte [ebp - 0x2036], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x202c]
call fcn.1000ba80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000ba80
mov al, byte [ebp - 0x2036]
jmp 0x1009bd23
mov byte [ebp - 0x2024], 0
push 0x1fff
push 0
lea eax, [ebp - 0x2023]
push eax
call fcn.10166680
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2030], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x203c]
cmp dword [ecx], 0
je 0x1009bc51
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x203c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x203c]
mov ecx, dword [eax]
mov edx, dword [edx]
mov eax, dword [edx]
call eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x2000
lea edx, [ebp - 0x2024]
push edx
mov eax, dword [ebp - 0x2028]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009bce1
cmp dword [ebp - 0x10], 0
jbe 0x1009bce1
lea ecx, [ebp - 0x2030]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x2024]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x1009bca3
cmp dword [ebp - 0x2030], 0
ja 0x1009bca5
jmp 0x1009bce1
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x2030]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x203c]
cmp dword [eax], 0
je 0x1009bcdc
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x203c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x203c]
mov eax, dword [edx]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx]
call eax
jmp 0x1009bc51
mov ecx, dword [ebp - 0x2028]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x2037], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x202c]
call fcn.1000ba80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000ba80
mov al, byte [ebp - 0x2037]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.10165d18
mov esp, ebp
pop ebp
ret 4