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

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x4250f8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x42eb24]
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 0x404f45
xor al, al
jmp 0x40540f
push ebx
push ebx
push ebx
push ebx
push 1
push str.liveupdate
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x11], bl
call fcn.004068e9
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.004059f8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x404f8c
push 0x80004005
call fcn.00404710
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.004059f8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x404fb9
push 0x80004005
call fcn.00404710
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 0x404fde
mov edi, dword [edi + 4]
jmp 0x404fe1
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.00406e91
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00405500
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
push eax
lea edx, [ebp - 0x24]
push edx
mov byte [ebp - 4], 4
call fcn.00405440
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 0x40503e
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.004060e6
push ebx
push 4
lea eax, [ebp - 0x20]
push eax
push 3
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x20], 3
call fcn.004060e6
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x1c]
push ebx
push ebx
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.004072dc
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.00407393
push 0
push 0
mov ebx, eax
push 0
push 0
mov ecx, ebx
mov dword [ebp - 0x28], ebx
call fcn.00406e49
test eax, eax
jne 0x405130
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 0x4050e1
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 0x405104
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 0x405127
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
jmp 0x4053c5
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, ebx
mov dword [ebp - 0x3c], 0
call fcn.0040616f
cmp dword [ebp - 0x3c], 0xc8
jne 0x405302
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x18], esi
jb 0x40515c
mov eax, dword [eax + 4]
jmp 0x40515f
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 0x4051f6
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 0x4051a3
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 0x4051c6
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 0x405127
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
jmp 0x4053c5
push 0x3ff
lea ecx, [ebp + 1]
push esi
push ecx
mov byte [ebp], 0
call fcn.00412ee0
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.00406153
lea ecx, [ebp]
push ecx
call fcn.00411a0e
push 0x2000
mov dword [ebp - 0x44], eax
call fcn.004059ee
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 0x405260
test eax, eax
jbe 0x405287
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 0x405260
cmp esi, dword [ebp - 0x44]
jne 0x405290
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 0x4052b3
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 0x4052d6
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 0x4052f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
jmp 0x405385
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 0x405325
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 0x405348
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 0x405127
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
jmp 0x4053c5
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x4053b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x11], 0
jne 0x4053b2
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x18], 0x10
jb 0x4053a8
mov eax, dword [eax + 4]
jmp 0x4053ab
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
je 0x4053bf
push edi
call fcn.004059f3
add esp, 4
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
test ebx, ebx
je 0x4053dd
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 0x4053f5
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.00406f1f
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.00406fa4
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.0041125b
add ebp, 0x404
mov esp, ebp
pop ebp
ret