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

Disassembly:
push ebx
sub esp, 0x28
call fcn.00403670
call fcn.00403630
mov dword [esp], 0
call fcn.00406ec0
mov dword [esp], 0x420494
call fcn.004036b0
mov dword [esp], 0x4204b8
call fcn.004036b0
call fcn.00404ec0
test al, al
jne 0x409a38
call fcn.004047d0
test al, al
je 0x409ac0
mov dword [esp], 0x420759
call fcn.004036b0
call fcn.00403640
test al, al
mov dword [esp], 0x420874
je 0x409a90
call fcn.004036b0
mov dword [esp], 0x4208b4
call fcn.004036b0
mov dword [esp], 0x4208d6
call fcn.00404b70
mov dword [esp], 1
mov ebx, 1
call fcn.00406ec0
call fcn.00403660
add esp, 0x28
mov eax, ebx
pop ebx
ret
call fcn.004036b0
mov dword [esp], 0x4208ea
call fcn.004036b0
mov dword [esp], 0x420904
call fcn.004036b0
mov dword [esp], 0x42092c
call fcn.00404b70
jmp 0x409a71
mov dword [esp], str._STATUS_:_Checking_initial_temperature..._n
lea ebx, [esp + 0x1c]
call fcn.004036b0
mov eax, dword [0x42b3b0]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x420507
mov dword [esp], eax
call fcn.004055b0
test al, al
jne 0x409b20
mov dword [esp], 0x3e8
call sub.KERNEL32.dll_Sleep
sub esp, 4
call fcn.00406590
cmp eax, dword [esp + 0x1c]
jle 0x409b31
mov dword [esp], str._ERROR_:_Minimum_temperature_not_reached._n
call fcn.004036b0
jmp 0x409a38
mov dword [esp], str._STATUS_:_Minimum_temperature_not_found..._n
call fcn.004036b0
jmp 0x409a38
mov dword [esp], str._STATUS_:_Disk_temperature_is_OK._n
call fcn.004036b0
call fcn.00404cc0
test al, al
jne 0x409a38
call fcn.00411310
test al, al
je 0x409b85
mov dword [esp], 0
call fcn.004040a0
test al, al
je 0x409b79
mov dword [esp], str._ERROR_:_Preheating_procedure_aborted._n
call fcn.004036b0
call fcn.00404ca0
jmp 0x409a38
mov dword [esp], str._WARNING_:_Skipping_preheating_procedure_n
call fcn.004036b0
mov eax, dword [0x42b3b0]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4203bb
mov dword [esp], eax
call fcn.004055b0
test al, al
je 0x409bbc
mov dword [esp], 0x4205e8
call fcn.004036b0
mov dword [esp], 0x420730
call fcn.004036b0
jmp 0x409b6f
mov eax, dword [0x42b3b0]
mov dword [esp + 8], 0x428d78
mov dword [esp + 4], 0x42061d
mov dword [esp], eax
call fcn.004055b0
test al, al
je 0x409beb
mov dword [esp], 0x420628
call fcn.004036b0
jmp 0x409bae
mov eax, dword [0x42b3b0]
mov dword [esp + 8], 0x428d70
mov dword [esp + 4], 0x420660
mov dword [esp], eax
call fcn.004055b0
test al, al
je 0x409d72
mov dword [esp + 4], 9
mov dword [esp], str._WARNING_:_MAXESTMEAS_not_available_in_config._Assuming__u_n
mov dword [0x428d70], 9
call fcn.004036b0
mov dword [0x428d74], 0
xor ebx, ebx
jmp 0x409c63
add ebx, 1
mov dword [esp], str._STATUS_:_Moving_to:_CALSPEED_d_n
mov dword [esp + 4], ebx
call fcn.004036b0
movzx eax, bl
call fcn.00407c60
test al, al
jne 0x409bae
cmp ebx, dword [esp + 0x1c]
jb 0x409c40
mov dword [esp], 0x4206e8
call fcn.004036b0
mov dword [esp], 0x420714
call fcn.004036b0
call fcn.00404ca0
test al, al
jne 0x409a38
mov dword [esp], 0x420759
call fcn.004036b0
mov eax, dword [0x428368]
call fcn.00408510
test al, al
jne 0x409a38
call fcn.00409850
test al, al
jne 0x409a38
call fcn.00404d60
test al, al
jne 0x409d8c
mov eax, dword [0x428368]
call fcn.00408510
test al, al
jne 0x409b6f
mov dword [esp], str._STATUS_:_Waiting_disk_to_stop_n
call fcn.00406c10
call fcn.00404ca0
test al, al
mov ebx, eax
jne 0x409b6f
mov dword [esp], 0x420759
call fcn.00406c10
mov dword [esp], str._STATUS_:_Printing_label..._n
call fcn.00406c10
call fcn.00404d60
mov dword [esp + 4], 0x429e80
mov dword [esp], 0x420820
call fcn.004036b0
mov dword [esp + 4], 0x429c60
mov dword [esp], 0x420840
call fcn.004036b0
mov dword [esp], 0x420864
call fcn.00404b70
mov dword [esp], 0x420874
call fcn.004036b0
mov dword [esp], 0x420894
call fcn.004036b0
mov dword [esp], 1
call fcn.00406ec0
call fcn.00403660
jmp 0x409a87
mov eax, dword [0x428d70]
mov dword [esp], str._STATUS_:_MAXESTMEAS___u_n
mov dword [esp + 4], eax
call fcn.004036b0
jmp 0x409c2e
mov dword [esp], 0x420778
call fcn.004036b0
mov eax, dword [0x428364]
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov dword [esp], 0x4207ac
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x409cc6
sub esp, 0x1c
call fcn.0040fd20
cmp eax, 6
je 0x40bb40
cmp eax, 7
je 0x40bb30
cmp eax, 2
je 0x40bb20
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4219a0
mov dword [esp + 4], str.Device_not_supported_in_this_version
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
mov eax, 1
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.0040d030
add esp, 0x1c
jmp 0x4099f0
add esp, 0x1c
jmp fcn.0040b230