Function at 0x412f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 5
mov esi, str.CDlgXref::MakeXrefList
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x3d0]
call fcn.00401a10
mov byte [ebp - 0x3d4], 0
mov byte [ebp - 0x3d8], 0
call dword [sym.imp.Eqm.dll_int___cdecl_eqm_IsGopInitialized_void_]
test eax, eax
jne 0x412fb0
mov byte [ebp - 0x3d4], 1
push 0
push 0
call dword [sym.imp.Eqm.dll_int___cdecl_eqm_GopInit_int__class_CListCtrl__]
add esp, 8
test eax, eax
je 0x412f7b
push 0
call dword [sym.imp.Eqm.dll_int___cdecl_eqm_LoadGopIni_int_]
add esp, 4
test eax, eax
jne 0x412fb0
push 0xa
mov ax, word [0x4a90bc]
push eax
call sub.TraceAPI.dll_Ordinal_20
add esp, 8
test eax, eax
je 0x412fab
push str.Failed_to_initialize_and_load_EPEs_
lea ecx, [ebp - 0x1c]
push ecx
push 0xa
mov dx, word [0x4a90bc]
push edx
call sub.TraceAPI.dll_Ordinal_30_1
add esp, 0x10
jmp 0x41361a
call dword [sym.imp.Eqm.dll_int___cdecl_eqm_IsSWInitialized_void_]
test eax, eax
jne 0x413016
mov byte [ebp - 0x3d8], 1
push 0
push 0
call dword [sym.imp.Eqm.dll_int___cdecl_eqm_SWInit_int__class_CListCtrl__]
add esp, 8
test eax, eax
je 0x412fe1
push 0
call dword [sym.imp.Eqm.dll_int___cdecl_eqm_LoadSWList_int_]
add esp, 4
test eax, eax
jne 0x413016
push 0xa
mov ax, word [0x4a90bc]
push eax
call sub.TraceAPI.dll_Ordinal_20
add esp, 8
test eax, eax
je 0x413011
push str.Failed_to_initialize_and_load_EPARs_
lea ecx, [ebp - 0x1c]
push ecx
push 0xa
mov dx, word [0x4a90bc]
push edx
call sub.TraceAPI.dll_Ordinal_30_1
add esp, 0x10
jmp 0x41361a
push str._make_cross_reference_listing_
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.00411870
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.00412560
sub eax, 1
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.004117e0
push 0
push 4
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._s_recipe_r_cross.txt
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x498ee8
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2c0], 0
jne 0x413088
jmp 0x41361a
push str.Pcu_Nr_tPcu_Name_tGop_Nr_tGop_Name_tGopType_tTa_Nr_tTa_Name_tDFM_Nr_tDFM_Name_tDfm_Type_tDim_Name_tDep_tMin_tMax_tFile_Name_tComment_n
lea edx, [ebp - 0x19c]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x2c0]
push eax
push 1
lea ecx, [ebp - 0x19c]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x19c]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov dword [ebp - 0x2c4], 0
jmp 0x4130e0
mov eax, dword [ebp - 0x2c4]
add eax, 1
mov dword [ebp - 0x2c4], eax
call sub.WINDCS32.dll_Ordinal_59
cmp dword [ebp - 0x2c4], eax
jge 0x4135b3
mov ecx, dword [ebp - 0x2c4]
push ecx
call sub.WINDCS32.dll_Ordinal_61_1
mov dword [ebp - 0x2d4], eax
mov edx, dword [ebp - 0x2d4]
push edx
push str._making_list_for_pcu:_d_
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.00411870
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.00412560
sub eax, 1
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.004117e0
mov dword [ebp - 0x2c8], 1
jmp 0x413166
mov edx, dword [ebp - 0x2c8]
add edx, 1
mov dword [ebp - 0x2c8], edx
cmp dword [ebp - 0x2c8], 0x3e7
jg 0x4135ae
lea eax, [ebp - 0x388]
push eax
mov ecx, dword [ebp - 0x2c8]
push ecx
mov edx, dword [ebp - 0x2d4]
push edx
call dword [sym.imp.Eqm.dll_int___cdecl_eqm_GetGopDefinition_int__int__struct_GOPSRCSTRUCT__]
add esp, 0xc
test eax, eax
jne 0x41319a
jmp 0x413157
movsx eax, word [ebp - 0x384]
mov dword [ebp - 0x3dc], eax
cmp dword [ebp - 0x3dc], 0x41
je 0x4131bb
cmp dword [ebp - 0x3dc], 0x44
je 0x4131d1
jmp 0x4131e7
push str.alternative_prod.
lea ecx, [ebp - 0x1dc]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x4131fb
push str.dose_operation
lea edx, [ebp - 0x1dc]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x4131fb
push str.normal_operation
lea eax, [ebp - 0x1dc]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x2cc], 0
jmp 0x413216
mov ecx, dword [ebp - 0x2cc]
add ecx, 1
mov dword [ebp - 0x2cc], ecx
mov edx, dword [ebp - 0x2cc]
cmp edx, dword [ebp - 0x33e]
jge 0x4135a9
mov dword [ebp - 0x2d0], 0
jmp 0x413243
mov eax, dword [ebp - 0x2d0]
add eax, 1
mov dword [ebp - 0x2d0], eax
mov ecx, dword [ebp - 0x2d0]
cmp ecx, dword [ebp - 0x382]
jge 0x4135a4
lea edx, [ebp - 0x3d0]
push edx
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [ebp + eax*4 - 0x33a]
push ecx
mov edx, dword [ebp - 0x2d4]
push edx
call dword [sym.imp.Eqm.dll_int___cdecl_eqm_GetSWData_int__int__class_CSWTyp__]
add esp, 0xc
test eax, eax
jne 0x413280
jmp 0x413234
lea eax, [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x2d0]
xor edx, edx
mov dl, byte [ebp + ecx - 0x37e]
push edx
mov eax, dword [ebp - 0x2d4]
push eax
mov ecx, dword [ebp - 4]
call fcn.00413650
and eax, 0xff
test eax, eax
jne 0x4132db
mov ecx, dword [ebp - 0x2d0]
xor edx, edx
mov dl, byte [ebp + ecx - 0x37e]
push edx
mov eax, dword [ebp - 0x2d4]
push eax
push str.TA__d__d
lea ecx, [ebp - 0x1bc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, dword [ebp - 0x39b]
push edx
push 0x499190
lea eax, [ebp - 0x1fc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp - 0x39f]
push ecx
mov edx, dword [ebp - 0x39b]
push edx
lea eax, [ebp - 0x1fc]
push eax
call sub.WINDCS32.dll_Ordinal_84
mov ecx, dword [ebp - 0x397]
push ecx
push 0x499190
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp - 0x39f]
push eax
mov ecx, dword [ebp - 0x397]
push ecx
lea edx, [ebp - 0x21c]
push edx
call sub.WINDCS32.dll_Ordinal_84
mov eax, dword [ebp - 0x3a3]
mov dword [ebp - 0x3e0], eax
mov ecx, dword [ebp - 0x3e0]
sub ecx, 0x43
mov dword [ebp - 0x3e0], ecx
cmp dword [ebp - 0x3e0], 0x14
ja case.0x413379.4
mov eax, dword [ebp - 0x3e0]
xor edx, edx
mov dl, byte [eax + 0x413635]
jmp dword [edx*4 + 0x413621]
push str.Text
lea ecx, [ebp - 0x23c]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x4133ec
push str.Cond
lea edx, [ebp - 0x23c]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x4133ec
push str.16_bit
lea eax, [ebp - 0x23c]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x4133ec
push str.32_bit
lea ecx, [ebp - 0x23c]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x4133ec
push str.Setpoint
lea edx, [ebp - 0x23c]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x80
lea eax, [ebp - 0x2bc]
push eax
mov ecx, dword [ebp - 0x2cc]
mov edx, dword [ebp + ecx*4 - 0x33a]
push edx
mov eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.Eqm.dll_void___cdecl_eqm_GetSwComment_int__int__char___int_]
add esp, 0x10
lea ecx, [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x2d0]
xor eax, eax
mov al, byte [ebp + edx - 0x37e]
push eax
lea ecx, [ebp - 0x1dc]
push ecx
lea edx, [ebp - 0x2f9]
push edx
mov eax, dword [ebp - 0x2c8]
push eax
mov ecx, dword [ebp - 0x2c4]
push ecx
call sub.WINDCS32.dll_Ordinal_60_2
push eax
mov edx, dword [ebp - 0x2d4]
push edx
push str._d_t_s_t_d_t_s_t_s_t_d_t_s_t
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
mov ecx, dword [ebp - 0x2c0]
push ecx
push 1
lea edx, [ebp - 0x19c]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
lea ecx, [ebp - 0x3ae]
push ecx
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x1fc]
push eax
mov ecx, dword [ebp - 0x39f]
push ecx
lea edx, [ebp - 0x3bf]
push edx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x3d0]
push ecx
mov edx, dword [ebp - 0x2cc]
mov eax, dword [ebp + edx*4 - 0x33a]
and eax, 0x800000ff
jns 0x4134e0
dec eax
or eax, 0xffffff00
inc eax
push eax
mov ecx, dword [ebp - 0x2cc]
mov eax, dword [ebp + ecx*4 - 0x33a]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
push eax
push str._d._d_t_s_t_s_t_s_t_d_t_s_t_s_t_s_t
lea edx, [ebp - 0x19c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x2c
mov eax, dword [ebp - 0x2c0]
push eax
push 1
lea ecx, [ebp - 0x19c]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x19c]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 0x2c0]
push eax
push 1
lea ecx, [ebp - 0x2bc]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x2bc]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push 0x498f18
lea eax, [ebp - 0x19c]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov ecx, dword [ebp - 0x2c0]
push ecx
push 1
lea edx, [ebp - 0x19c]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
jmp 0x413234
jmp 0x413207
jmp 0x413157
jmp 0x4130d1
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.00411870
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.00412560
sub eax, 1
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x60
call fcn.004117e0
mov edx, dword [ebp - 0x2c0]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x3d4]
and eax, 0xff
test eax, eax
je 0x413604
call dword [sym.imp.Eqm.dll_int___cdecl_eqm_GopEnd_void_]
mov ecx, dword [ebp - 0x3d8]
and ecx, 0xff
test ecx, ecx
je 0x41361a
call dword [sym.imp.Eqm.dll_int___cdecl_eqm_SWEnd_void_]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret