Function at 0x49aee0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c0
mov eax, dword [0x4b3008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x7c1e60]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x7c1d48
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0x10c]
push str._sresult.InOut.dat
push eax
mov dword [ebp - 0x314], esi
call fcn.00404440
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
lea eax, [ebp - 0x10c]
add esp, 0xc
push 0x4a6fb8
push eax
call ebx
add esp, 8
mov dword [ebp - 0x310], eax
test eax, eax
je 0x49bb41
push str.P_T_Ro_
push eax
call fcn.00411e60
mov edx, dword [esi + 0x100]
add esp, 8
mov eax, dword [esi + 0x104]
movsd xmm0, qword [0x4af658]
mov dword [ebp - 0x320], edx
mov dword [ebp - 0x32c], eax
cmp edx, eax
je 0x49b71a
nop
mov edi, dword [edx]
mov dword [ebp - 0x328], edi
cmp dword [edi + 0x6c], 5
jge 0x49b703
mov eax, dword [esi + 0x154]
mov ecx, dword [esi + 0x158]
cmp eax, ecx
je 0x49afbf
mov edx, dword [edi + 8]
mov ebx, dword [eax]
mov dword [ebp - 0x318], ebx
cmp dword [ebx + 0x10], edx
je 0x49afd6
add eax, 4
cmp eax, ecx
jne 0x49afa5
mov edx, dword [ebp - 0x320]
cmp dword [0x7c1d2c], 6
mov dword [ebp - 0x318], 0
jne 0x49b6fd
cmp dword [0x7c1e70], 5
lea esi, [edi + 0x150]
movsd qword [ebp - 0x34c], xmm0
movsd qword [ebp - 0x344], xmm0
jne 0x49b088
movsd xmm0, qword [edi + 0x108]
lea eax, [ebp - 0x338]
mulsd xmm0, qword [0x4ae888]
lea ecx, [edi + 0x100]
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [edi + 0x110]
movsd qword [esp], xmm0
push 1
push eax
push esi
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x37c]
push eax
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x3ac]
push eax
call fcn.00431c40
movsd xmm0, qword [esi]
lea eax, [ebp - 0x30c]
sub esp, 0x38
movsd qword [esp + 0x30], xmm0
movups xmm0, xmmword [edi + 0x140]
movups xmmword [esp + 0x20], xmm0
movsd xmm0, qword [edi + 0x118]
mulsd xmm0, qword [0x4aeb28]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [edi + 0x130]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [edi + 0x110]
subsd xmm0, qword [0x4af658]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [edi + 0x108]
mulsd xmm0, qword [0x4ae8b0]
movsd qword [esp], xmm0
push str._lf__lf__lf__lf__lf__lf__lf
push eax
call fcn.00404440
mov ebx, dword [sym.imp.VCRUNTIME140.dll_strstr]
lea eax, [ebp - 0x30c]
push 0x4ae200
push eax
call ebx
add esp, 0x48
test eax, eax
jne 0x49b7da
lea eax, [ebp - 0x30c]
push 0x4ae204
push eax
call ebx
add esp, 8
test eax, eax
jne 0x49b7da
xorps xmm3, xmm3
lea ebx, [eax + 1]
comisd xmm3, xmmword [edi + 0x118]
jbe 0x49b16d
mov eax, dword [edi + 0x58]
cmp eax, ebx
je 0x49b158
cmp dword [edi + 0x14], 0
jne 0x49b16a
jmp 0x49b16d
mov ecx, dword [edi + 0x14]
cmp ecx, 1
je 0x49b16a
cmp eax, 1
jne 0x49b16d
cmp ecx, 2
jne 0x49b16d
or ebx, 0xffffffff
mov ecx, dword [edi + 0x24f4]
mov eax, dword [edi + 0x24f0]
mov dword [ebp - 0x324], ecx
mov dword [ebp - 0x31c], eax
cmp eax, ecx
je 0x49b6e9
nop dword [eax]
mov esi, dword [eax]
mov eax, dword [ebp - 0x318]
movsd xmm0, qword [edi + 0x108]
movsd xmm1, qword [eax + 0x68]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x49b1bd
cmp dword [0x7c1d2c], 6
je 0x49b1bd
movsd qword [esi + 8], xmm1
mov edx, dword [0x7c1e70]
cmp edx, 5
jne 0x49b284
movsd xmm0, qword [esi + 8]
lea eax, [ebp - 0x338]
mulsd xmm0, qword [0x4ae888]
lea edi, [esi + 0x50]
sub esp, 0x10
mov ecx, esi
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esi + 0x10]
movsd qword [esp], xmm0
push 1
push eax
push edi
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x374]
push eax
lea eax, [ebp - 0x37c]
push eax
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x394]
push eax
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x3ac]
push eax
call fcn.00431c40
movsd xmm0, qword [esi + 8]
lea eax, [ebp - 0x344]
movsd xmm3, qword [esi + 0x10]
sub esp, 8
mov ecx, esi
movsd qword [esp], xmm0
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.00434bc0
mov edx, dword [0x7c1e70]
xorps xmm3, xmm3
xorps xmm2, xmm2
cmp edx, 2
jge 0x49b2e6
movsd xmm5, qword [esi + 0x30]
movsd xmm1, qword [esi + 0x48]
movaps xmm2, xmm5
mulsd xmm2, qword [0x4aed38]
movaps xmm0, xmm1
mulsd xmm0, qword [0x4aed90]
movsd xmm6, qword [0x4ae9b8]
addsd xmm2, qword [0x4aeaa0]
movsd xmm4, qword [esi + 0x40]
movsd xmm7, qword [0x4af6e8]
mulsd xmm0, xmm6
subsd xmm2, xmm0
movaps xmm0, xmm4
mulsd xmm0, xmm6
subsd xmm2, xmm0
mulsd xmm2, qword [0x4af830]
jmp 0x49b340
mov eax, 0x4a3168
lea ecx, [esi + 0x2030]
movsd xmm1, qword [ecx - 8]
mulsd xmm1, qword [eax - 8]
movsd xmm0, qword [ecx]
add ecx, 0x10
mulsd xmm0, qword [eax]
add eax, 0x10
addsd xmm2, xmm1
addsd xmm2, xmm0
cmp eax, 0x4a3218
jl 0x49b2f1
movsd xmm7, qword [0x4af6e8]
movsd xmm5, qword [esi + 0x30]
movsd xmm1, qword [esi + 0x48]
movsd xmm4, qword [esi + 0x40]
movsd xmm6, qword [0x4ae9b8]
mulsd xmm2, xmm7
divsd xmm2, qword [esi + 0x38]
mov ecx, 0x2030
mov eax, esi
lea edi, [eax + ecx]
cmp edx, 2
jge 0x49b38a
movaps xmm0, xmm1
movaps xmm3, xmm5
mulsd xmm3, qword [0x4aed30]
mulsd xmm0, qword [0x4aeda0]
addsd xmm3, qword [0x4aeac0]
mulsd xmm0, xmm6
subsd xmm3, xmm0
movaps xmm0, xmm4
mulsd xmm0, xmm6
subsd xmm3, xmm0
mulsd xmm3, qword [0x4af840]
jmp 0x49b3d0
mov eax, 0x4a30b8
mov ecx, edi
movsd xmm1, qword [ecx - 8]
mulsd xmm1, qword [eax - 8]
movsd xmm0, qword [ecx]
add ecx, 0x10
mulsd xmm0, qword [eax]
add eax, 0x10
addsd xmm3, xmm1
addsd xmm3, xmm0
cmp eax, 0x4a3168
jl 0x49b391
movsd xmm5, qword [esi + 0x30]
movsd xmm1, qword [esi + 0x48]
movsd xmm4, qword [esi + 0x40]
mulsd xmm3, xmm7
divsd xmm3, qword [esi + 0x38]
movsd xmm6, qword [0x4af658]
sub esp, 0x60
movsd xmm0, qword [ebp - 0x344]
movsd xmm7, qword [ebp - 0x34c]
subsd xmm0, xmm6
mov eax, dword [ebp - 0x328]
subsd xmm7, xmm6
movsd qword [esp + 0x58], xmm0
movsd qword [esp + 0x50], xmm7
movsd qword [ebp - 0x3b4], xmm0
movsd xmm0, qword [eax + 0xa0]
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [esi + 0x50]
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [esi + 0x18]
mulsd xmm0, qword [0x4aeb28]
movsd qword [esp + 0x38], xmm1
movd xmm1, ebx
cvtdq2pd xmm1, xmm1
movsd qword [esp + 0x30], xmm4
mulsd xmm0, xmm1
movsd qword [ebp - 0x3bc], xmm7
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [esi + 0x10]
movsd qword [esp + 0x20], xmm3
subsd xmm0, xmm6
movsd qword [esp + 0x18], xmm2
movsd qword [esp + 0x10], xmm5
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esi + 8]
mulsd xmm0, qword [0x4ae8b0]
movsd qword [esp], xmm0
push dword [esi + 0x20]
push str._d__lf__lf__lf__lf__lf__lf__lf__lf__lf__lf__lf__lf_n
push dword [ebp - 0x310]
call fcn.00411e60
mov eax, dword [ebp - 0x328]
add esp, 0x6c
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x330], ecx
test ecx, ecx
jle 0x49b6c5
mov edx, dword [0x7c1e70]
xorps xmm2, xmm2
xorps xmm3, xmm3
cmp edx, 2
jge 0x49b524
movsd xmm5, qword [esi + 0x30]
movsd xmm1, qword [esi + 0x48]
movaps xmm3, xmm5
mulsd xmm3, qword [0x4aed38]
movaps xmm0, xmm1
mulsd xmm0, qword [0x4aed90]
movsd xmm6, qword [0x4ae9b8]
addsd xmm3, qword [0x4aeaa0]
movsd xmm4, qword [esi + 0x40]
movsd xmm7, qword [0x4af6e8]
mulsd xmm0, xmm6
subsd xmm3, xmm0
movaps xmm0, xmm4
mulsd xmm0, xmm6
subsd xmm3, xmm0
mulsd xmm3, qword [0x4af830]
jmp 0x49b585
mov eax, 0x4a3168
mov ecx, edi
nop dword [eax + eax]
movsd xmm1, qword [ecx - 8]
mulsd xmm1, qword [eax - 8]
movsd xmm0, qword [ecx]
add ecx, 0x10
mulsd xmm0, qword [eax]
add eax, 0x10
addsd xmm3, xmm1
addsd xmm3, xmm0
cmp eax, 0x4a3218
jl 0x49b530
movsd xmm7, qword [0x4af6e8]
movsd xmm5, qword [esi + 0x30]
movsd xmm1, qword [esi + 0x48]
movsd xmm4, qword [esi + 0x40]
movsd xmm6, qword [0x4ae9b8]
mov ecx, dword [ebp - 0x330]
mulsd xmm3, xmm7
divsd xmm3, qword [esi + 0x38]
cmp edx, 2
jge 0x49b5c5
movaps xmm0, xmm1
movaps xmm2, xmm5
mulsd xmm2, qword [0x4aed30]
mulsd xmm0, qword [0x4aeda0]
addsd xmm2, qword [0x4aeac0]
mulsd xmm0, xmm6
subsd xmm2, xmm0
movaps xmm0, xmm4
mulsd xmm0, xmm6
subsd xmm2, xmm0
mulsd xmm2, qword [0x4af840]
jmp 0x49b60f
mov eax, 0x4a30b8
nop word [eax + eax]
movsd xmm1, qword [edi - 8]
mulsd xmm1, qword [eax - 8]
movsd xmm0, qword [eax]
add eax, 0x10
mulsd xmm0, qword [edi]
add edi, 0x10
addsd xmm2, xmm1
addsd xmm2, xmm0
cmp eax, 0x4a3168
jl 0x49b5d0
movsd xmm1, qword [esi + 0x48]
movsd xmm4, qword [esi + 0x40]
movsd xmm5, qword [esi + 0x30]
mulsd xmm2, xmm7
divsd xmm2, qword [esi + 0x38]
movsd xmm0, qword [ebp - 0x3b4]
sub esp, 0x60
mov edi, dword [ebp - 0x328]
movsd qword [esp + 0x58], xmm0
movsd xmm0, qword [ebp - 0x3bc]
movsd qword [esp + 0x50], xmm0
movsd xmm0, qword [edi + 0xa0]
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [esi + 0x50]
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [esi + 0x18]
mulsd xmm0, qword [0x4aeb28]
movsd qword [esp + 0x38], xmm1
movd xmm1, ebx
cvtdq2pd xmm1, xmm1
movsd qword [esp + 0x30], xmm4
mulsd xmm0, xmm1
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [esi + 0x10]
subsd xmm0, qword [0x4af658]
movsd qword [esp + 0x20], xmm2
movsd qword [esp + 0x18], xmm3
movsd qword [esp + 0x10], xmm5
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esi + 8]
mulsd xmm0, qword [0x4ae8b0]
movsd qword [esp], xmm0
push ecx
push str._d__lf__lf__lf__lf__lf__lf__lf__lf__lf__lf__lf__lf_n
push dword [ebp - 0x310]
call fcn.00411e60
add esp, 0x6c
jmp 0x49b6cb
mov edi, dword [ebp - 0x328]
mov eax, dword [ebp - 0x31c]
xorps xmm3, xmm3
add eax, 4
mov dword [ebp - 0x31c], eax
cmp eax, dword [ebp - 0x324]
jne 0x49b190
mov edx, dword [ebp - 0x320]
mov esi, dword [ebp - 0x314]
movsd xmm0, qword [0x4af658]
mov eax, dword [ebp - 0x32c]
add edx, 4
mov dword [ebp - 0x320], edx
cmp edx, eax
jne 0x49af80
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
push dword [ebp - 0x310]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp dword [0x7c1e70], 1
jle 0x49bb41
push 0x7c1d48
lea eax, [ebp - 0x10c]
push str._sresult.InOutComp.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0x4a6fb8
push eax
call ebx
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x49bb41
push 0x4a7e18
push ebx
call fcn.00411e60
mov edi, dword [esi + 0x104]
add esp, 8
mov dword [ebp - 0x310], edi
mov edi, dword [esi + 0x100]
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x318], edi
cmp edi, eax
je 0x49b964
nop
mov edi, dword [edi]
cmp dword [edi + 0x6c], 5
jge 0x49b94d
mov ecx, dword [esi + 0x154]
mov edx, dword [esi + 0x158]
cmp ecx, edx
je 0x49b94d
mov esi, dword [edi + 8]
mov eax, dword [ecx]
cmp dword [eax + 0x10], esi
je 0x49b87f
add ecx, 4
cmp ecx, edx
jne 0x49b7c3
jmp 0x49b941
push dword [ebp - 0x310]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea eax, [ebp - 0x10c]
add esp, 4
push eax
call esi
add esp, 4
lea eax, [ebp - 0x10c]
push 0x7c1d48
push str._sBalance.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call esi
add esp, 4
lea eax, [ebp - 0x10c]
push 0x7c1d48
push str._sError.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call esi
mov esi, dword [ebp - 0x314]
add esp, 4
mov ecx, dword [ebp - 0x334]
push 0
push esi
push 0x378
call fcn.00479790
push ecx
push esi
push esi
push ecx
call fcn.004774b0
mov eax, 0x378
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x24f4]
mov eax, dword [edi + 0x24f0]
mov dword [ebp - 0x330], ecx
mov dword [ebp - 0x31c], eax
cmp eax, ecx
je 0x49b941
nop
mov esi, dword [eax]
mov dword [ebp - 0x324], esi
push dword [esi + 0x20]
push 0x4a26ac
push ebx
call fcn.00411e60
add esp, 0xc
mov edi, 0x16
add esi, 0x2028
nop dword [eax]
nop dword [eax + eax]
movsd xmm0, qword [esi]
sub esp, 8
mulsd xmm0, qword [0x4af5d0]
movsd qword [esp], xmm0
push str.__lf
push ebx
call fcn.00411e60
add esp, 0x10
lea esi, [esi + 8]
sub edi, 1
jne 0x49b8d0
mov eax, dword [ebp - 0x324]
sub esp, 8
movsd xmm0, qword [eax + 0x68]
movsd qword [esp], xmm0
push str.__lf
push ebx
call fcn.00411e60
push 0x4a7b04
push ebx
call fcn.00411e60
mov eax, dword [ebp - 0x31c]
add esp, 0x18
add eax, 4
mov dword [ebp - 0x31c], eax
cmp eax, dword [ebp - 0x330]
jne 0x49b8a0
mov eax, dword [ebp - 0x310]
mov esi, dword [ebp - 0x314]
mov edi, dword [ebp - 0x318]
add edi, 4
mov dword [ebp - 0x318], edi
cmp edi, eax
jne 0x49b7a0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp dword [0x7c1e70], 4
jl 0x49bb2f
cmp dword [0x7c1e4c], 0
jne 0x49bb2f
push 0x7c1d48
lea eax, [ebp - 0x10c]
push str._sPhase_diagramIO.dat
push eax
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0x4a6fb8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
mov dword [ebp - 0x31c], esi
test esi, esi
je 0x49bb41
mov edx, dword [ebp - 0x314]
mov ebx, dword [edx + 0x104]
mov dword [ebp - 0x310], ebx
mov ebx, dword [edx + 0x100]
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x320], ebx
cmp ebx, eax
je 0x49bb25
mov ebx, dword [ebx]
cmp dword [ebx + 0x6c], 5
jge 0x49bb0e
mov ecx, dword [edx + 0x154]
mov edx, dword [edx + 0x158]
cmp ecx, edx
je 0x49bb08
mov edi, dword [ebx + 8]
mov eax, dword [ecx]
cmp dword [eax + 0x10], edi
je 0x49ba28
add ecx, 4
cmp ecx, edx
jne 0x49ba15
jmp 0x49bb02
mov ecx, dword [ebx + 0x24f4]
mov eax, dword [ebx + 0x24f0]
mov dword [ebp - 0x324], ecx
mov dword [ebp - 0x318], eax
cmp eax, ecx
je 0x49bb02
nop dword [eax + eax]
mov ebx, dword [eax]
mov ecx, ebx
call fcn.004359d0
push dword [ebx + 0xe0]
push dword [ebx + 0x20]
push str._d__d_n
push esi
call fcn.00411e60
mov edi, 1
add esp, 0x10
cmp dword [ebx + 0xe0], edi
jl 0x49bae7
lea esi, [ebx + 0xf0]
nop word [eax + eax]
movsd xmm0, qword [esi + 0xfa0]
sub esp, 0x10
mulsd xmm0, qword [0x4af888]
mulsd xmm0, qword [0x4ae8b0]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esi]
subsd xmm0, qword [0x4af658]
movsd qword [esp], xmm0
push str._lf__lf_n
push dword [ebp - 0x31c]
call fcn.00411e60
inc edi
add esp, 0x18
add esi, 8
cmp edi, dword [ebx + 0xe0]
jle 0x49ba90
mov esi, dword [ebp - 0x31c]
mov eax, dword [ebp - 0x318]
add eax, 4
mov dword [ebp - 0x318], eax
cmp eax, dword [ebp - 0x324]
jne 0x49ba50
mov eax, dword [ebp - 0x310]
mov edx, dword [ebp - 0x314]
mov ebx, dword [ebp - 0x320]
add ebx, 4
mov dword [ebp - 0x320], ebx
cmp ebx, eax
jne 0x49b9f2
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov esi, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x334]
push esi
call fcn.004997f0
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a034d
mov esp, ebp
pop ebp
ret 4