Function at 0x4222b0
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 0x42289f
mov ecx, dword [esi + 0xcbc]
sub ecx, eax
test ecx, 0xfffffffc
je 0x42289f
mov ecx, esi
call fcn.00421f70
test eax, eax
je 0x422885
lea ecx, [esp + 0x10]
mov eax, dword [esi + 0xecc]
push ecx
push ebp
push 0x4eeb30
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 0x422877
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.004221e0
cmp eax, ebp
je 0x422386
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.004221e0
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x14], ebx
je 0x42286d
push str.1.0.0.0
push str.version
push ebx
mov ecx, esi
call fcn.004221e0
cmp eax, ebp
je 0x4223c2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebp
push str.itemlist
push ebx
mov ecx, esi
call fcn.004221e0
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x18], edi
je 0x422867
mov eax, dword [esi + 0xcb8]
test eax, eax
je 0x422861
mov edx, dword [esi + 0xcbc]
sub edx, eax
sar edx, 2
cmp ebp, edx
jae 0x422861
push 0
push str.item
push edi
mov ecx, esi
call fcn.004221e0
mov ebx, eax
test ebx, ebx
je 0x422857
mov ax, word [0x500df0]
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 0x4ed808
push ebx
mov ecx, esi
call fcn.004221e0
test eax, eax
je 0x422456
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.004221e0
test eax, eax
je 0x42247c
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.004221e0
test eax, eax
je 0x4224a3
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 0x4eeab8
push ebx
call fcn.004221e0
test eax, eax
je 0x4224ca
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.004221e0
test eax, eax
je 0x4224f1
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.004221e0
test eax, eax
je 0x422518
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.004221e0
test eax, eax
je 0x42253f
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.004221e0
test eax, eax
je 0x422566
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.004221e0
test eax, eax
je 0x42258d
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.004221e0
test eax, eax
je 0x4225cb
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.004221e0
test eax, eax
je 0x4225ff
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.004221e0
test eax, eax
je 0x422637
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.004221e0
test eax, eax
je 0x42266f
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.004221e0
test eax, eax
je 0x4226a7
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.004221e0
test eax, eax
je 0x4226df
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.004221e0
test eax, eax
je 0x422717
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.004221e0
test eax, eax
je 0x42274f
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.004221e0
test eax, eax
je 0x42278b
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 0x4227be
cmp ecx, eax
jne 0x4227be
lea edx, [esp + 0x2c]
push 0x4ee694
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
jmp 0x4227d0
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.004221e0
test eax, eax
je 0x4227ec
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 0x42281f
cmp ecx, eax
jne 0x42281f
lea edx, [esp + 0x2c]
push 0x4ee694
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
jmp 0x422831
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.004221e0
test eax, eax
je 0x42284d
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 0x4223de
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.00422160
mov eax, dword [esi + 0xecc]
test eax, eax
je 0x42289f
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