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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x41f0e4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x44c], ebx
push edi
push 0x80
push 2
mov esi, ecx
push ecx
mov dword [ebp - 0x424], esi
call fcn.00405946
pop ecx
push eax
push edi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b454
mov eax, 0xfeff
mov dword [ebp - 0x444], 0x28
mov word [ebp - 0x434], ax
mov ecx, esi
mov eax, dword [0x402c14]
mov dword [ebp - 0x18], eax
mov ax, word [0x402c18]
mov word [ebp - 0x14], ax
mov eax, dword [0x402c1c]
mov dword [ebp - 0x10], eax
mov ax, word [0x402c20]
mov word [ebp - 0xc], ax
mov dword [ebp - 0x448], 0x29
call fcn.0040f19b
push edi
push edi
push edi
push ebx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x428], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x420]
push eax
push 2
lea eax, [ebp - 0x434]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b450
mov eax, edi
mov dword [ebp - 0x42c], edi
cmp dword [ebp - 0x438], eax
jbe 0x40b44d
push eax
mov ecx, esi
call fcn.0040f426
test al, 4
jne 0x40b434
push dword [ebp - 0x42c]
mov ecx, esi
call fcn.0040f485
test al, 0x20
jne 0x40b434
mov eax, dword [esi]
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x3c]
mov ecx, esi
call dword [0x420468]
mov ecx, dword [ebp - 0x424]
call esi
test eax, eax
jne 0x40b42e
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x430]
mov ecx, dword [ebp - 0x424]
push eax
push 2
push esi
call fcn.0040f304
mov ecx, eax
test ecx, ecx
je 0x40b42e
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x40b42e
push eax
push ecx
mov edx, 0x100
lea ecx, [ebp - 0x41c]
call fcn.0040ebd4
test eax, eax
js 0x40b42e
mov eax, dword [ebp - 0x430]
cmp eax, 0xff
jbe 0x40b28c
mov eax, 0x1fe
jmp 0x40b299
add eax, eax
cmp eax, 0x200
jae 0x40b47e
xor ecx, ecx
mov word [ebp + eax - 0x41c], cx
lea eax, [ebp - 0x428]
mov ecx, dword [ebp - 0x424]
push eax
push 4
push esi
call fcn.0040f304
test eax, eax
jne 0x40b2c5
mov word [ebp - 0x21c], ax
jmp 0x40b307
push dword [ebp - 0x428]
mov edx, 0x100
lea ecx, [ebp - 0x21c]
push eax
call fcn.0040ebd4
mov eax, dword [ebp - 0x428]
cmp eax, 0xff
jbe 0x40b2f0
mov eax, 0x1fe
jmp 0x40b2fd
add eax, eax
cmp eax, 0x200
jae 0x40b47e
xor ecx, ecx
mov word [ebp + eax - 0x21c], cx
lea eax, [ebp - 0x440]
push eax
push 3
push esi
mov esi, dword [ebp - 0x424]
mov ecx, esi
call fcn.0040f304
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x420]
push edi
push eax
mov eax, dword [ebp - 0x430]
add eax, eax
push eax
lea eax, [ebp - 0x41c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b450
push edi
lea eax, [ebp - 0x420]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b450
mov ecx, dword [ebp - 0x43c]
test ecx, ecx
je 0x40b393
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x440]
add eax, eax
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b450
push edi
lea eax, [ebp - 0x420]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b450
cmp dword [ebp - 0x428], edi
jbe 0x40b413
push edi
lea eax, [ebp - 0x420]
push eax
push 2
lea eax, [ebp - 0x444]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b450
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x428]
add eax, eax
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b450
push edi
lea eax, [ebp - 0x420]
push eax
push 2
lea eax, [ebp - 0x448]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b450
push edi
lea eax, [ebp - 0x420]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b450
jmp 0x40b434
mov esi, dword [ebp - 0x424]
mov eax, dword [ebp - 0x42c]
inc eax
mov dword [ebp - 0x42c], eax
cmp eax, dword [ebp - 0x438]
jb 0x40b1e3
xor edi, edi
inc edi
test ebx, ebx
je 0x40b46b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x40b46b
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d020
leave
ret 4
call fcn.0041d33e
int3