Function at 0x40b4e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439b48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa3c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], esi
call fcn.0042ab48
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push edi
push ebx
lea eax, [ebp - 0x14]
push str._ZFileTransfer__Download_file_:__s__to___s
push eax
mov dword [ebp - 4], 0
call fcn.00405220
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00402f00
add esp, 0x14
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
call fcn.0042b284
mov al, byte [esi + 0x124]
test al, al
mov byte [ebp - 4], 1
mov byte [esi + 0x125], 0
jne 0x40b5a1
push str._ZFileTransfer__ERROR_:_Connection_are_not_opened.
call fcn.00402f00
push ebx
lea edx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_Failed_download_:__s
push edx
call fcn.00405220
mov esi, dword [ebp - 0x14]
push esi
call fcn.00402f00
add esp, 0x14
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042b2c3
lea eax, [esi - 0x10]
jmp 0x40ba3e
push edi
call fcn.0040e000
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x40]
call fcn.00402320
lea eax, [ebp - 0x40]
push eax
push 0x1001
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0042b51c
test eax, eax
jne 0x40b6d8
push eax
push 0x400
lea ebx, [esi + 0x52c]
push ebx
lea ecx, [ebp - 0x40]
call fcn.0042ae6c
push str.STR_148
call fcn.004021b0
push eax
push edi
push str._s_:__s_n
push ebx
call fcn.0041b77b
mov edi, ebx
add esp, 0x14
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40b611
sub edi, ecx
js 0x40b62e
lea esp, [esp]
mov al, byte [ebx + edi]
cmp al, 0x2f
je 0x40b62e
cmp al, 0x5c
je 0x40b62e
dec edi
jns 0x40b620
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b633
sub eax, ecx
mov ecx, eax
sub ecx, edi
mov eax, ecx
lea edx, [edi + esi + 0x52d]
shr ecx, 2
mov esi, edx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:__s
push ecx
mov byte [edx], 0
call fcn.00405220
mov edx, dword [ebp - 0x14]
push edx
call fcn.00402f00
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_Failed_download_:__s
push ecx
call fcn.00405220
mov esi, dword [ebp - 0x14]
push esi
call fcn.00402f00
mov edx, dword [ebp + 0xc]
add esp, 0x20
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042b2c3
lea eax, [esi - 0x10]
jmp 0x40ba3e
inc ebx
push ebx
lea eax, [esi + 0x227]
push eax
lea ecx, [ebp - 0x248]
push str.__s_s
push ecx
call fcn.0041b77b
mov ecx, dword [esi + 0x18]
add esp, 0x10
push 0x24200000
push 0
push 0
push 1
push 0
lea edx, [ebp - 0x248]
push edx
push 1
mov byte [ebp - 4], 3
call fcn.00434e9b
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x2c], edi
jne 0x40b7aa
lea eax, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_Cannot_open_remote_file.
push eax
call fcn.00405220
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call fcn.00402f00
mov edx, dword [ebp + 8]
add esp, 4
push edx
lea eax, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_Failed_download_:__s
push eax
call fcn.00405220
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
call fcn.00402f00
mov ecx, dword [ebp + 0xc]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], vtable.CFileException.0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b796
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042b2c3
lea eax, [esi - 0x10]
jmp 0x40ba3e
push ebx
push ebx
push ebx
push ebx
mov ecx, edi
call fcn.004349e9
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00434102
mov eax, dword [ebp - 0x18]
cmp eax, 0x191
jne 0x40b7f1
lea ecx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_Access_denied.
push ecx
call fcn.00405220
mov edx, dword [ebp - 0x14]
add esp, 8
push edx
call fcn.00402f00
add esp, 4
push str.STR_143
jmp 0x40b8bb
cmp eax, 0x194
jne 0x40b81f
lea ecx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_File_not_found.
push ecx
call fcn.00405220
mov edx, dword [ebp - 0x14]
add esp, 8
push edx
call fcn.00402f00
add esp, 4
push str.STR_144
jmp 0x40b8bb
cmp eax, 0x12c
jb 0x40b851
cmp eax, 0x190
jae 0x40b858
lea ecx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_Information_error.
push ecx
call fcn.00405220
mov edx, dword [ebp - 0x14]
add esp, 8
push edx
call fcn.00402f00
add esp, 4
push str.STR_145
jmp 0x40b8bb
cmp eax, 0x190
jb 0x40b883
cmp eax, 0x1f4
jae 0x40b88e
lea ecx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_File_request_error.
push ecx
call fcn.00405220
mov edx, dword [ebp - 0x14]
add esp, 8
push edx
call fcn.00402f00
add esp, 4
push str.STR_146
jmp 0x40b8bb
cmp eax, 0x1f4
jb 0x40b952
cmp eax, 0x258
jae 0x40b952
lea ecx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_Server_error.
push ecx
call fcn.00405220
mov edx, dword [ebp - 0x14]
add esp, 8
push edx
call fcn.00402f00
add esp, 4
push str.STR_147
call fcn.004021b0
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
push eax
add esi, 0x52c
push str.__03u___s_n
push esi
call fcn.0041b77b
mov ecx, dword [ebp + 8]
add esp, 0x10
push ecx
lea edx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_Failed_download_:__s
push edx
call fcn.00405220
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
call fcn.00402f00
mov eax, dword [edi]
add esp, 4
push 1
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401b50
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042b2c3
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bb91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40bb91
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x1c]
push eax
call fcn.0040afc0
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x11c], ecx
mov dword [esi + 0x120], ebx
mov dword [ebp + 8], ebx
mov edx, dword [edi]
push 0x800
lea eax, [ebp - 0xa48]
push eax
mov ecx, edi
call dword [edx + 0x34]
mov ebx, eax
push ebx
lea ecx, [ebp - 0xa48]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042afd7
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x120]
add edx, ebx
add ecx, ebx
test ebx, ebx
mov dword [ebp + 8], edx
mov dword [esi + 0x120], ecx
jbe 0x40b9b9
mov al, byte [esi + 0x125]
test al, al
je 0x40b970
mov al, byte [esi + 0x125]
test al, al
mov dword [ebp - 4], 2
je 0x40ba65
push str._ZFileTransfer__Stop_download.
call fcn.00402f00
add esp, 4
lea ecx, [ebp - 0x28]
mov byte [esi + 0x125], 0
call fcn.0042b222
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x4c]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], vtable.CFileException.0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ba2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042b2c3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40bb91
push str._ZFileTransfer__Download_successfully_complete.
call fcn.00402f00
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.0042b222
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x4c]
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
xor eax, eax
mov dword [esi + 0x120], eax
mov dword [esi + 0x11c], eax
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [esi + 0x1c], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bac4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042b2c3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40baf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc