Function at 0x419530
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x234
mov eax, dword [0x44b754]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x248]
push ebp
push esi
mov esi, dword [esp + 0x248]
push edi
mov edi, dword [esp + 0x248]
test edi, edi
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x250]
mov ebp, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
je 0x4195bc
test esi, esi
je 0x4195bc
mov edx, dword [ebp]
call dword [edx + 0xc]
test al, al
jne 0x4195bc
push edi
push str.Getting_file___s_...
push 0x44c660
call fcn.00401330
mov al, byte [esp + 0x264]
add esp, 0xc
test al, al
je 0x4195d9
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x1c]
test al, al
jne 0x4195d9
push str.restarting_file_transfer_is_not_supported.
push 0x44c660
call fcn.00401330
add esp, 8
xor al, al
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042baa4
add esp, 0x234
ret 0x14
mov al, byte [esp + 0x258]
xor ecx, ecx
test al, al
setne cl
push 0
push 0
lea ecx, [ecx + ecx + 2]
push ecx
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x41961e
push esi
push str.Fail_to_open_local_file_:___s_
push 0x44c660
call fcn.00401330
add esp, 0xc
jmp 0x4195bc
xor eax, eax
mov ecx, 0x85
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x30]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x419637
lea edx, [esp + 0x134]
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x419650
push 0x10000
mov dword [esp + 0x30], ebx
call fcn.0042a127
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 3
mov byte [esp + 0x13], 0
mov edi, edi
mov edx, dword [ebp]
push edi
mov ecx, ebp
mov byte [esp + 0x16], 1
call dword [edx + 0x10]
xor ebx, ebx
test al, al
je 0x4197e7
mov al, byte [esp + 0x258]
test al, al
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x238], ebx
push ebx
je 0x419773
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x4196fd
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp]
push esi
mov ecx, ebp
call dword [eax + 0x20]
test al, al
je 0x4197f2
push esi
push str.resuming_file_transfer_at_pos_:__u
push 0x44c660
call fcn.00401330
add esp, 0xc
mov dword [esp + 0x23c], esi
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x419717
lea edx, [esp + 0x2c]
push edx
call eax
add esp, 4
test al, al
je 0x419789
mov eax, dword [ebp]
lea ecx, [esp + 0x238]
push ecx
push 0x10000
push esi
mov ecx, ebp
mov dword [esp + 0x244], ebx
call dword [eax + 0x18]
test al, al
je 0x4197a7
mov eax, dword [esp + 0x238]
cmp eax, ebx
je 0x4197ac
push ebx
lea edx, [esp + 0x2c]
push edx
push eax
push esi
push edi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419795
mov ecx, dword [esp + 0x23c]
mov eax, dword [esp + 0x238]
add ecx, eax
mov dword [esp + 0x23c], ecx
jmp 0x419701
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x14]
jmp 0x419701
mov byte [esp + 0x12], 1
mov byte [esp + 0x13], 1
jmp 0x4197ac
push str.Fail_to_write_file_while_getting_file.
push 0x44c660
call fcn.00401330
add esp, 8
mov byte [esp + 0x12], 0
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x14]
mov al, byte [esp + 0x13]
test al, al
jne 0x4197fb
mov al, byte [esp + 0x12]
test al, al
jne 0x4197fb
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jle 0x4197fb
mov ecx, eax
dec ecx
push 0x3e8
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x20]
jmp 0x419680
mov edi, dword [esp + 0x14]
mov byte [esp + 0x12], 0
jmp 0x4197c4
mov esi, dword [esp + 0x18]
mov byte [esp + 0x12], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042bb4d
mov al, byte [esp + 0x16]
add esp, 4
jmp 0x4195be