Function at 0x43dcf8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10c
mov dword [ebp - 0xbc], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x48]
cdq
mov ebx, edx
xor ebx, dword [ebp - 0x2c]
mov ecx, eax
xor ecx, dword [ebp - 0x30]
or ecx, ebx
test ecx, ecx
jne 0x43dda5
mov ecx, dword [ebp - 0xbc]
mov ecx, dword [ecx + 0x4c]
mov ebx, ecx
sar ebx, 0x1f
mov esi, ebx
xor esi, dword [ebp - 0x24]
xor ecx, dword [ebp - 0x28]
or ecx, esi
test ecx, ecx
jne 0x43dda5
mov ecx, dword [ebp - 0xbc]
mov ebx, dword [ecx + 0x50]
mov ecx, dword [ebp - 0xbc]
mov ecx, dword [ecx + 0x178]
cmp ebx, ecx
je 0x43e70d
mov ecx, dword [ebp - 0xbc]
mov ecx, dword [ecx + 0x188]
cmp ecx, 3
jne 0x43e110
mov eax, dword [ebp + 0x18]
shl eax, 2
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, edx
mov dword [ebp - 0xd4], eax
fild dword [ebp - 0xd4]
fstp dword [ebp - 0x1c]
mov eax, dword [ebp - 0xbc]
fld qword [eax + 0x10]
fild dword [ebp + 0x1c]
fst qword [ebp - 0xe8]
fmulp st(1)
fld qword [0x462380]
fdivp st(1)
fild dword [ebp + 0x18]
fmulp st(1)
fld qword [0x4623a0]
fmulp st(1)
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fld dword [0x4623a8]
fmulp st(1)
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fldz
fxch st(1)
fucompi st(1)
fstp st(0)
jbe 0x43dff9
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax + 0x17c]
test al, al
je 0x43dee4
mov eax, dword [ebp - 0xbc]
mov edx, dword [eax + 0x170]
fld dword [ebp - 0x20]
fld dword [0x4623ac]
fmulp st(1)
fnstcw word [ebp - 0xd6]
movzx eax, word [ebp - 0xd6]
mov ah, 0xc
mov word [ebp - 0xd8], ax
fldcw word [ebp - 0xd8]
fistp dword [ebp - 0xd4]
fldcw word [ebp - 0xd6]
mov ebx, dword [ebp - 0xd4]
cmp edx, ebx
je 0x43deac
fld dword [ebp - 0x20]
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
fstp qword [esp + 8]
mov dword [esp + 4], str.M108_S_0.1f_r_n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xbc]
mov dword [eax + 0x170], ebx
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x180]
lea edx, [eax + 1]
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], str.M_d01_r_n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xbc]
mov byte [eax + 0x17c], 0
fld dword [ebp - 0x20]
fld dword [0x4623b0]
fmulp st(1)
fstp dword [esp]
call dbg.roundf
fld dword [0x4623b0]
fdivp st(1)
fld dword [ebp - 0x20]
fdivrp st(1)
fld dword [ebp - 0x1c]
fmulp st(1)
fstp dword [ebp - 0x1c]
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x4c]
mov ecx, eax
mov ebx, eax
sar ebx, 0x1f
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x48]
mov esi, eax
mov edi, eax
sar edi, 0x1f
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, ecx
sbb edx, ebx
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
sub ecx, esi
sbb ebx, edi
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xbc]
fld qword [eax + 0x10]
fld qword [0x462380]
fdivr qword [ebp - 0xe8]
fmulp st(1)
fstp qword [ebp - 0xe8]
mov eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
fild qword [ebp - 0xe0]
fld qword [0x462380]
fdivp st(1)
fstp qword [ebp - 0x38]
mov eax, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
fild qword [ebp - 0xe0]
fld qword [0x462380]
fdivp st(1)
fstp qword [ebp - 0x40]
fld qword [ebp - 0x38]
fmul qword [ebp - 0x38]
fld qword [ebp - 0x40]
fmul qword [ebp - 0x40]
faddp st(1)
fstp qword [esp]
call dbg.sqrt
fmul qword [ebp - 0xe8]
mov eax, dword [ebp - 0xbc]
fld qword [eax + 8]
faddp st(1)
mov eax, dword [ebp - 0xbc]
fstp qword [eax + 8]
jmp 0x43e03f
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax + 0x17c]
test al, al
jne 0x43e03f
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], str.M103_r_n
call sym._fwrite
mov eax, dword [ebp - 0xbc]
mov byte [eax + 0x17c], 1
fld dword [ebp - 0x1c]
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x178]
mov dword [ebp - 0xd4], eax
fild dword [ebp - 0xd4]
fld qword [0x462380]
fdivp st(1)
mov eax, dword [ebp - 0xbc]
mov esi, dword [eax + 0x180]
mov eax, dword [ebp - 0xbc]
lea edx, [esi + 6]
shl edx, 4
add eax, edx
add eax, 8
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, ecx
sbb edx, ebx
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
fild qword [ebp - 0xe0]
fld qword [0x462380]
fdivp st(1)
mov eax, dword [ebp - 0xbc]
lea edx, [esi + 6]
shl edx, 4
add eax, edx
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
sub eax, ecx
sbb edx, ebx
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
fild qword [ebp - 0xe0]
fld qword [0x462380]
fdivp st(1)
fxch st(3)
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
fstp qword [esp + 0x20]
fxch st(1)
fstp qword [esp + 0x18]
fstp qword [esp + 0x10]
fstp qword [esp + 8]
mov dword [esp + 4], str.G1_X_0.3f_Y_0.3f_Z_0.3f_F_0.1f_r_n
mov dword [esp], eax
call sym._fprintf
jmp 0x43e61d
cmp dword [ebp + 0x1c], 0
je 0x43e460
mov ecx, dword [ebp - 0xbc]
mov ecx, dword [ecx + 0x4c]
mov esi, ecx
mov edi, ecx
sar edi, 0x1f
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
sub ecx, esi
sbb ebx, edi
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
sub esi, eax
sbb edi, edx
mov eax, esi
mov edx, edi
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], ebx
mov eax, dword [ebp - 0xbc]
movzx eax, byte [eax + 0x17c]
test al, al
je 0x43e398
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x28]
test eax, eax
jle 0x43e1b5
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xd4], eax
fild dword [ebp - 0xd4]
fld dword [0x4623b4]
fdivp st(1)
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
fstp qword [esp + 8]
mov dword [esp + 4], str.G1_Z_0.3f_n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x188]
cmp eax, 1
sete dl
cmp eax, 5
sete al
or eax, edx
test al, al
je 0x43e200
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], str.G11_n
call sym._fwrite
jmp 0x43e367
mov eax, dword [ebp - 0xbc]
fld qword [eax + 8]
mov eax, dword [ebp - 0xbc]
fld qword [eax + 0x20]
faddp st(1)
mov eax, dword [ebp - 0xbc]
fst qword [eax + 8]
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x180]
mov edx, dword [ebp - 0xbc]
movzx eax, byte [edx + eax + 0x160]
movsx edx, al
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x174]
shl eax, 2
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
fstp qword [esp + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], str.G1_F_i__c_0.5f_n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x174]
mov edx, dword [ebp - 0xbc]
mov dword [edx + 0x170], eax
mov dword [ebp - 0xd4], eax
fild dword [ebp - 0xd4]
mov eax, dword [ebp - 0xbc]
fld qword [eax + 8]
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xd4], eax
fild dword [ebp - 0xd4]
fld qword [0x462380]
fdivp st(1)
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0xd4], eax
fild dword [ebp - 0xd4]
fld qword [0x462380]
fdivp st(1)
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0xd4], eax
fild dword [ebp - 0xd4]
fld qword [0x462380]
fdivp st(1)
fstp qword [ebp - 0x90]
fstp qword [ebp - 0x88]
fstp qword [ebp - 0x80]
fstp qword [ebp - 0x78]
mov eax, dword [ebp - 0xbc]
lea edx, [eax + 0x220]
fstp qword [esp + 0x20]
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x84]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x80]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x1c], eax
mov ecx, edx
call method.TimeEstimateCalculator.plan_TimeEstimateCalculator::Position__double_
sub esp, 0x28
mov eax, dword [ebp - 0xbc]
fld qword [eax + 8]
fld qword [0x4623b8]
fxch st(1)
fucompi st(1)
fstp st(0)
jbe 0x43e38b
mov eax, dword [ebp - 0xbc]
mov ecx, eax
call method.cura::GCodeExport.resetExtrusionValue__
mov eax, dword [ebp - 0xbc]
mov byte [eax + 0x17c], 0
mov eax, dword [ebp - 0xbc]
fld qword [eax + 0x10]
fild dword [ebp + 0x1c]
fld qword [0x462380]
fdivp st(1)
fmulp st(1)
fstp qword [ebp - 0xe8]
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
fild qword [ebp - 0xe0]
fld qword [0x462380]
fdivp st(1)
fstp qword [ebp - 0x48]
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
fild qword [ebp - 0xe0]
fld qword [0x462380]
fdivp st(1)
fstp qword [ebp - 0x50]
fld qword [ebp - 0x48]
fmul qword [ebp - 0x48]
fld qword [ebp - 0x50]
fmul qword [ebp - 0x50]
faddp st(1)
fstp qword [esp]
call dbg.sqrt
fmul qword [ebp - 0xe8]
mov eax, dword [ebp - 0xbc]
fld qword [eax + 8]
faddp st(1)
mov eax, dword [ebp - 0xbc]
fstp qword [eax + 8]
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x462279
call sym._fwrite
jmp 0x43e488
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x46227c
call sym._fwrite
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x170]
cmp eax, dword [ebp + 0x18]
je 0x43e4d1
mov eax, dword [ebp + 0x18]
shl eax, 2
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], str._F_i
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xbc]
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x170], edx
mov eax, dword [ebp - 0xbc]
mov esi, dword [eax + 0x180]
mov eax, dword [ebp - 0xbc]
lea edx, [esi + 6]
shl edx, 4
add eax, edx
add eax, 8
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, ecx
sbb edx, ebx
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
fild qword [ebp - 0xe0]
fld qword [0x462380]
fdivp st(1)
mov eax, dword [ebp - 0xbc]
lea edx, [esi + 6]
shl edx, 4
add eax, edx
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
sub eax, ecx
sbb edx, ebx
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
fild qword [ebp - 0xe0]
fld qword [0x462380]
fdivp st(1)
fxch st(1)
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
fstp qword [esp + 0x10]
fstp qword [esp + 8]
mov dword [esp + 4], str._X_0.3f_Y_0.3f
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x178]
mov edx, dword [ebp - 0xbc]
mov edx, dword [edx + 0x50]
cmp eax, edx
je 0x43e5b9
mov dword [ebp - 0xd4], eax
fild dword [ebp - 0xd4]
fld qword [0x462380]
fdivp st(1)
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
fstp qword [esp + 8]
mov dword [esp + 4], str._Z_0.3f
mov dword [esp], eax
call sym._fprintf
cmp dword [ebp + 0x1c], 0
je 0x43e605
mov eax, dword [ebp - 0xbc]
fld qword [eax + 8]
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 0x180]
mov edx, dword [ebp - 0xbc]
movzx eax, byte [edx + eax + 0x160]
movsx edx, al
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
fstp qword [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], str.__c_0.5f
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, dword [ebp - 0xbc]
mov esi, dword [eax + 0x178]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xbc]
mov dword [eax + 0x48], ecx
mov eax, dword [ebp - 0xbc]
mov dword [eax + 0x4c], ebx
mov eax, dword [ebp - 0xbc]
mov dword [eax + 0x50], esi
mov eax, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xbc]
mov edi, dword [edx + 0x48]
mov dword [eax + 0x54], edi
mov edi, dword [edx + 0x4c]
mov dword [eax + 0x58], edi
mov edx, dword [edx + 0x50]
mov dword [eax + 0x5c], edx
fild dword [ebp + 0x18]
mov eax, dword [ebp - 0xbc]
fld qword [eax + 8]
mov dword [ebp - 0xd4], esi
fild dword [ebp - 0xd4]
fld qword [0x462380]
fdivp st(1)
mov dword [ebp - 0xd4], ebx
fild dword [ebp - 0xd4]
fld qword [0x462380]
fdivp st(1)
mov dword [ebp - 0xd4], ecx
fild dword [ebp - 0xd4]
fld qword [0x462380]
fdivp st(1)
fstp qword [ebp - 0x70]
fstp qword [ebp - 0x68]
fstp qword [ebp - 0x60]
fstp qword [ebp - 0x58]
mov eax, dword [ebp - 0xbc]
lea edx, [eax + 0x220]
fstp qword [esp + 0x20]
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 0x1c], eax
mov ecx, edx
call method.TimeEstimateCalculator.plan_TimeEstimateCalculator::Position__double_
sub esp, 0x28
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x18