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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40dc1b
push eax
mov eax, 0x1d24
mov dword fs:[0], esp
call fcn.0040cf20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x7c]
mov ecx, dword [eax - 8]
mov dl, byte [eax + ecx - 1]
cmp dl, 0x5c
je 0x4084e9
cmp dl, 0x2f
je 0x4084e9
push eax
lea ecx, [esp + 0x41c]
push 0x413190
push ecx
jmp 0x4084fa
mov edx, dword [ebp + 0x7c]
lea eax, [esp + 0x418]
push edx
push 0x4125fc
push eax
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
call ebx
mov al, byte [0x4138fc]
add esp, 0xc
test al, al
jne 0x40851d
lea ecx, [esp + 0x418]
push ecx
mov ecx, ebp
call fcn.00409d10
lea edi, [esp + 0x418]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jbe 0x40858f
lea edx, [esp + 0x418]
push edx
call fcn.00403830
add esp, 4
test eax, eax
jne 0x40858f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x41c]
push eax
lea ecx, [esp + 0x20]
push 0x413170
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x18]
lea ecx, [ebp + 0xd0]
push edx
call fcn.004041e0
push 0
lea eax, [esp + 0x1c]
push 0x4125d4
push eax
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
xor eax, eax
jmp 0x4087e5
lea ecx, [esp + 0x10]
push ecx
push 0x41316c
push 0x89
push 0
call fcn.00403bd0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x428]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
lea edx, [esp + 0x818]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x818], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x818]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.setup.tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 2
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x82c]
push 0xc0000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x40867e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x418]
push eax
push ecx
lea edx, [esp + 0x20]
push 0x413140
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x18]
lea ecx, [ebp + 0xd0]
push eax
call fcn.004041e0
push 0
lea ecx, [esp + 0x1c]
push 0x4125d4
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
xor eax, eax
jmp 0x4087e5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4086da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x1c]
push 0x413128
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [ebp + 0xd0]
push eax
call fcn.004041e0
push 0
lea ecx, [esp + 0x1c]
push 0x4125d4
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
xor eax, eax
jmp 0x4087e5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x112c]
call fcn.00404ff0
mov edx, dword [ebp + 0xcc]
mov ecx, dword [esp + 0x1d44]
lea eax, [ebp + 0x4dc]
push edx
push eax
lea edx, [esp + 0x420]
push ecx
lea eax, [esp + 0x824]
push edx
push eax
lea ecx, [esp + 0x1140]
mov dword [esp + 0x1d50], 0
call fcn.00405060
test eax, eax
je 0x408762
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
push 0x412ebc
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x18]
lea ecx, [ebp + 0xd0]
push edx
call fcn.004041e0
push 0
lea eax, [esp + 0x1c]
push 0x4125d4
push eax
jmp 0x4087af
lea ecx, [esp + 0x818]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4087cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0xd30]
push 0x413108
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0xd2c]
lea ecx, [ebp + 0xd0]
push eax
call fcn.004041e0
push 0
lea ecx, [esp + 0xd30]
push 0x4125d4
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x112c]
mov dword [esp + 0x1d3c], edi
call fcn.00405050
xor eax, eax
jmp 0x4087e5
lea ecx, [esp + 0x112c]
mov dword [esp + 0x1d3c], edi
call fcn.00405050
mov eax, 1
mov ecx, dword [esp + 0x1d34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1d30
ret 4