Function at 0x4078b0
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42e181
push eax
mov eax, dword [0x43c45c]
mov dword fs:[0], esp
sub esp, 0x524
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x540]
cmp eax, ebp
push edi
je 0x4078f8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4078f8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
push 2
push 4
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407919
xor eax, eax
jmp 0x407ca1
cmp dword [0x43c45c], ebp
je 0x407999
mov al, byte [0x440950]
mov ecx, 0x40
mov byte [esp + 0x124], al
xor eax, eax
lea edi, [esp + 0x125]
push 0x43c6e0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x128]
push 0x43c6dc
push ecx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x18]
push ebp
push ecx
lea edx, [esp + 0x12c]
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebp
jne 0x407991
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x407ca1
mov dword [0x43c45c], ebp
jmp 0x4079a4
push 2
push ebp
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [0x440950]
mov esi, dword [esp + 0x548]
mov byte [esp + 0x20], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push 0x43c3f4
lea ecx, [esp + 0x28]
push 0x43c6d0
push ecx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x1c]
push ebp
push ecx
lea edx, [esp + 0x28]
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebp
jne 0x407a0d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x407ca1
mov al, byte [0x440950]
mov ecx, 0x40
mov byte [esp + 0x228], al
xor eax, eax
lea edi, [esp + 0x229]
lea edx, [esp + 0x32c]
rep stosd dword es:[edi], eax
mov cx, word [0x440954]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
mov word [esp + 0x330], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x332]
rep stosd dword es:[edi], eax
push edx
push 0xffffffffffffffff
push esi
push ebp
push ebp
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
dec eax
cmp eax, ebp
jle 0x407a89
lea ecx, [esp + eax*2 + 0x32c]
cmp word [ecx], 0x5c
je 0x407a81
dec eax
sub ecx, 2
cmp eax, ebp
jg 0x407a71
jmp 0x407a89
mov word [esp + eax*2 + 0x32c], bp
push ebp
push ebp
lea eax, [esp + 0x230]
push 0x104
push eax
lea ecx, [esp + 0x33c]
push 0xffffffffffffffff
push ecx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [0x43c990]
mov dword [esp + 0x14], edx
mov dword [esp + 0x53c], ebp
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x550]
xor esi, esi
test ebp, ebp
jbe 0x407b18
mov edi, dword [esp + 0x54c]
lea eax, [edi + 0x104]
lea ecx, [esp + 0x14]
push eax
push edi
push 0x43c300
push ecx
call fcn.00421c4e
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x238]
push edx
push eax
call fcn.0041359a
add esp, 0x18
test eax, eax
je 0x407b10
inc esi
add edi, 0x208
cmp esi, ebp
jb 0x407ad3
jmp 0x407b18
mov dword [esp + 0x10], 1
mov al, byte [0x44096c]
test al, 1
jne 0x407b43
mov dl, al
mov ecx, 0x440958
or dl, 1
mov byte [0x44096c], dl
call fcn.00422040
push 0x407cc0
call fcn.004137ad
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407c81
mov edx, dword [esp + 0x54c]
mov ecx, esi
shl ecx, 6
add ecx, esi
lea eax, [edx + ecx*8]
lea edx, [esp + 0x20]
lea ecx, [eax + 0x104]
push ecx
push eax
push 0x43c3fc
push 0x43c6c0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x440960]
mov ecx, dword [0x43c990]
add esp, 0x14
mov edi, eax
mov dword [esp + 0x10], ecx
xor esi, esi
mov byte [esp + 0x53c], 1
test eax, eax
jbe 0x407bed
lea edx, [esp + 0x18]
push esi
push edx
mov ecx, 0x440958
call fcn.00406320
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x540], 2
call fcn.00422b44
lea ecx, [esp + 0x18]
mov byte [esp + 0x53c], 1
call fcn.00422a0b
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.0041359a
add esp, 8
test eax, eax
je 0x407c40
inc esi
cmp esi, edi
jb 0x407b9f
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x28]
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407c5a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x53c], 0
call fcn.00422a0b
lea ecx, [esp + 0x14]
mov dword [esp + 0x53c], 0xffffffff
call fcn.00422a0b
xor eax, eax
jmp 0x407ca1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x53c], 0
call fcn.00422a0b
jmp 0x407c88
mov ecx, dword [0x440960]
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, 0x440958
call fcn.0042221c
lea ecx, [esp + 0x10]
mov byte [esp + 0x53c], 0
call fcn.00422a0b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x53c], 0xffffffff
call fcn.00422a0b
mov eax, 1
mov ecx, dword [esp + 0x534]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x530
ret 0x10