Function at 0x401240
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x49eee4
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c8a00]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x80c]
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ebx
push 0x7fe
lea edx, [ebp + 2]
xor ecx, ecx
push ebx
mov dword [ebp - 4], 1
push edx
mov word [ebp], cx
call fcn.00470d40
add esp, 0xc
call fcn.0044d2b5
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4012c3
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x810]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00402640
lea ecx, [ebp - 0x1c]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.0041eec0
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00402260
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40132f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], ebx
je 0x40134b
mov ecx, dword [ebp + 0x810]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
lea ecx, [ebp - 0x3c]
call fcn.0044e68f
push 0
push 4
lea edx, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
push edx
mov bl, 5
mov byte [ebp - 4], bl
push 2
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], 0x7d0
call fcn.0044de83
mov eax, dword [ebp + 0x810]
push 0
push 0
push 0x600002
push 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.0044f07d
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x401524
lea ecx, [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.0044def0
mov eax, dword [ebp - 0x28]
cmp eax, 0x12d
je 0x4013c2
cmp eax, 0x12e
jne 0x401490
push 0
lea edx, [ebp + 0x810]
push edx
push 0x21
mov ecx, esi
call fcn.0044ecdb
mov eax, dword [ebp + 0x810]
cmp dword [eax - 0xc], 0
je 0x401490
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0
call fcn.0044ec66
mov eax, dword [ebp + 0x810]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00402640
add eax, 0x10
mov dword [esi], eax
mov esi, dword [ebp - 0x20]
add esp, 4
push esi
call fcn.00401240
add esp, 8
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 2
call fcn.0044edbb
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401463
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x810]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401489
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40163e
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push 0x400
lea eax, [ebp]
push eax
mov ecx, esi
call edx
test eax, eax
ja 0x401490
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0
call fcn.0044ec66
mov eax, dword [ebp + 0x810]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00402640
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x24]
add esp, 4
push eax
call fcn.0041eec0
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.00402260
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401521
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x14]
lea esi, [edi - 0x10]
push esi
call fcn.00402640
mov edi, dword [ebp - 0x20]
or dword [ebp - 0x18], 1
add eax, 0x10
add esp, 4
lea ecx, [ebp - 0x3c]
mov dword [edi], eax
mov byte [ebp - 4], 2
call fcn.0044edbb
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401565
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x810]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40158b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x40163e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0046c016
add ebp, 0x804
mov esp, ebp
pop ebp
ret