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

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00430990
push 0xffffffffffffffff
push 0x4496f6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x45e700]
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 0x4011c1
call fcn.00410248
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40106e
push 0x80004005
call fcn.00401dd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x1010]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov edi, esp
push eax
call fcn.00401e00
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0040e560
add esp, 4
test eax, eax
je 0x4011a1
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.FileVersion
call fcn.00401990
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x1010]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.00401e00
add eax, 0x10
lea ecx, [ebp - 0x20]
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 2
call fcn.0040e290
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00401ce0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40111f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
je 0x4011a1
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401148
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]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40116e
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
jg 0x401197
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x401594
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4011c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x34]
call fcn.00410e77
mov eax, dword [ebp + 0x100c]
cmp dword [eax - 0xc], 0
mov dword [ebp - 0x20], 0
jl 0x401204
push str.http
push eax
call fcn.0042e1f3
add esp, 8
test eax, eax
je 0x401204
sub eax, dword [ebp + 0x100c]
sar eax, 1
jns 0x401268
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00411614
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 0x401236
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
jg 0x401592
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401592
mov byte [ebp - 4], 6
call fcn.00410248
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401286
push 0x80004005
call fcn.00401dd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov bl, 7
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x100c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.00401e00
lea ecx, [ebp - 0x18]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.0040e630
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00401ce0
mov byte [ebp - 4], bl
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 0x4012f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
je 0x40130f
mov ecx, dword [ebp + 0x100c]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push ebx
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.00411acb
mov esi, eax
mov ecx, eax
mov dword [ebp - 0x18], esi
call fcn.004015c0
test eax, eax
je 0x4013c1
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40135d
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.00411614
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 0x40138f
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
jg 0x401592
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401592
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 - 0x20], edi
cmp edi, 0xffffffff
jne 0x401471
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40140d
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.00411614
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 0x40143f
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
jg 0x401592
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401592
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], 0
jmp 0x401483
mov esi, dword [ebp - 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push 0x800
lea eax, [ebp]
push eax
mov ecx, esi
call edx
push 0
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp]
push ecx
push edi
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jg 0x401480
lea ecx, [ebp - 0x34]
call fcn.00411510
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 6
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 0x4014e3
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.00411614
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 0x401515
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
jg 0x401197
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x401594
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.0042e0b9
add ebp, 0x1004
mov esp, ebp
pop ebp
ret