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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
test byte [0x6c147174], 8
jne 0x6c1084c0
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 - 0x2c]
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 0x6c108453
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x30]
mov eax, ebx
call sym._FTP_SendRetrieve
mov edi, eax
test eax, eax
jne 0x6c108478
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
jne 0x6c108460
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 0x6c10844f
mov dword [ebp - 0x20], edi
xor eax, eax
test edi, edi
je 0x6c108618
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
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 0x6c1084a0
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 0x6c108404
lea edx, [ebp - 0x24]
mov eax, ebx
call sym._FTP_GetDataSocket
test eax, eax
jne 0x6c108508
xor edi, edi
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
je 0x6c108404
jmp 0x6c108460
mov eax, dword [ebp - 0x2c]
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 - 0x30]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x6c149ae0
mov dword [esp + 8], str.FTP_FtpGetFileW
mov dword [esp + 4], 0x6c147174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x6c10838e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
test byte [0x6c147174], 8
jne 0x6c108630
mov dword [esp + 4], 1
mov dword [esp], 0x2000
call dword [sym.imp.ucrtbase.dll_calloc]
mov edi, eax
test eax, eax
je 0x6c108689
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x34]
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 0x6c108590
test eax, eax
je 0x6c108628
lea ecx, [ebp - 0x20]
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 0x6c108540
mov ebx, dword [ebp - 0x30]
test byte [0x6c147174], 8
jne 0x6c108660
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x24]
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 0x6c10848a
mov edi, 1
cmp eax, 0xe2
je 0x6c1083fc
mov edx, 0x2efe
cmp eax, 0x1aa
je 0x6c108604
mov edx, 0x2eef
cmp eax, 0x212
je 0x6c108604
cmp eax, 0x1a9
mov edx, 0x2ee3
mov eax, 0x2efd
cmove edx, eax
mov dword [esp], edx
xor edi, edi
call sym._INTERNET_SetLastError
jmp 0x6c10848c
call sym._INTERNET_GetLastError
jmp 0x6c108426
mov ebx, dword [ebp - 0x30]
jmp 0x6c1085a0
mov dword [esp + 0xc], 0x6c149824
mov dword [esp + 8], str.FTP_RetrieveFileData
mov dword [esp + 4], 0x6c147174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x6c10851b
mov dword [esp + 0xc], str.Data_transfer_complete_n
mov dword [esp + 8], str.FTP_RetrieveFileData
mov dword [esp + 4], 0x6c147174
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x6c1085a0
mov dword [esp], 0xe
call sym._INTERNET_SetLastError
jmp 0x6c1085a9