Function at 0x40b580
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53522d
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x8a4
mov eax, dword [0x56d940]
xor eax, ebp
mov dword [ebp - 0x30], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x870], 0
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x830], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x82e]
push ecx
call fcn.00506bf0
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00402c10
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x83c], esp
lea edx, [ebp + 0xc]
push edx
call fcn.00402c30
mov dword [ebp - 0x874], eax
lea eax, [ebp - 0x840]
push eax
call fcn.004b25c0
add esp, 8
mov dword [ebp - 0x878], eax
mov ecx, dword [ebp - 0x878]
mov dword [ebp - 0x87c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x87c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402cf0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x840]
call fcn.00402cd0
lea ecx, [ebp - 0x2c]
call fcn.00403460
movzx eax, al
test eax, eax
jne 0x40b676
lea ecx, [ebp + 0xc]
call fcn.00420f50
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea ecx, [ebp - 0x2c]
call fcn.00420f50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x24]
call fcn.004e381d
mov byte [ebp - 4], 4
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 5
push 0
push 0x7d0
push 2
lea ecx, [ebp - 0x24]
call fcn.0040b550
push 0
push 0
push 0x600002
push 0
lea ecx, [ebp + 0xc]
call fcn.00420f50
push eax
lea ecx, [ebp - 0x24]
call fcn.004e44c9
mov dword [ebp - 0x880], eax
mov ecx, dword [ebp - 0x880]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
je 0x40b8f1
lea edx, [ebp - 0x834]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.004e304c
cmp dword [ebp - 0x834], 0x12d
je 0x40b70a
cmp dword [ebp - 0x834], 0x12e
jne 0x40b7ff
push 0
lea eax, [ebp + 0xc]
push eax
push 0x21
mov ecx, dword [ebp - 0x28]
call fcn.004e3f4c
lea ecx, [ebp + 0xc]
call fcn.00403460
movzx ecx, al
test ecx, ecx
jne 0x40b7ff
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax + 0x4c]
call edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x848], eax
mov ecx, dword [ebp - 0x848]
mov dword [ebp - 0x844], ecx
cmp dword [ebp - 0x844], 0
je 0x40b781
push 1
mov edx, dword [ebp - 0x844]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x844]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x884], eax
mov eax, dword [ebp - 0x884]
mov dword [ebp - 0x888], eax
jmp 0x40b78b
mov dword [ebp - 0x888], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x24]
call fcn.004e3eb6
push ecx
mov ecx, esp
mov dword [ebp - 0x84c], esp
lea edx, [ebp + 0xc]
push edx
call fcn.00402c30
mov dword [ebp - 0x88c], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040b580
add esp, 8
mov dword [ebp - 0x890], eax
mov ecx, dword [ebp - 0x870]
or ecx, 1
mov dword [ebp - 0x870], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.004e402c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402cd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00402cd0
mov eax, dword [ebp + 8]
jmp 0x40baea
push 0x400
lea edx, [ebp - 0x830]
push edx
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0x34]
call eax
mov dword [ebp - 0x894], eax
cmp dword [ebp - 0x894], 0
jbe 0x40b829
jmp 0x40b7ff
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0x4c]
call eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x854], ecx
mov edx, dword [ebp - 0x854]
mov dword [ebp - 0x850], edx
cmp dword [ebp - 0x850], 0
je 0x40b87d
push 1
mov eax, dword [ebp - 0x850]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x850]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x898], eax
mov ecx, dword [ebp - 0x898]
mov dword [ebp - 0x89c], ecx
jmp 0x40b887
mov dword [ebp - 0x89c], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x24]
call fcn.004e3eb6
push ecx
mov ecx, esp
mov dword [ebp - 0x858], esp
lea edx, [ebp + 0xc]
push edx
call fcn.00402c30
mov dword [ebp - 0x8a0], eax
lea eax, [ebp - 0x85c]
push eax
call fcn.004b25c0
add esp, 8
mov dword [ebp - 0x8a4], eax
mov ecx, dword [ebp - 0x8a4]
mov dword [ebp - 0x8a8], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x8a8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402cf0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x85c]
call fcn.00402cd0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402c30
mov dword [ebp - 0x8ac], eax
mov ecx, dword [ebp - 0x870]
or ecx, 1
mov dword [ebp - 0x870], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.004e402c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402cd0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00402cd0
mov eax, dword [ebp + 8]
jmp 0x40baea
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.005007b7
mov esp, ebp
pop ebp
ret