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

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x427af8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x432b60]
xor eax, ebp
mov dword [ebp + 0x400], 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 + 0x40c]
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x14], ebx
mov dword [ebp - 0x38], eax
jne 0x406b35
xor al, al
jmp 0x406fff
push ebx
push ebx
push ebx
push ebx
push 1
push str.liveupdate
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x11], bl
call fcn.004098e9
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], 0xffffffff
mov byte [ebp - 4], 1
call fcn.00408c77
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406b7c
push 0x80004005
call fcn.004060b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
call fcn.00408c77
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406ba9
push 0x80004005
call fcn.004060b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov esi, 0x10
cmp dword [edi + 0x18], esi
mov dword [ebp - 0x40], ebx
jb 0x406bce
mov edi, dword [edi + 4]
jmp 0x406bd1
add edi, 4
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x40]
push ecx
push edi
call fcn.00409e91
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004075b0
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
push eax
lea edx, [ebp - 0x24]
push edx
mov byte [ebp - 4], 4
call fcn.004074f0
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push 4
lea edx, [ebp - 0x20]
push edx
push 2
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x20], 0x3e8
call fcn.004090b9
push ebx
push 4
lea eax, [ebp - 0x20]
push eax
push 3
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x20], 3
call fcn.004090b9
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x1c]
push ebx
push ebx
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.0040a2dc
push 0x20000000
push ebx
push ebx
push 1
mov edi, eax
mov eax, dword [ebp - 0x18]
push ebx
push eax
push 1
mov ecx, edi
mov dword [ebp - 0x30], edi
call fcn.0040a393
push 0
push 0
mov ebx, eax
push 0
push 0
mov ecx, ebx
mov dword [ebp - 0x28], ebx
call fcn.00409e49
test eax, eax
jne 0x406d20
mov byte [ebp - 4], 3
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 0x406cd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406cf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
jmp 0x406fb5
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, ebx
mov dword [ebp - 0x3c], 0
call fcn.0040916f
cmp dword [ebp - 0x3c], 0xc8
jne 0x406ef2
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x18], esi
jb 0x406d4c
mov eax, dword [eax + 4]
jmp 0x406d4f
add eax, 4
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x2c], eax
jne 0x406de6
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406db6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
jmp 0x406fb5
push 0x3ff
lea ecx, [ebp + 1]
push esi
push ecx
mov byte [ebp], 0
call fcn.004155a0
add esp, 0xc
push esi
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp]
push eax
push 5
mov ecx, ebx
mov dword [ebp - 0x50], 0x400
call fcn.00409153
lea ecx, [ebp]
push ecx
call fcn.00413b09
push 0x2000
mov dword [ebp - 0x44], eax
call fcn.00407b2e
mov edx, dword [ebx]
add esp, 8
mov edi, eax
mov eax, dword [edx + 0x34]
push 0x2000
push edi
mov ecx, ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x20], esi
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x406e50
test eax, eax
jbe 0x406e77
mov edx, dword [ebp - 0x2c]
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
push edi
push edx
call ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
add esi, dword [ebp - 0x20]
push 0x2000
push edi
call edx
jmp 0x406e50
cmp esi, dword [ebp - 0x44]
jne 0x406e80
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 3
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 0x406ea3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ec6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ee9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
jmp 0x406f75
mov byte [ebp - 4], 3
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 0x406f15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
jmp 0x406fb5
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x406fa2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x11], 0
jne 0x406fa2
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x18], 0x10
jb 0x406f98
mov eax, dword [eax + 4]
jmp 0x406f9b
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
je 0x406faf
push edi
call fcn.00407b33
add esp, 4
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
test ebx, ebx
je 0x406fcd
mov edx, dword [ebx]
mov eax, dword [edx + 0x4c]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 1
mov ecx, ebx
call eax
test edi, edi
je 0x406fe5
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
lea ecx, [ebp - 0x64]
call fcn.00409f1f
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.00409fa4
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00414015
add ebp, 0x404
mov esp, ebp
pop ebp
ret