Function at 0x4166f0
Capabilities:
Copy file
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x404
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x24
mov esi, str.DEMBIN_VER:1.0_Supresoft_Inc._Format:_Tag_512Bytes__minX_double__minY_double__Kap_double__Dx_double__Dy_double__Cols_int__Rows_int__Z_float_...
lea edi, [esp + 0x10]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x5c
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0x1000
jne 0x4167df
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x416740
lea edi, [ebx + 8]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x2c]
push eax
mov eax, dword [ebx + 0x28]
push ecx
mov ecx, dword [ebx + 0x24]
push edx
mov edx, dword [ebx + 0x20]
push eax
mov eax, dword [ebx + 0x1c]
push ecx
mov ecx, dword [ebx + 0x18]
lea esi, [ebx + 8]
push edx
mov edx, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x10]
push ecx
mov ecx, dword [esi + 4]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
lea eax, [esp + 0x40]
push str.DEMBIN_VER:1.0_Supresoft_Inc._Format:_Tag_512Bytes__minX_double__minY_double__Kap_double__Dx_double__Dy_double__Cols_int__Rows_int__Z_float_...__.3lf__.3lf__.3lf__.3f__.3f__d__d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [ebp + 8]
push 0xc0000000
push ecx
call fcn.00415ce0
add esp, 0x40
mov dword [ebx + 0x48], eax
test eax, eax
je 0x41689f
cmp eax, 0xffffffff
je 0x41689f
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0xc]
push 0
push edx
lea ecx, [esp + 0x18]
push 0x200
push ecx
push eax
call edi
mov eax, dword [ebx + 0x48]
lea edx, [esp + 0xc]
push 0
push edx
push 0x30
push esi
push eax
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x4169aa
mov esi, dword [ebp + 8]
push 0x44ccec
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4168aa
mov ecx, dword [str.Can_not_open_file:]
mov eax, dword [0x44cce0]
mov edx, dword [0x44ccdc]
mov dword [esp + 0x210], ecx
mov ecx, dword [0x44cce4]
mov dword [esp + 0x218], eax
mov al, byte [0x44ccea]
mov dword [esp + 0x214], edx
mov dx, word [0x44cce8]
mov dword [esp + 0x21c], ecx
mov byte [esp + 0x222], al
mov ecx, 0x7b
xor eax, eax
lea edi, [esp + 0x223]
mov word [esp + 0x220], dx
lea edx, [esp + 0x210]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
lea eax, [esp + 0x218]
rep movsb byte es:[edi], byte [esi]
push eax
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x44c3dc
push edi
call dword [sym.imp.MSVCRT.dll_fscanf]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
push 6
lea edx, [esp + 0x24]
push str.DEMBIN
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x1c
test eax, eax
je 0x416914
lea eax, [esp + 0x10]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x10]
push ecx
push 0
push 0x44ce70
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x10]
push 1
push eax
push esi
call fcn.00416f60
add esp, 0xc
jmp 0x416937
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push Ordinal_3
push ecx
call fcn.00415ce0
add esp, 8
mov dword [ebx + 0x48], eax
test eax, eax
je 0x41689f
cmp eax, 0xffffffff
je 0x41689f
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0xc]
push 0
push edx
lea ecx, [esp + 0x18]
push 0x200
push ecx
push eax
call edi
mov eax, dword [ebx + 0x48]
lea edx, [esp + 0xc]
push 0
lea esi, [ebx + 8]
push edx
push 0x30
push esi
push eax
call edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x416c1c
mov ecx, 0xc
mov eax, 1
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x210]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x416a8c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x44ccec
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x416b3e
mov eax, dword [0x44ccdc]
mov ecx, dword [0x44cce0]
mov edx, dword [str.Can_not_open_file:]
mov dword [esp + 0x214], eax
mov ax, word [0x44cce8]
mov dword [esp + 0x218], ecx
mov cl, byte [0x44ccea]
mov dword [esp + 0x210], edx
mov edx, dword [0x44cce4]
mov word [esp + 0x220], ax
mov byte [esp + 0x222], cl
mov ecx, 0x7b
xor eax, eax
lea edi, [esp + 0x223]
mov dword [esp + 0x21c], edx
lea edx, [esp + 0x210]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
lea eax, [esp + 0x218]
rep movsb byte es:[edi], byte [esi]
push eax
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x416aa2
lea edi, [ebx + 8]
mov ecx, 0xc
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov edx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x2c]
push edx
mov edx, dword [ebx + 0x28]
push eax
mov eax, dword [ebx + 0x24]
push ecx
mov ecx, dword [ebx + 0x20]
push edx
mov edx, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x18]
lea edi, [ebx + 8]
push ecx
mov ecx, dword [ebx + 0x14]
push edx
mov edx, dword [ebx + 0x10]
push eax
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push edx
push eax
push ecx
lea edx, [esp + 0x40]
push str.DEMBIN_VER:1.0_Supresoft_Inc._Format:_Tag_512Bytes__minX_double__minY_double__Kap_double__Dx_double__Dy_double__Cols_int__Rows_int__Z_float_...__.3lf__.3lf__.3lf__.3f__.3f__d__d
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0xc0000000
push esi
call fcn.00415ce0
add esp, 0x40
mov dword [ebx + 0x48], eax
test eax, eax
je 0x41689f
cmp eax, 0xffffffff
je 0x41689f
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x18]
push 0x200
push edx
push eax
call esi
mov ecx, dword [ebx + 0x48]
lea eax, [esp + 0xc]
push 0
push eax
push 0x30
push edi
push ecx
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x44c3dc
push edi
call dword [sym.imp.MSVCRT.dll_fscanf]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
push 6
lea edx, [esp + 0x24]
push str.DEMBIN
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x1c
test eax, eax
je 0x416bbf
lea eax, [esp + 0x10]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x10]
push ecx
push 0
push 0x44ce70
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x10]
push 1
push eax
push esi
call fcn.00416f60
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xc0000000
push esi
call fcn.00415ce0
add esp, 8
mov dword [ebx + 0x48], eax
test eax, eax
je 0x41689f
cmp eax, 0xffffffff
je 0x41689f
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x18]
push 0x200
push edx
push eax
call edi
mov ecx, dword [ebx + 0x48]
lea eax, [esp + 0xc]
push 0
lea esi, [ebx + 8]
push eax
push 0x30
push esi
push ecx
call edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x416c1c
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc