Function at 0x421660
Capabilities:
Delete file

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xcc4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0xcb8]
xor ebp, ebp
cmp eax, ebp
je 0x421c4f
mov ecx, dword [esi + 0xcbc]
sub ecx, eax
test ecx, 0xfffffffc
je 0x421c4f
mov ecx, esi
call fcn.00421320
test eax, eax
je 0x421c35
lea ecx, [esp + 0x10]
mov eax, dword [esi + 0xecc]
push ecx
push ebp
push str.App360SE
mov word [esp + 0x28], 2
mov edi, dword [esp + 0x28]
sub esp, 0x10
mov ecx, esp
mov word [esp + 0x40], 1
mov dword [esp + 0x2c], ebp
mov edx, dword [eax]
mov dword [ecx], edi
mov edi, dword [esp + 0x3c]
push eax
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x44]
mov dword [ecx + 8], edi
mov edi, dword [esp + 0x48]
mov dword [ecx + 0xc], edi
call dword [edx + 0xe0]
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
je 0x421c27
mov eax, dword [esi + 0xecc]
lea edi, [esp + 0x10]
push edi
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x54]
mov eax, dword [esp + 0x10]
push str.2.0.0.0
push str.version
push eax
mov ecx, esi
call fcn.00421590
cmp eax, ebp
je 0x421736
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x10]
push ebp
push str.download
push edx
mov ecx, esi
call fcn.00421590
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x14], ebx
je 0x421c1d
push str.1.0.0.0
push str.version
push ebx
mov ecx, esi
call fcn.00421590
cmp eax, ebp
je 0x421772
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebp
push str.itemlist
push ebx
mov ecx, esi
call fcn.00421590
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x18], edi
je 0x421c17
mov eax, dword [esi + 0xcb8]
test eax, eax
je 0x421c11
mov edx, dword [esi + 0xcbc]
sub edx, eax
sar edx, 2
cmp ebp, edx
jae 0x421c11
push 0
push str.item
push edi
mov ecx, esi
call fcn.00421590
mov ebx, eax
test ebx, ebx
je 0x421c07
mov ax, word [0x4ffec0]
mov ecx, 0x81
mov word [esp + 0x2c], ax
xor eax, eax
lea edi, [esp + 0x2e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0xcb8]
mov ecx, dword [eax + ebp*4]
add ecx, 4
push ecx
push 0x4ebb84
push ebx
mov ecx, esi
call fcn.00421590
test eax, eax
je 0x421806
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esi + 0xcb8]
mov ecx, esi
mov eax, dword [eax + ebp*4]
add eax, 0x104c
push eax
push str.referer
push ebx
call fcn.00421590
test eax, eax
je 0x42182c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
mov ecx, esi
mov edx, dword [eax + ebp*4]
add edx, 0x2094
push edx
push str.path
push ebx
call fcn.00421590
test eax, eax
je 0x421853
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
mov ecx, esi
mov edx, dword [eax + ebp*4]
add edx, 0x229c
push edx
push 0x4eced0
push ebx
call fcn.00421590
test eax, eax
je 0x42187a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
mov ecx, esi
mov edx, dword [eax + ebp*4]
add edx, 0x24a4
push edx
push str.alias
push ebx
call fcn.00421590
test eax, eax
je 0x4218a1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
mov ecx, esi
mov edx, dword [eax + ebp*4]
add edx, 0x26ac
push edx
push str.note
push ebx
call fcn.00421590
test eax, eax
je 0x4218c8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
mov ecx, esi
mov edx, dword [eax + ebp*4]
add edx, 0x2cd4
push edx
push str.username
push ebx
call fcn.00421590
test eax, eax
je 0x4218ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
mov ecx, esi
mov edx, dword [eax + ebp*4]
add edx, 0x2dd4
push edx
push str.password
push ebx
call fcn.00421590
test eax, eax
je 0x421916
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
mov ecx, esi
mov edx, dword [eax + ebp*4]
add edx, 0x28b4
push edx
push str.version
push ebx
call fcn.00421590
test eax, eax
je 0x42193d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
mov edi, dword [sym.imp.MSVCRT.dll__itow]
lea edx, [esp + 0x2c]
push 0xa
mov ecx, dword [eax + ebp*4]
push edx
mov edx, dword [ecx + 0x2f0c]
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push str.canrename
push ebx
call fcn.00421590
test eax, eax
je 0x42197b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
lea edx, [esp + 0x2c]
push 0xa
push edx
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx]
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push str.downloadtype
push ebx
call fcn.00421590
test eax, eax
je 0x4219af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
lea edx, [esp + 0x2c]
push 0xa
push edx
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0x2eec]
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push str.threadcount
push ebx
call fcn.00421590
test eax, eax
je 0x4219e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
lea edx, [esp + 0x2c]
push 0xa
push edx
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0x2cc4]
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push str.login
push ebx
call fcn.00421590
test eax, eax
je 0x421a1f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
lea edx, [esp + 0x2c]
push 0xa
push edx
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0x2cc8]
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push str.filecreated
push ebx
call fcn.00421590
test eax, eax
je 0x421a57
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
lea edx, [esp + 0x2c]
push 0xa
push edx
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0x2cd0]
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push str.openatcomplete
push ebx
call fcn.00421590
test eax, eax
je 0x421a8f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
lea edx, [esp + 0x2c]
push 0xa
push edx
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0x2ccc]
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push str.delatcomplete
push ebx
call fcn.00421590
test eax, eax
je 0x421ac7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
lea edx, [esp + 0x2c]
push 0xa
push edx
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0x2ed4]
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push str.taskstate
push ebx
call fcn.00421590
test eax, eax
je 0x421aff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xcb8]
lea edx, [esp + 0x2c]
push 0xa
push edx
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0x2ee8]
push edx
call dword [sym.imp.MSVCRT.dll__ltow]
add esp, 0xc
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push str.timetaskcreate
push ebx
call fcn.00421590
test eax, eax
je 0x421b3b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esi + 0xcb8]
mov ecx, dword [edx + ebp*4]
mov eax, dword [ecx + 0x2ed8]
cmp eax, 0xffffffff
mov ecx, dword [ecx + 0x2edc]
jne 0x421b6e
cmp ecx, eax
jne 0x421b6e
lea edx, [esp + 0x2c]
push 0x4eca80
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
jmp 0x421b80
lea edx, [esp + 0x2c]
push 0xa
push edx
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__ui64tow]
add esp, 0x10
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push str.contentlength
push ebx
call fcn.00421590
test eax, eax
je 0x421b9c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esi + 0xcb8]
mov ecx, dword [edx + ebp*4]
mov eax, dword [ecx + 0x2ee0]
cmp eax, 0xffffffff
mov ecx, dword [ecx + 0x2ee4]
jne 0x421bcf
cmp ecx, eax
jne 0x421bcf
lea edx, [esp + 0x2c]
push 0x4eca80
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
jmp 0x421be1
lea edx, [esp + 0x2c]
push 0xa
push edx
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__ui64tow]
add esp, 0x10
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push str.receivedcontentlength
push ebx
call fcn.00421590
test eax, eax
je 0x421bfd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebx]
push ebx
call dword [edx + 8]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
inc ebp
jmp 0x42178e
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov ecx, dword [ebx]
push ebx
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xcc4]
mov ecx, esi
push eax
call fcn.00421510
mov eax, dword [esi + 0xecc]
test eax, eax
je 0x421c4f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0xecc], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret