Function at 0x10022ef0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10098063
mov eax, dword fs:[0]
push eax
mov eax, 0x40e4
call fcn.10078fc0
mov eax, dword [0x100b4208]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40d8], ecx
push str._Download_CFTPStorage__UAE_KPB_W0PAVIStorageIOProImp___Z
lea ecx, [ebp - 0x80]
call fcn.1001fa20
mov dword [ebp - 4], 0
mov dword [ebp - 0x40ac], 0x3010001
mov dword [ebp - 0x40a8], 0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x58]
call fcn.1000c800
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40a4], 0
push 0x4018
push 0
lea ecx, [ebp - 0x40a0]
push ecx
call fcn.10075220
add esp, 0xc
mov edx, dword [ebp - 0x40d8]
add edx, 0x5238
push edx
lea ecx, [ebp - 0x60]
call fcn.10027f60
mov byte [ebp - 4], 2
cmp dword [ebp + 8], 0
jne 0x10022ffd
mov dword [ebp - 0x40ac], 0x30a0002
mov dword [ebp - 0x40a8], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x30a0002
push 0x30a
push 0x100aa3c8
push 0x100aa3e0
call fcn.1001f0f0
add esp, 0x18
jmp 0x100232d7
cmp dword [ebp + 0xc], 0
jne 0x10023041
mov dword [ebp - 0x40ac], 0x30b0002
mov dword [ebp - 0x40a8], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x30b0002
push 0x30b
push 0x100aa44c
push 0x100aa460
call fcn.1001f0f0
add esp, 0x18
jmp 0x100232d7
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.CFTPStorage::Download__s_to__s
call fcn.1001f0f0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x40c8]
push eax
mov ecx, dword [ebp - 0x40d8]
call fcn.10021770
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40a4]
push ecx
lea ecx, [ebp - 0x40c8]
call fcn.10002c80
push eax
mov ecx, dword [ebp - 0x40d8]
call fcn.10021870
mov dword [ebp - 0x40ac], eax
mov dword [ebp - 0x40a8], edx
mov edx, dword [ebp - 0x40ac]
and edx, 0xffff
mov eax, dword [ebp - 0x40a8]
and eax, 0
mov dword [ebp - 0x40e0], edx
mov dword [ebp - 0x40dc], eax
mov ecx, dword [ebp - 0x40e0]
or ecx, dword [ebp - 0x40dc]
je 0x10023121
mov edx, dword [ebp - 0x40ac]
mov dword [ebp - 0x40ac], edx
mov eax, dword [ebp - 0x40a8]
mov dword [ebp - 0x40a8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x40a8]
push ecx
mov edx, dword [ebp - 0x40ac]
push edx
push 0x311
push 0x100aa50c
push 0x100aa520
call fcn.1001f0f0
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40c8]
call fcn.10005b60
jmp 0x100232d7
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x30], ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x10023174
cmp dword [ebp - 0x5c], 0xffffffff
jne 0x100231c1
mov dword [ebp - 0x40ac], 0x31e000a
mov dword [ebp - 0x40a8], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x31e000a
push 0x31e
push 0x100aa58c
push 0x100aa5a0
call fcn.1001f0f0
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40c8]
call fcn.10005b60
jmp 0x100232d7
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x58]
call fcn.1000ca60
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x24], 1
push 0x10020180
lea ecx, [ebp - 0x40c8]
push ecx
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x40d8]
add ecx, 0x4744
call fcn.100096d0
mov dword [ebp - 0x40ac], eax
mov dword [ebp - 0x40a8], edx
mov eax, dword [ebp - 0x40ac]
and eax, 0xffff
mov ecx, dword [ebp - 0x40a8]
and ecx, 0
mov dword [ebp - 0x40e8], eax
mov dword [ebp - 0x40e4], ecx
mov edx, dword [ebp - 0x40e8]
or edx, dword [ebp - 0x40e4]
je 0x10023287
mov eax, dword [ebp - 0x40ac]
mov dword [ebp - 0x40ac], eax
mov ecx, dword [ebp - 0x40a8]
mov dword [ebp - 0x40a8], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x40a8]
push edx
mov eax, dword [ebp - 0x40ac]
push eax
push 0x326
push str..FTPStorage.cpp
push 0x100aa620
call fcn.1001f0f0
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40c8]
call fcn.10005b60
jmp 0x100232d7
cmp dword [ebp + 0x10], 0
je 0x100232c0
mov ecx, dword [ebp - 0x40a8]
push ecx
mov edx, dword [ebp - 0x40ac]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x58]
call fcn.10002c80
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40c8]
call fcn.10005b60
xor ecx, ecx
jne 0x10022fb9
cmp dword [ebp - 0x5c], 0
je 0x100232ed
cmp dword [ebp - 0x5c], 0xffffffff
je 0x100232ed
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
mov ecx, dword [ebp - 0x18]
and ecx, 0
mov dword [ebp - 0x40f0], eax
mov dword [ebp - 0x40ec], ecx
mov edx, dword [ebp - 0x40f0]
or edx, dword [ebp - 0x40ec]
je 0x10023327
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40ac], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x40a8], ecx
mov edx, dword [ebp - 0x40ac]
mov dword [ebp - 0x40d4], edx
mov eax, dword [ebp - 0x40a8]
mov dword [ebp - 0x40d0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.10027f90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.100062d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.1001fab0
mov eax, dword [ebp - 0x40d4]
mov edx, dword [ebp - 0x40d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10073b34
mov esp, ebp
pop ebp
ret 0xc