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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b55fe
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x8a0
mov eax, dword [0x4e7950]
xor eax, ebp
mov dword [ebp - 0x34], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 1
cmp dword [ebp + 0x10], 0
je 0x406a0e
push ecx
mov ecx, esp
mov dword [ebp - 0x850], esp
lea eax, [ebp + 0xc]
push eax
call fcn.00401e20
mov dword [ebp - 0x888], eax
call fcn.0043ac10
add esp, 4
mov dword [ebp - 0x88c], eax
cmp dword [ebp - 0x88c], 0
je 0x406a0e
mov dword [ebp - 0x854], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408680
mov eax, dword [ebp - 0x854]
jmp 0x406ec5
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x24]
call fcn.0046310c
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
push 0
push 0x4ce7d8
lea ecx, [ebp + 8]
call fcn.00402010
test eax, eax
jge 0x406a83
mov dword [ebp - 0x858], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0046391b
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408680
mov eax, dword [ebp - 0x858]
jmp 0x406ec5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x840]
call fcn.00401e00
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x85c], esp
lea edx, [ebp + 8]
push edx
call fcn.00401e20
mov dword [ebp - 0x890], eax
lea eax, [ebp - 0x860]
push eax
call fcn.0042ae30
add esp, 8
mov dword [ebp - 0x894], eax
mov ecx, dword [ebp - 0x894]
mov dword [ebp - 0x898], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x898]
push edx
lea ecx, [ebp - 0x840]
call fcn.00401ec0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x860]
call fcn.00408680
lea ecx, [ebp - 0x840]
call fcn.004025b0
movzx eax, al
test eax, eax
jne 0x406b27
lea ecx, [ebp + 8]
call fcn.004077a0
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea ecx, [ebp - 0x840]
call fcn.004077a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x7d0
push 2
lea ecx, [ebp - 0x24]
call fcn.004063b0
push 0
push 0
push 0x80400002
push 0
lea ecx, [ebp + 8]
call fcn.004077a0
push eax
lea ecx, [ebp - 0x24]
call fcn.00463dd2
mov dword [ebp - 0x89c], eax
mov ecx, dword [ebp - 0x89c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.00406ef0
add esp, 4
mov dword [ebp - 0x8a0], eax
mov ecx, dword [ebp - 0x8a0]
mov dword [ebp - 0x83c], ecx
cmp dword [ebp - 0x83c], 0
je 0x406bdb
mov dword [ebp - 0x864], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x840]
call fcn.00408680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0046391b
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408680
mov eax, dword [ebp - 0x864]
jmp 0x406ec5
push 0
push 0x80
push 2
push 0
push 2
push 0xc0000000
lea ecx, [ebp + 0xc]
call fcn.004077a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x406c50
mov dword [ebp - 0x868], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x840]
call fcn.00408680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0046391b
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408680
mov eax, dword [ebp - 0x868]
jmp 0x406ec5
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0
push 0x400
lea edx, [ebp - 0x838]
push edx
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0x34]
call eax
mov dword [ebp - 0x8a4], eax
mov ecx, dword [ebp - 0x8a4]
mov dword [ebp - 0x848], ecx
push 0
lea edx, [ebp - 0x844]
push edx
mov eax, dword [ebp - 0x848]
push eax
lea ecx, [ebp - 0x838]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x848], 0
jg 0x406c64
cmp dword [ebp - 0x28], 0
je 0x406d24
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0x4c]
call eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x870], ecx
mov edx, dword [ebp - 0x870]
mov dword [ebp - 0x86c], edx
cmp dword [ebp - 0x86c], 0
je 0x406d13
push 1
mov eax, dword [ebp - 0x86c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x86c]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x8a8], eax
mov ecx, dword [ebp - 0x8a8]
mov dword [ebp - 0x8ac], ecx
jmp 0x406d1d
mov dword [ebp - 0x8ac], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x24]
call fcn.004637a5
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x874], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x840]
call fcn.00408680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0046391b
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408680
mov eax, dword [ebp - 0x874]
jmp 0x406ec5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.00480723
mov esp, ebp
pop ebp
ret