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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x417e0e
push eax
mov eax, 0x1a84
mov dword fs:[0], esp
call fcn.00416730
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1a98], ebx
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1a98], 1
call sub.MFC42u.DLL_CString::CString_1
lea eax, [esp + 0x1290]
push 0x400
push eax
push ebx
mov byte [esp + 0x1aa4], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x1290]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x41217b
mov word [eax], bx
push ebx
lea ecx, [esp + 0x1aa8]
call sub.MFC42u.DLL_CString::GetBuffer
lea edx, [esp + 0x1290]
push eax
push edx
lea eax, [esp + 0x18]
push str._s_s.fbk
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x1aa4]
push ebx
call sub.MFC42u.DLL_CString::GetBuffer
lea ecx, [esp + 0x1290]
push eax
push ecx
lea edx, [esp + 0x14]
push str._s_s.raw
push edx
call sub.MFC42u.DLL_CString::Format
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xc51]
mov byte [esp + 0xc50], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x851]
mov byte [esp + 0x850], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
stosb byte es:[edi], al
push ebx
push ebx
lea eax, [esp + 0x28]
push 0x1e
push eax
push 0xffffffffffffffff
push 0x41d0f8
push ebx
push ebx
call esi
push ebx
push ebx
lea ecx, [esp + 0xc48]
push 0x400
push ecx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push ebx
push ebx
call esi
push ebx
push ebx
lea edx, [esp + 0x848]
push 0x400
push edx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push ebx
push ebx
call esi
lea eax, [esp + 0x1040]
push eax
push ebx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4122b5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x840]
lea edx, [esp + 0xc40]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00411ed0
add esp, 0x10
mov edx, dword [esp + 0xc]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], bx
push ebx
rep stosd dword es:[edi], eax
push 0x80
push 4
push ebx
push 1
push 0x40000000
push edx
stosw word es:[edi], ax
mov word [esp + 0x34], 0xd
mov word [esp + 0x36], 0xa
mov word [esp + 0x38], bx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4124b5
push ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
cmp eax, 0xb7
jne 0x412334
push 2
push 0
push 0xffffffffffffffe8
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
jmp 0x4123b4
push 0xfe
push 0xff
lea eax, [esp + 0x4c]
push str._C_C
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x18]
lea edi, [esp + 0x44]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call ebp
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x1aa8]
push eax
push 0
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x4c]
push str._product_name__s___s
push ecx
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x10
lea edx, [esp + 0x18]
lea eax, [esp + 0x44]
push 0
push edx
push eax
call edi
add esp, 4
lea ecx, [esp + 0x4c]
shl eax, 1
push eax
push ecx
push esi
call ebp
mov eax, dword [esp + 0x1aa4]
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x4c]
push str._zip_path___s___zip_path__s
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x18]
lea eax, [esp + 0x44]
push 0
push edx
push eax
call edi
add esp, 4
lea ecx, [esp + 0x4c]
shl eax, 1
push eax
push ecx
push esi
call ebp
lea edx, [esp + 0x1c]
lea eax, [esp + 0x44]
push edx
push str.__product__s
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x18]
lea edx, [esp + 0x44]
push 0
push ecx
push edx
call edi
add esp, 4
shl eax, 1
push eax
lea eax, [esp + 0x50]
push eax
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc44]
lea edx, [esp + 0x844]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00411ca0
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a9c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a9c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1aa8]
mov dword [esp + 0x1a9c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1a84]
mov dword fs:[0], ecx
add esp, 0x1a90
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x1a98], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a98], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1aa4]
mov dword [esp + 0x1a98], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1a90]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a90
ret