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

Disassembly:
sub esp, 0x904
mov eax, dword [0x4aa644]
lea edx, [esp + 0x10]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], eax
mov ecx, eax
sub edx, eax
jmp 0x40fdc0
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40fdc0
lea ecx, [esp + 0x20]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40fdd2
mov eax, dword [str..def]
mov dword [ecx], eax
mov al, byte [0x470114]
mov byte [ecx + 4], al
lea ecx, [esp + 0x20]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fdf2
sub ecx, edx
mov dword [esp + 0x14], 0x208
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push eax
lea eax, [esp + 0x24]
mov ecx, 0x488df0
push eax
lea edx, [esp + 0x1c]
call fcn.004317d0
add esp, 8
test eax, eax
jne 0x40fe3d
mov eax, dword [esp + 0x14]
shr eax, 1
xor ecx, ecx
mov word [eax*2 + 0x488df0], cx
mov eax, 0x488df0
jmp 0x40fe42
mov eax, 0x479868
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x410152
test ebx, ebx
je 0x410152
mov ecx, dword [0x492170]
mov edi, dword [ecx + 4]
mov dword [ecx], edi
mov ecx, dword [edi + 8]
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40fe81
sub esi, edx
cmp esi, 4
jbe 0x4100d2
lea eax, [ecx - 4]
add eax, esi
push str..lib
push eax
call fcn.0044e716
add esp, 8
test eax, eax
jne 0x4100d2
mov ecx, dword [edi + 8]
mov edx, 0x49b320
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40feb6
mov eax, dword [str..dll]
mov edx, 0x49b320
mov dword [esi + 0x49b31c], eax
mov al, byte [0x47011c]
mov byte [esi + 0x49b320], al
mov cl, byte [0x49b320]
test cl, cl
je 0x40ff04
lea esp, [esp]
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x40fefc
sub cl, 0x20
mov byte [edx], cl
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x40fef0
push 0x49b320
lea eax, [esp + 0x12c]
push str.LIBRARY___s__n
push eax
call fcn.00401560
lea ecx, [esp + 0x134]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ff28
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x1c]
push 0
push eax
sub ecx, edx
lea eax, [esp + 0x130]
push ecx
push eax
push ebx
call ebp
xor ecx, ecx
lea esp, [esp]
mov al, byte [ecx + str.EXPORTS]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x527], al
test al, al
jne 0x40ff50
push 0
lea eax, [esp + 0x20]
mov byte [esp + 0x533], 0xa
push eax
push 8
lea eax, [esp + 0x534]
push eax
push ebx
call ebp
mov esi, dword [0x49211c]
mov eax, dword [esi + 0x20]
mov dword [eax + 0x1000], 0
mov ecx, dword [esi + 0x20]
call fcn.00428870
mov edi, eax
test edi, edi
je 0x410054
jmp 0x40ffb0
test dword [edi + 0x20], 0x40000000
je 0x410042
mov esi, dword [edi + 8]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ffc5
sub ecx, edx
mov edx, 0x49b320
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40ffd3
cmp ecx, 1
jbe 0x40fff5
cmp byte [ecx + 0x49b31f], 0x5f
jne 0x40fff5
mov byte [ecx + 0x49b31f], al
push dword [edi + 0x34]
lea eax, [esp + 0x12c]
push 0x49b320
push str.__s__s_n
push eax
call fcn.00401560
lea ecx, [esp + 0x138]
add esp, 0x10
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410020
push 0
lea eax, [esp + 0x18]
sub ecx, edx
push eax
push ecx
lea eax, [esp + 0x134]
push eax
push ebx
call ebp
mov esi, dword [0x49211c]
mov ecx, dword [esi + 0x20]
call fcn.00428870
mov edi, eax
test edi, edi
jne 0x40ffb0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x20]
push esi
push eax
push 0x49ac20
push str.__spolib.exe___MACHINE:X86__DEF:__s___OUT:__s_
push 0x4923e0
call fcn.00401560
add esp, 0x10
lea edx, [esp + 0x1c]
mov ecx, 0x4923e0
call fcn.004475d0
add esp, 4
test eax, eax
je 0x4100a1
push esi
push str.Windows_import_library__s_created._n
call fcn.00412ad0
add esp, 8
jmp 0x4100d9
mov esi, dword [esp + 0x18]
push esi
push 0x13d
mov dword [0x4a9ec4], 0xffffffff
call fcn.00412c30
add esp, 8
test esi, esi
je 0x4100d9
push esi
push 0
push dword [0x491954]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4100d9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x20]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4100e0
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x208
sub edx, esi
mov ecx, 0x488df0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], edx
push eax
lea edx, [esp + 0x1c]
call fcn.004317d0
add esp, 8
test eax, eax
jne 0x41013b
mov eax, dword [esp + 0x14]
xor ecx, ecx
shr eax, 1
mov word [eax*2 + 0x488df0], cx
mov eax, 0x488df0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x904
ret
mov eax, 0x479868
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x904
ret
lea eax, [esp + 0x20]
mov dword [0x4a9ec4], 0xffffffff
push eax
push 0x142
call fcn.00412c30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x904
ret