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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b221b
mov eax, dword fs:[0]
push eax
sub esp, 0xc58
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xc64]
mov ecx, 0x316
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x616870]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 0
mov ecx, dword [ebp - 0x18]
call fcn.00418580
test eax, eax
jne 0x418e8b
or eax, 0xffffffff
jmp 0x4192dc
push 0x104
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.00545490
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x418f1c
push 0
lea ecx, [ebp - 0x43c]
call fcn.0041c820
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x43c]
call fcn.0041cb80
test eax, eax
je 0x418eec
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x5c1458
lea edx, [ebp - 0x124]
push edx
call fcn.00544ff0
add esp, 0x10
jmp 0x418f08
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str._s_s
lea edx, [ebp - 0x124]
push edx
call fcn.00544ff0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call fcn.0041c910
jmp 0x418f34
mov eax, dword [ebp + 8]
push eax
push 0x5c158c
lea ecx, [ebp - 0x124]
push ecx
call fcn.00544ff0
add esp, 0xc
push 0x5c159c
lea eax, [ebp - 0x124]
push eax
call fcn.00545e80
add esp, 8
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
je 0x418fa9
call fcn.0054cb70
mov eax, dword [eax]
push eax
call fcn.0054c750
add esp, 4
push eax
call fcn.0054cb70
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x124]
push edx
push str.____File_is_already_exsit____s__errno__d__errstr__s_n
call fcn.0054b370
add esp, 0x10
mov eax, dword [ebp - 0x448]
push eax
call fcn.00545a60
add esp, 4
mov esi, esp
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.00544880
push 0x104
push 0
lea eax, [ebp - 0x554]
push eax
call fcn.00545490
add esp, 0xc
lea eax, [ebp - 0x554]
push eax
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0xd0]
call fcn.00415a30
test eax, eax
jge 0x418fe0
or eax, 0xffffffff
jmp 0x4192dc
push 0x104
push 0
lea eax, [ebp - 0x660]
push eax
call fcn.00545490
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x554]
push ecx
push 0x5c1458
lea edx, [ebp - 0x660]
push edx
call fcn.00544ff0
add esp, 0x10
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0xd0]
call fcn.004154e0
test eax, eax
jge 0x419033
or eax, 0xffffffff
jmp 0x4192dc
lea eax, [ebp - 0x660]
push eax
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0xd0]
call fcn.00415640
mov dword [ebp - 0x66c], eax
cmp dword [ebp - 0x66c], 0
jg 0x41905f
or eax, 0xffffffff
jmp 0x4192dc
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00418790
push 0x100
push 0
lea eax, [ebp - 0x774]
push eax
call fcn.00545490
add esp, 0xc
lea eax, [ebp - 0x660]
push eax
push str.RETR__s
lea ecx, [ebp - 0x774]
push ecx
call fcn.00544ff0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xd4]
push ecx
lea edx, [ebp - 0x774]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xd0]
call fcn.004158e0
test eax, eax
jge 0x4190db
mov ecx, dword [ebp - 0x18]
call fcn.004188f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xd0]
call fcn.00415830
or eax, 0xffffffff
jmp 0x4192dc
push 0x5c1e1c
lea eax, [ebp - 0x124]
push eax
call fcn.00545e80
add esp, 8
mov dword [ebp - 0x780], eax
cmp dword [ebp - 0x780], 0
jne 0x419149
call fcn.0054cb70
mov eax, dword [eax]
push eax
call fcn.0054c750
add esp, 4
push eax
call fcn.0054cb70
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x124]
push edx
push str.____File_is_exsit____s__errno__d__errstr__s_n
call fcn.0054b370
add esp, 0x10
mov ecx, dword [ebp - 0x18]
call fcn.004188f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xd0]
call fcn.00415830
or eax, 0xffffffff
jmp 0x4192dc
push 0x400
push 0
lea eax, [ebp - 0xb88]
push eax
call fcn.00545490
add esp, 0xc
mov dword [ebp - 0xb94], 0
mov dword [ebp - 0xba0], 0
mov eax, 1
test eax, eax
je 0x419296
mov eax, dword [ebp - 0xb94]
cmp eax, dword [ebp - 0x66c]
jl 0x419193
jmp 0x419296
push 0x3ff
lea eax, [ebp - 0xb88]
push eax
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0xd4]
call fcn.004183d0
mov dword [ebp - 0xba0], eax
cmp dword [ebp - 0xba0], 0
jge 0x41920c
mov eax, dword [ebp - 0xba0]
push eax
push str.____Recv_Error_On_download_Files____d_n
call fcn.0054b370
add esp, 8
mov eax, dword [ebp - 0x780]
push eax
call fcn.00545a60
add esp, 4
lea eax, [ebp - 0x124]
push eax
call fcn.0054c6e0
add esp, 4
mov ecx, dword [ebp - 0x18]
call fcn.004188f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xd0]
call fcn.00415830
or eax, 0xffffffff
jmp 0x4192dc
cmp dword [ebp - 0xba0], 0
jle 0x419234
mov eax, dword [ebp - 0x780]
push eax
mov ecx, dword [ebp - 0xba0]
push ecx
push 1
lea edx, [ebp - 0xb88]
push edx
call fcn.0054c200
add esp, 0x10
mov eax, dword [ebp - 0xb94]
add eax, dword [ebp - 0xba0]
mov dword [ebp - 0xb94], eax
push 0x400
push 0
lea eax, [ebp - 0xb88]
push eax
call fcn.00545490
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp dword [eax + 8], 0
je 0x419272
push 0x5c4254
call fcn.0054b370
add esp, 4
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0
jle 0x419291
mov esi, esp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00544880
jmp 0x419173
push 0x5c4250
call fcn.0054b370
add esp, 4
mov eax, dword [ebp - 0x780]
push eax
call fcn.00545a60
add esp, 4
mov eax, dword [ebp - 0xb94]
push eax
push str.TOTAL_LENGTH_from_DATA_CONNECTION____d_bytes_n
call fcn.0054b370
add esp, 8
mov ecx, dword [ebp - 0x18]
call fcn.004188f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xd0]
call fcn.00415830
push edx
mov ecx, ebp
push eax
lea edx, [0x419318]
call fcn.005448b0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544870
add esp, 0xc64
cmp ebp, esp
call fcn.00544880
mov esp, ebp
pop ebp
ret 0xc