Function at 0x10008210
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x34
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
test byte [0x10047174], 8
jne 0x10008360
mov dword [esp], 0
call sym._INTERNET_SetLastError
cmp dword [ebp + 8], 1
mov edx, dword [ebp + 0xc]
mov eax, 1
adc eax, 0
mov dword [esp + 0x18], 0
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x100082f3
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
mov eax, ebx
call sym._FTP_SendRetrieve
mov edi, eax
test eax, eax
jne 0x10008318
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
jne 0x10008300
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebx + 0x40]
sub esp, 4
test byte [eax + 0x13], 0x10
je 0x100082ef
mov dword [ebp - 0x14], edi
xor eax, eax
test edi, edi
je 0x100084b8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x64
mov eax, dword [ebx + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._INTERNET_SendCallback
test edi, edi
je 0x10008340
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_closesocket]
mov dword [ebx + 0x48], 0xffffffff
sub esp, 4
jmp 0x100082a4
lea edx, [ebp - 0x18]
mov eax, ebx
call sym._FTP_GetDataSocket
test eax, eax
jne 0x100083a8
xor edi, edi
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
je 0x100082a4
jmp 0x10008300
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ecx
call sym._wine_dbgstr_wn.constprop.0_1
mov esi, eax
mov eax, dword [ebp - 0x20]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.lpszRemoteFile__s__lpszNewFile__s__n
mov dword [esp + 8], str.FTP_FtpGetFileW
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x1000822e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
test byte [0x10047174], 8
jne 0x100084d0
mov dword [esp + 4], 1
mov dword [esp], 0x2000
call dword [sym.imp.ucrtbase.dll_calloc]
mov edi, eax
test eax, eax
je 0x10008529
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x24]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x2000
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._sock_recv
cmp eax, 0xffffffff
je 0x10008430
test eax, eax
je 0x100084c8
lea ecx, [ebp - 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
jmp 0x100083e0
mov ebx, dword [ebp - 0x20]
test byte [0x10047174], 8
jne 0x10008500
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_closesocket]
mov edx, dword [ebp + 0x14]
mov eax, ebx
sub esp, 4
call sym._FTP_ReceiveResponse
test eax, eax
je 0x1000832a
mov edi, 1
cmp eax, 0xe2
je 0x1000829c
mov edx, 0x2efe
cmp eax, 0x1aa
je 0x100084a4
mov edx, 0x2eef
cmp eax, 0x212
je 0x100084a4
cmp eax, 0x1a9
mov edx, 0x2ee3
mov eax, 0x2efd
cmove edx, eax
mov dword [esp], edx
xor edi, edi
call sym._INTERNET_SetLastError
jmp 0x1000832c
call sym._INTERNET_GetLastError
jmp 0x100082c6
mov ebx, dword [ebp - 0x20]
jmp 0x10008440
mov dword [esp + 0xc], 0x10049824
mov dword [esp + 8], str.FTP_RetrieveFileData
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x100083bb
mov dword [esp + 0xc], str.Data_transfer_complete_n
mov dword [esp + 8], str.FTP_RetrieveFileData
mov dword [esp + 4], 0x10047174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10008440
mov dword [esp], 0xe
call sym._INTERNET_SetLastError
jmp 0x10008449