Function at 0x40f980
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eff1
mov eax, dword fs:[0]
push eax
sub esp, 0xa50
mov eax, dword [0x5c7ed0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa54], esi
mov dword [ebp - 0xa20], ebx
mov dword [ebp - 0xa58], ebx
call fcn.00416b7a
push eax
lea ecx, [ebp - 0xa18]
call fcn.004159f0
push ebx
push edi
lea eax, [ebp - 0xa18]
mov dword [ebp - 4], 0
push str._ZFileTransfer__Download_file_:__s__to___s
push eax
call fcn.004064e0
push dword [ebp - 0xa18]
call fcn.00403d10
add esp, 0x14
mov dword [ebp - 0xa24], 0
lea ecx, [ebp - 0xa50]
call fcn.00417178
cmp byte [esi + 0x124], 0
mov byte [ebp - 4], 1
mov byte [esi + 0x125], 0
jne 0x40fa5c
push str._ZFileTransfer__ERROR_:_Connection_are_not_opened.
call fcn.00403d10
push edi
lea eax, [ebp - 0xa18]
push str._ZFileTransfer__ERROR_:_Failed_download_:__s
push eax
call fcn.004064e0
push dword [ebp - 0xa18]
call fcn.00403d10
add esp, 0x14
jmp 0x40ff82
push ebx
call fcn.00403b80
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xa3c]
call fcn.00402560
lea eax, [ebp - 0xa3c]
mov byte [ebp - 4], 2
push eax
push 0x1001
push ebx
lea ecx, [ebp - 0xa50]
call fcn.00417613
test eax, eax
jne 0x40fb81
push eax
push 0x400
lea ebx, [esi + 0x52c]
push ebx
lea ecx, [ebp - 0xa3c]
call fcn.00416dc4
push str.STR_148
call fcn.004029b0
push eax
push dword [ebp - 0xa20]
push str._s_:__s_n
push ebx
call fcn.0053be46
mov ecx, ebx
add esp, 0x14
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fae0
sub ecx, edx
js 0x40fafe
jmp 0x40faf0
mov al, byte [ebx + ecx]
cmp al, 0x2f
je 0x40fafe
cmp al, 0x5c
je 0x40fafe
dec ecx
jns 0x40faf0
mov edx, ebx
lea eax, [edx + 1]
mov dword [ebp - 0xa24], eax
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x40fb10
sub edx, dword [ebp - 0xa24]
add esi, 0x52d
sub edx, ecx
add esi, ecx
push edx
push esi
push ebx
call fcn.0053c370
push ebx
lea eax, [ebp - 0xa18]
mov byte [esi], 0
push str._ZFileTransfer__ERROR_:__s
push eax
call fcn.004064e0
push dword [ebp - 0xa18]
call fcn.00403d10
push edi
lea eax, [ebp - 0xa18]
push str._ZFileTransfer__ERROR_:_Failed_download_:__s
push eax
call fcn.004064e0
push dword [ebp - 0xa18]
call fcn.00403d10
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x2c
push dword [ebp - 0xa20]
call eax
jmp 0x40ff6a
lea eax, [edi + 1]
push eax
lea eax, [esi + 0x227]
push eax
lea eax, [ebp - 0x214]
push str.__s_s
push eax
call fcn.0053be46
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0x214]
add esp, 0x10
mov byte [ebp - 4], 3
push 0x24200000
push 0
push 0
push 1
push 0
push eax
push 1
call fcn.00428f75
mov ebx, eax
mov dword [ebp - 0xa24], ebx
test ebx, ebx
jne 0x40fc25
lea eax, [ebp - 0xa18]
push str._ZFileTransfer__ERROR_:_Cannot_open_remote_file.
push eax
call fcn.004064e0
add esp, 8
push dword [ebp - 0xa18]
call fcn.00403d10
add esp, 4
lea eax, [ebp - 0xa18]
push edi
push str._ZFileTransfer__ERROR_:_Failed_download_:__s
push eax
call fcn.004064e0
add esp, 0xc
push dword [ebp - 0xa18]
call fcn.00403d10
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 4
push dword [ebp - 0xa20]
call eax
jmp 0x40ff6a
push 0
push 0
push 0
push 0
mov ecx, ebx
call fcn.00429403
lea eax, [ebp - 0xa1c]
mov ecx, ebx
push eax
call fcn.0042901d
mov eax, dword [ebp - 0xa1c]
cmp eax, 0x191
jne 0x40fc7b
lea eax, [ebp - 0xa18]
push str._ZFileTransfer__ERROR_:_Access_denied.
push eax
call fcn.004064e0
add esp, 8
push dword [ebp - 0xa18]
call fcn.00403d10
add esp, 4
push str.STR_143
jmp 0x40fd59
cmp eax, 0x194
jne 0x40fcae
lea eax, [ebp - 0xa18]
push str._ZFileTransfer__ERROR_:_File_not_found.
push eax
call fcn.004064e0
add esp, 8
push dword [ebp - 0xa18]
call fcn.00403d10
add esp, 4
push str.STR_144
jmp 0x40fd59
cmp eax, 0x12c
jb 0x40fce5
cmp eax, 0x190
jae 0x40fcec
lea eax, [ebp - 0xa18]
push str._ZFileTransfer__ERROR_:_Information_error.
push eax
call fcn.004064e0
add esp, 8
push dword [ebp - 0xa18]
call fcn.00403d10
add esp, 4
push str.STR_145
jmp 0x40fd59
cmp eax, 0x190
jb 0x40fd1c
cmp eax, 0x1f4
jae 0x40fd27
lea eax, [ebp - 0xa18]
push str._ZFileTransfer__ERROR_:_File_request_error.
push eax
call fcn.004064e0
add esp, 8
push dword [ebp - 0xa18]
call fcn.00403d10
add esp, 4
push str.STR_146
jmp 0x40fd59
cmp eax, 0x1f4
jb 0x40fdba
cmp eax, 0x258
jae 0x40fdba
lea eax, [ebp - 0xa18]
push str._ZFileTransfer__ERROR_:_Server_error.
push eax
call fcn.004064e0
add esp, 8
push dword [ebp - 0xa18]
call fcn.00403d10
add esp, 4
push str.STR_147
call fcn.004029b0
add esp, 4
push eax
push dword [ebp - 0xa1c]
lea eax, [esi + 0x52c]
push str.__03u___s_n
push eax
call fcn.0053be46
add esp, 0x10
lea eax, [ebp - 0xa18]
push edi
push str._ZFileTransfer__ERROR_:_Failed_download_:__s
push eax
call fcn.004064e0
add esp, 0xc
push dword [ebp - 0xa18]
call fcn.00403d10
add esp, 4
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 4]
push dword [ebp - 0xa20]
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call eax
jmp 0x40ff6a
lea ecx, [esi + 0x1c]
sub ecx, edi
nop
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x40fdc0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x11c], eax
mov dword [esi + 0x120], 0
mov dword [ebp - 0xa28], 0
lea ebx, [ebx]
mov eax, dword [ebx]
lea ecx, [ebp - 0xa14]
push 0x800
push ecx
mov ecx, ebx
call dword [eax + 0x38]
mov edi, eax
lea ecx, [ebp - 0xa50]
push edi
lea eax, [ebp - 0xa14]
push eax
call fcn.004179a0
add dword [ebp - 0xa28], edi
add dword [esi + 0x120], edi
test edi, edi
je 0x40fe31
cmp byte [esi + 0x125], 0
je 0x40fdf0
cmp byte [esi + 0x125], 0
mov dword [ebp - 4], 2
je 0x40fe6c
push str._ZFileTransfer__Stop_download.
call fcn.00403d10
add esp, 4
mov byte [esi + 0x125], 0
lea ecx, [ebp - 0xa50]
call fcn.004173cd
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x50]
jmp 0x40fd9f
push str._ZFileTransfer__Download_successfully_complete.
call fcn.00403d10
add esp, 4
lea ecx, [ebp - 0xa50]
call fcn.004173cd
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x50]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 4]
mov ecx, dword [ebp - 0xa2c]
mov byte [esi + 0x1c], 0
mov dword [esi + 0x120], 0
mov dword [esi + 0x11c], 0
lea ecx, [ecx - 0x10]
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
call fcn.00402990
lea ecx, [ebp - 0xa50]
mov byte [ebp - 4], 0
call fcn.0041719f
mov ecx, dword [ebp - 0xa18]
lea ecx, [ecx - 0x10]
call fcn.00402990
mov al, 1
jmp 0x40ffa1
mov ecx, dword [ebp - 0xa2c]
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea ecx, [ecx - 0x10]
call fcn.00402990
lea ecx, [ebp - 0xa50]
mov byte [ebp - 4], 0
call fcn.0041719f
mov eax, dword [ebp - 0xa18]
lea ecx, [eax - 0x10]
call fcn.00402990
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053bf68
mov esp, ebp
pop ebp
ret 0xc