Function at 0x416f60
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43de3b
push eax
mov dword fs:[0], esp
sub esp, 0x7e4
lea eax, [esp + 0x6a4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x800]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x416fa6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4179c9
cmp dword [esp + 0x6d4], 0x20000000
jae 0x41742a
mov ebp, 0x4425c0
xor ebx, ebx
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x54]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x84], ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x94], ebx
push 1
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x804], ebx
call fcn.004134a0
test al, al
jne 0x417066
mov eax, dword [esp + 0x84]
mov dword [esp + 0x7fc], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x4c], ebp
je 0x41702c
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x54]
mov dword [esp + 0x84], ebx
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x4c]
call dword [edx + 0x10]
mov eax, dword [esp + 0x94]
cmp eax, ebx
je 0x4179c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4179c9
mov ebp, dword [esp + 0x808]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jae 0x417085
xor bl, bl
jmp 0x4173c7
push 0x44cc1c
push ebp
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x417143
mov eax, dword [str.Can_not_open_file:]
mov ecx, dword [0x44ccdc]
mov edx, dword [0x44cce0]
mov dword [esp + 0xb4], eax
mov eax, dword [0x44cce4]
mov dword [esp + 0xb8], ecx
mov cx, word [0x44cce8]
mov dword [esp + 0xbc], edx
mov dl, byte [0x44ccea]
mov dword [esp + 0xc0], eax
mov word [esp + 0xc4], cx
mov ecx, 0x7b
xor eax, eax
lea edi, [esp + 0xc7]
mov byte [esp + 0xc6], dl
lea edx, [esp + 0xb4]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, ebp
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 + 0xbc]
rep movsb byte es:[edi], byte [esi]
push eax
call sub.MFC42.DLL_AfxMessageBox
xor bl, bl
jmp 0x4173c7
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4b4]
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 + 0x4b4]
push ecx
call dword [sym.imp.MSVCRT.dll__strlwr]
lea edx, [esp + 0x4b8]
push 0x2e
push edx
mov esi, str..tif
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0xc
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4171b7
test cl, cl
je 0x4171b3
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4171b7
add eax, 2
add esi, 2
test cl, cl
jne 0x41718f
xor eax, eax
jmp 0x4171bc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4173ab
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
push eax
lea ecx, [esp + 0x2e8]
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 ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0xc0000000
push ebp
call fcn.00415ce0
mov esi, eax
add esp, 0x44
test esi, esi
je 0x41713c
cmp esi, 0xffffffff
je 0x41713c
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x2bc]
push 0x200
push eax
push esi
call edi
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x5c]
push 0x30
push edx
push esi
call edi
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x84]
xor edi, edi
lea ebx, [eax*4]
mov eax, dword [esp + 0x80]
test eax, eax
jle 0x4172b0
lea ecx, [esp + 0x10]
push 0
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x80]
inc edi
add ebp, ebx
cmp edi, eax
jl 0x417292
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x7c]
imul edx, dword [esp + 0x80]
shl edx, 2
cmp edx, 0x4000000
jbe 0x4173a7
mov edi, dword [esp + 0x808]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2b4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x44cc1c
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2b8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..hdr
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
lea eax, [esp + 0x2b8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4173a7
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push ecx
push edx
push eax
push str._.12lf__.12lf__.12lf__.12lf__.12lf__d__d
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x3c
mov bl, 1
jmp 0x4173c7
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x4c]
push 1
push ebp
call fcn.004179f0
mov bl, al
mov eax, dword [esp + 0x84]
mov dword [esp + 0x7fc], 0xffffffff
test eax, eax
mov dword [esp + 0x4c], 0x4425c0
je 0x4173ee
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x54]
mov dword [esp + 0x84], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x4c]
call dword [edx + 0x10]
mov eax, dword [esp + 0x94]
test eax, eax
je 0x417423
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x4179cb
mov ebp, dword [esp + 0x808]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xb4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x44cf04
rep movsb byte es:[edi], byte [esi]
mov edi, str..hdr
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
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
mov dword [esp + 0x1c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xc
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
call edi
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x417564
mov eax, dword [str.Can_not_open_file:]
mov ecx, dword [0x44ccdc]
mov edx, dword [0x44cce0]
mov dword [esp + 0x4b4], eax
mov eax, dword [0x44cce4]
mov dword [esp + 0x4b8], ecx
mov cx, word [0x44cce8]
mov dword [esp + 0x4bc], edx
mov dl, byte [0x44ccea]
mov dword [esp + 0x4c0], eax
mov word [esp + 0x4c4], cx
mov ecx, 0x7b
xor eax, eax
lea edi, [esp + 0x4c7]
mov byte [esp + 0x4c6], dl
lea edx, [esp + 0x4b4]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 eax, dword [esp + 0x80c]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x4179c9
push 0
lea eax, [esp + 0x4b8]
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox
jmp 0x4179c9
push 0x400000
call sub.MFC42.DLL_operatornew
mov esi, dword [esp + 0x808]
push 0x44ccec
push esi
mov ebp, eax
call edi
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [esp + 0x18], edi
jne 0x417648
mov ecx, dword [str.Can_not_open_file:]
mov eax, dword [0x44cce0]
mov edx, dword [0x44ccdc]
mov dword [esp + 0x2b4], ecx
mov ecx, dword [0x44cce4]
mov dword [esp + 0x2bc], eax
mov al, byte [0x44ccea]
mov dword [esp + 0x2b8], edx
mov dx, word [0x44cce8]
mov dword [esp + 0x2c0], ecx
mov byte [esp + 0x2c6], al
mov ecx, 0x7b
xor eax, eax
lea edi, [esp + 0x2c7]
mov word [esp + 0x2c4], dx
lea edx, [esp + 0x2b4]
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
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x80c]
mov ecx, ebp
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x417639
push 0
lea eax, [esp + 0x2b8]
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x4179c9
lea ecx, [esp + 0x48]
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
push str._lf_lf_lf_lf_lf_d_d
push edi
call dword [sym.imp.MSVCRT.dll_fscanf]
add esp, 0x24
cmp eax, 7
jge 0x417693
mov eax, dword [esp + 0x80c]
test eax, eax
je 0x4179ba
jmp 0x4179ac
fld qword [esp + 0x34]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x41
jne 0x4179a1
fld qword [esp + 0x3c]
fcomp qword [0x442618]
fnstsw ax
test ah, 0x41
jne 0x4179a1
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x4179a1
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x4179a1
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0xb4]
lea edx, [esp + 0xb4]
rep stosd dword es:[edi], eax
mov edi, 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_...
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x200
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
lea ecx, [esp + 0xc0]
push ecx
call esi
push ebx
push 1
lea edx, [esp + 0x34]
push 0x30
push edx
call esi
lea eax, [esp + 0xd4]
push 0x44cc1c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x28
test esi, esi
je 0x41779e
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
push str._.12lf__.12lf__.12lf__.12lf__.12lf__d__d
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x3c
mov edx, dword [esp + 0x18]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xb4]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xb4]
push ecx
push 0x44c3dc
push edx
call dword [sym.imp.MSVCRT.dll_fscanf]
lea eax, [esp + 0xc0]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0x14
test eax, eax
je 0x4178a4
lea ecx, [esp + 0xb4]
push ecx
call dword [sym.imp.MSVCRT.dll_atof]
fst dword [esp + 0x18]
fstp dword [ebp]
mov eax, dword [esp + 0x4c]
add esp, 4
test eax, eax
mov esi, 1
mov dword [esp + 0x10], 0
jle 0x417972
mov eax, dword [esp + 0x44]
xor edi, edi
test eax, eax
jle 0x41788a
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x417828
test edi, edi
je 0x417881
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push 0x44cc6c
push eax
call dword [sym.imp.MSVCRT.dll_fscanf]
fld dword [esp + 0x20]
fcomp qword [0x442680]
add esp, 0xc
fnstsw ax
test ah, 1
je 0x417859
mov dword [esp + 0x14], 0xc7c34f80
fld dword [esp + 0x14]
fstp dword [ebp + esi*4]
inc esi
cmp esi, 0x100000
jl 0x417881
push ebx
lea ecx, [esi*4]
push 1
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
xor esi, esi
mov eax, dword [esp + 0x44]
inc edi
cmp edi, eax
jl 0x41781c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x417812
jmp 0x417972
lea edx, [esp + 0xb4]
push edx
call dword [sym.imp.MSVCRT.dll_atof]
fmul dword [0x442600]
add esp, 4
mov esi, 1
mov dword [esp + 0x10], 0
fst dword [esp + 0x14]
fstp dword [ebp]
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x417972
mov eax, dword [esp + 0x44]
xor edi, edi
test eax, eax
jle 0x41795d
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4178f1
test edi, edi
je 0x417954
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0x44cc6c
push ecx
call dword [sym.imp.MSVCRT.dll_fscanf]
fld dword [esp + 0x20]
fcomp dword [0x442624]
add esp, 0xc
fnstsw ax
test ah, 1
je 0x417922
fld dword [0x44268c]
jmp 0x41792c
fld dword [esp + 0x14]
fmul dword [0x442600]
fst dword [esp + 0x14]
fstp dword [ebp + esi*4]
inc esi
cmp esi, 0x100000
jl 0x417954
push ebx
lea edx, [esi*4]
push 1
push edx
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
xor esi, esi
mov eax, dword [esp + 0x44]
inc edi
cmp edi, eax
jl 0x4178e5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4178db
push ebx
lea eax, [esi*4]
push 1
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push ecx
call esi
push ebx
call esi
add esp, 0x1c
mov al, 1
jmp 0x4179cb
mov eax, dword [esp + 0x80c]
test eax, eax
je 0x4179ba
push 0
push 0
push str.Invalidate_VirtuoZo_Dem_format
call sub.MFC42.DLL_AfxMessageBox
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push edi
call esi
push ebx
call esi
add esp, 8
xor al, al
mov ecx, dword [esp + 0x7f4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x7f0
ret