Function at 0x40b1d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4397b8
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.0042a828
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.00405260
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00402f00
add esp, 0x14
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
call fcn.0042af64
mov al, byte [esi + 0x124]
test al, al
mov byte [ebp - 4], 1
mov byte [esi + 0x125], 0
jne 0x40b291
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.00405260
mov esi, dword [ebp - 0x14]
push esi
call fcn.00402f00
add esp, 0x14
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042afa3
lea eax, [esi - 0x10]
jmp 0x40b72e
push edi
call fcn.0040dce0
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.0042b1fc
test eax, eax
jne 0x40b3c8
push eax
push 0x400
lea ebx, [esi + 0x52c]
push ebx
lea ecx, [ebp - 0x40]
call fcn.0042ab4c
push str.STR_148
call fcn.004021b0
push eax
push edi
push str._s_:__s_n
push ebx
call fcn.0041b463
mov edi, ebx
add esp, 0x14
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40b301
sub edi, ecx
js 0x40b31e
lea esp, [esp]
mov al, byte [ebx + edi]
cmp al, 0x2f
je 0x40b31e
cmp al, 0x5c
je 0x40b31e
dec edi
jns 0x40b310
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b323
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.00405260
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.00405260
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 0x40b3b4
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.0042afa3
lea eax, [esi - 0x10]
jmp 0x40b72e
inc ebx
push ebx
lea eax, [esi + 0x227]
push eax
lea ecx, [ebp - 0x248]
push str.__s_s
push ecx
call fcn.0041b463
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.00434b7b
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x2c], edi
jne 0x40b49a
lea eax, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_Cannot_open_remote_file.
push eax
call fcn.00405260
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.00405260
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 0x40b486
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.0042afa3
lea eax, [esi - 0x10]
jmp 0x40b72e
push ebx
push ebx
push ebx
push ebx
mov ecx, edi
call fcn.004346c9
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00433de2
mov eax, dword [ebp - 0x18]
cmp eax, 0x191
jne 0x40b4e1
lea ecx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_Access_denied.
push ecx
call fcn.00405260
mov edx, dword [ebp - 0x14]
add esp, 8
push edx
call fcn.00402f00
add esp, 4
push str.STR_143
jmp 0x40b5ab
cmp eax, 0x194
jne 0x40b50f
lea ecx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_File_not_found.
push ecx
call fcn.00405260
mov edx, dword [ebp - 0x14]
add esp, 8
push edx
call fcn.00402f00
add esp, 4
push str.STR_144
jmp 0x40b5ab
cmp eax, 0x12c
jb 0x40b541
cmp eax, 0x190
jae 0x40b548
lea ecx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_Information_error.
push ecx
call fcn.00405260
mov edx, dword [ebp - 0x14]
add esp, 8
push edx
call fcn.00402f00
add esp, 4
push str.STR_145
jmp 0x40b5ab
cmp eax, 0x190
jb 0x40b573
cmp eax, 0x1f4
jae 0x40b57e
lea ecx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_File_request_error.
push ecx
call fcn.00405260
mov edx, dword [ebp - 0x14]
add esp, 8
push edx
call fcn.00402f00
add esp, 4
push str.STR_146
jmp 0x40b5ab
cmp eax, 0x1f4
jb 0x40b642
cmp eax, 0x258
jae 0x40b642
lea ecx, [ebp - 0x14]
push str._ZFileTransfer__ERROR_:_Server_error.
push ecx
call fcn.00405260
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.0041b463
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.00405260
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.0042afa3
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 0x40b881
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40b881
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x1c]
push eax
call fcn.0040acb0
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.0042acb7
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 0x40b6a9
mov al, byte [esi + 0x125]
test al, al
je 0x40b660
mov al, byte [esi + 0x125]
test al, al
mov dword [ebp - 4], 2
je 0x40b755
push str._ZFileTransfer__Stop_download.
call fcn.00402f00
add esp, 4
lea ecx, [ebp - 0x28]
mov byte [esi + 0x125], 0
call fcn.0042af02
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 0x40b71c
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.0042afa3
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 0x40b881
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40b881
push str._ZFileTransfer__Download_successfully_complete.
call fcn.00402f00
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.0042af02
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 0x40b7b4
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.0042afa3
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 0x40b7e4
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