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

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004e5f20
push 0xffffffffffffffff
push 0x5152d6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x549950]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [ebp + 0x1014], 0
mov dword [ebp - 4], 1
je 0x496278
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x49615e
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 - 0x14], eax
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x52c484
call fcn.00402480
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x1010]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
call fcn.00403680
add eax, 0x10
lea ecx, [ebp - 0x18]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 2
call fcn.00495d00
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00403060
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4961e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
mov edx, edi
je 0x49625d
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49620c
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 + 0x100c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496231
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x1010]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x496253
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4965cc
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49627b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49627b
or edi, 0xffffffff
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x34]
call fcn.004c1d4a
mov eax, dword [ebp + 0x100c]
cmp dword [eax - 0xc], 0
mov dword [ebp - 0x14], 0
jl 0x4962be
push 0x522878
push eax
call fcn.004dfd90
add esp, 8
test eax, eax
je 0x4962be
sub eax, dword [ebp + 0x100c]
sar eax, 1
jns 0x49631a
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004c253e
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x100c]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4962ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x1010]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4965ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4965ca
mov byte [ebp - 4], 6
call fcn.004c01dc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x496338
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 - 0x18], eax
mov bl, 7
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x100c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
call fcn.00403680
lea ecx, [ebp - 0x20]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00496600
add esp, 8
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00403060
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4963a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x18]
cmp dword [esi - 0xc], 0
je 0x4963c0
mov ecx, dword [ebp + 0x100c]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 0x100c]
push 0
push 0
push 0x400002
push 0
push edx
lea ecx, [ebp - 0x34]
call fcn.004c29db
mov ebx, eax
mov ecx, eax
call fcn.00496710
test eax, eax
je 0x49640f
lea eax, [esi - 0x10]
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4962be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4962be
mov ecx, dword [ebp + 0x1010]
push 0
push 0x80
push 2
push 0
push 2
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
jne 0x4964ab
lea eax, [esi - 0x10]
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x496457
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004c253e
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x100c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496489
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 + 0x1010]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x496305
mov dword [ebp - 0x1c], 0
mov edx, dword [ebx]
mov edx, dword [edx + 0x34]
push 0x800
lea eax, [ebp]
push eax
mov ecx, ebx
call edx
push 0
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
jg 0x4964b2
lea ecx, [ebp - 0x34]
call fcn.004c23c8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49650e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004c253e
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x100c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496540
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 + 0x1010]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x496247
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 + 0x1000]
xor ecx, ebp
call fcn.004df2ac
add ebp, 0x1004
mov esp, ebp
pop ebp
ret