Function at 0x1009f330
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 0x101a8aed
mov eax, dword fs:[0]
push eax
mov eax, 0x2030
call fcn.101742d0
mov eax, dword [0x1022c684]
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 0x1009f399
mov byte [ebp - 0x2031], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10005e00
mov al, byte [ebp - 0x2031]
jmp 0x1009f693
lea ecx, [ebp + 8]
call fcn.10004400
movzx ecx, al
test ecx, ecx
je 0x1009f3c9
mov byte [ebp - 0x2032], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10005e00
mov al, byte [ebp - 0x2032]
jmp 0x1009f693
push 0x1e
push 0x5c
lea ecx, [ebp + 8]
call fcn.1009f6e0
add eax, 1
push eax
lea edx, [ebp - 0x202c]
push edx
lea ecx, [ebp + 8]
call fcn.1000c400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x202c]
call fcn.10004400
movzx eax, al
test eax, eax
je 0x1009f42e
mov byte [ebp - 0x2033], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x202c]
call fcn.10005e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10005e00
mov al, byte [ebp - 0x2033]
jmp 0x1009f693
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp + 8]
call fcn.100043a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2028], eax
cmp dword [ebp - 0x2028], 0xffffffff
jne 0x1009f48e
mov byte [ebp - 0x2034], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x202c]
call fcn.10005e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10005e00
mov al, byte [ebp - 0x2034]
jmp 0x1009f693
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 0x1009f4e3
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.10005e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10005e00
mov al, byte [ebp - 0x2035]
jmp 0x1009f693
mov eax, dword [ebp - 0x203c]
cmp dword [eax], 0
je 0x1009f505
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.100043a0
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 0x1009f563
mov byte [ebp - 0x2036], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x202c]
call fcn.10005e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10005e00
mov al, byte [ebp - 0x2036]
jmp 0x1009f693
mov byte [ebp - 0x2024], 0
push 0x1fff
push 0
lea eax, [ebp - 0x2023]
push eax
call fcn.1016f6c0
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 0x1009f5c1
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 0x1009f651
cmp dword [ebp - 0x10], 0
jbe 0x1009f651
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 0x1009f613
cmp dword [ebp - 0x2030], 0
ja 0x1009f615
jmp 0x1009f651
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 0x1009f64c
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 0x1009f5c1
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.10005e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10005e00
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.1016f6a2
mov esp, ebp
pop ebp
ret 4