Function at 0x40da00
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x514ad4
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x549950]
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 edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], 0
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp + 2]
mov dword [ebp - 4], 1
push ecx
mov word [ebp], ax
call fcn.004e57c0
add esp, 0xc
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40da81
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, 2
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x80c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov esi, esp
push eax
call fcn.00403680
lea ecx, [ebp - 0x14]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00496600
add esp, 8
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00403060
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40daf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], 0
je 0x40db0d
mov ecx, dword [ebp + 0x80c]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 0
push 0
push 0
push str.session
lea ecx, [ebp - 0x34]
call fcn.004c1d4a
push 0
push 4
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 5
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], 0x7d0
call fcn.004c14d7
mov eax, dword [ebp + 0x80c]
push 0
push 0
push 0x400002
push 0
push eax
lea ecx, [ebp - 0x34]
call fcn.004c29db
mov esi, eax
lea esp, [esp]
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 0x40db60
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 - 0x34]
call fcn.004c23c8
mov eax, dword [ebp + 0x80c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov esi, esp
push eax
call fcn.00403680
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x14]
add esp, 4
push eax
call fcn.00496600
add esp, 8
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00403060
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dbeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
push esi
call fcn.00403680
add eax, 0x10
add esp, 4
mov dword [edi], eax
or dword [ebp - 0x18], 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.004c253e
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc2b
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 + 0x80c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x40dccb
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.004df2ac
add ebp, 0x804
mov esp, ebp
pop ebp
ret