Function at 0x407ea0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x513d1e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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
xor esi, esi
mov dword [ebp - 4], 1
cmp dword [ebp + 0x814], esi
je 0x407f73
mov eax, dword [ebp + 0x810]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
push eax
call fcn.00403680
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004a1391
add esp, 4
cmp eax, esi
je 0x407f73
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 0x407f40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
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 0x407f69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4083a5
push esi
push esi
push esi
push esi
push 1
push esi
lea ecx, [ebp - 0x38]
call fcn.004c1d4a
mov eax, dword [ebp + 0x80c]
cmp dword [eax - 0xc], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
jl 0x407faf
push 0x522878
push eax
call fcn.004dfd90
add esp, 8
cmp eax, esi
je 0x407faf
sub eax, dword [ebp + 0x80c]
sar eax, 1
jns 0x408013
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004c253e
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 0x407fe1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
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 0x4083a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4083a3
mov byte [ebp - 4], 3
call fcn.004c01dc
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x408031
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 - 0x20], eax
mov ebx, 4
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x80c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov edi, esp
push eax
call fcn.00403680
lea ecx, [ebp - 0x14]
add esp, 4
add eax, 0x10
push ecx
mov dword [edi], eax
call fcn.00496600
add esp, 8
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
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 0x4080a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x20]
cmp dword [esi - 0xc], 0
je 0x4080bd
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 ebx
lea edx, [ebp - 0x14]
push edx
push 2
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], 0x7d0
call fcn.004c14d7
mov eax, dword [ebp + 0x80c]
push 0
push 0
push 0x80400002
push 0
push eax
lea ecx, [ebp - 0x38]
call fcn.004c29db
mov edi, eax
mov ecx, edi
mov dword [ebp - 0x24], edi
call fcn.004083d0
test eax, eax
je 0x408187
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408123
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004c253e
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 0x408155
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
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 0x4083a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4083a3
mov ecx, dword [ebp + 0x810]
push 0
push 0x80
push 2
push 0
push 2
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, 0xffffffff
jne 0x408237
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4081d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004c253e
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 0x408205
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
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 0x4083a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4083a3
mov dword [ebp - 0x18], 0
mov edi, edi
mov edx, dword [edi]
mov edx, dword [edx + 0x34]
push 0x400
lea eax, [ebp]
push eax
mov ecx, edi
call edx
push 0
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
lea ecx, [ebp]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
jg 0x408240
mov edx, dword [edi]
mov eax, dword [edx + 0x4c]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0
call fcn.004c23c8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004c253e
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 0x4082e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
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 0x407f69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4083a5
xor eax, eax
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