Function at 0x403041
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0x441784
push str.CD_REWRITER_4E
push str.FlashMit__000915__Copyright__C__1998_2000_by_Micro_Solutions_Inc.__DeKalb_IL._nTechnical_Supports_BACKPACK__s__s_Flash_Tool._n_n
call fcn.004037af
add esp, 0xc
mov dword [ebp - 0x34], 0x80800
mov eax, dword [ebp - 0x34]
push eax
call fcn.004039ac
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4030b2
push str.FlashMit___Error___Memory_allocation_failure.
call fcn.004037e0
add esp, 4
push 1
call fcn.00403df5
mov ecx, dword [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00403850
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
push str.SZDD
push 0x32f39
call fcn.00402e19
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x34]
je 0x4030f9
push str.FlashMit___Error___Containment_failure.
call fcn.004037e0
add esp, 4
push 1
call fcn.00403df5
mov word [ebp - 0x20], 0
mov dword [ebp - 8], 0
jmp 0x403111
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x34]
jae 0x403130
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 8]
movzx dx, byte [ecx]
mov ax, word [ebp - 0x20]
add ax, dx
mov word [ebp - 0x20], ax
jmp 0x403108
mov ecx, dword [ebp - 0x20]
and ecx, 0xffff
cmp ecx, 0xde1a
je 0x403155
push str.FlashMit___Error___Checksum_failure__Flash_image_corrupt.
call fcn.004037e0
add esp, 4
push 1
call fcn.00403df5
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x28], 1
jmp 0x40316e
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 8]
jge 0x4032a6
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x4031a0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
movsx edx, byte [ecx]
cmp edx, 0x2d
jne 0x403286
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
add edx, 1
push edx
push str.help
call fcn.00408ef0
add esp, 8
test eax, eax
je 0x4031dc
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
add edx, 1
push edx
push 0x4418a8
call fcn.00408ef0
add esp, 8
test eax, eax
jne 0x4031f0
push str.Usage_:_FLASHMIT___ioctl____file__flash_image___n_nOptions:_t_ioctl_t_tUse_IOCTL_under_NT_n_t_t_file_t_tUse_alternate_flash_image_n
call fcn.004037e0
add esp, 4
push 1
call fcn.00403df5
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
add edx, 1
push edx
push str.ioctl
call fcn.00408ef0
add esp, 8
test eax, eax
jne 0x40321a
mov dword [ebp - 0x3c], 1
jmp 0x403165
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
add edx, 1
push edx
push str.diag
call fcn.00408ef0
add esp, 8
test eax, eax
jne 0x403244
mov dword [ebp - 0x38], 1
jmp 0x403165
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
add edx, 1
push edx
push str.file
call fcn.00408ef0
add esp, 8
test eax, eax
jne 0x403284
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp + 8]
jge 0x40327f
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x1c], ecx
jmp 0x403165
jmp 0x4032a1
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + ecx*4]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
jmp 0x403165
mov eax, dword [ebp - 0x30]
mov dword [ebp + 8], eax
cmp dword [ebp - 0x3c], 0
je 0x4032bc
call fcn.00402a2f
mov dword [ebp - 0x24], eax
jmp 0x4032e3
call fcn.00402936
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4032db
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00402c2e
add esp, 4
mov dword [ebp - 0x24], eax
jmp 0x4032e3
call fcn.00402a2f
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4035b4
cmp dword [0x442798], 0
je 0x403301
cmp dword [ebp - 0x38], 0
je 0x403301
call fcn.004028e4
mov edx, dword [0x442798]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x4033b9
push 8
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0x441940
call fcn.00403d90
add esp, 0xc
test eax, eax
jne 0x40335a
push str.CD_REWRITER_4E
call fcn.004038b0
add esp, 4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xd
push ecx
push str.CD_REWRITER_4E
call fcn.00403d90
add esp, 0xc
test eax, eax
jne 0x40335a
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
push str.MITSUMI
call fcn.004038b0
add esp, 4
push eax
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push str.MITSUMI
call fcn.00403d90
add esp, 0xc
test eax, eax
jne 0x4033ac
push str.CR_4804TE
call fcn.004038b0
add esp, 4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xd
push ecx
push str.CR_4804TE
call fcn.00403d90
add esp, 0xc
test eax, eax
jne 0x4033ac
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
jmp 0x40330a
cmp dword [ebp - 0x14], 0
je 0x40358c
cmp dword [ebp - 0x1c], 0
je 0x4034c9
push 0x44194c
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00403d79
add esp, 8
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x4034a9
push 2
push 0
mov eax, dword [ebp - 0x44]
push eax
call fcn.00403ccd
add esp, 0xc
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00403b75
add esp, 4
mov dword [ebp - 8], eax
push 0
push 0
mov edx, dword [ebp - 0x44]
push edx
call fcn.00403ccd
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
je 0x403448
push str.FlashMit___Error___Flash_image_size_mismatch.
call fcn.004037e0
add esp, 4
mov edx, dword [ebp - 0x44]
push edx
call fcn.00403b1f
add esp, 4
push 1
call fcn.00403df5
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403850
add esp, 0xc
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403a37
add esp, 0x10
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
je 0x40349b
push str.FlashMit___Error___Failure_reading_flash_image.
call fcn.004037e0
add esp, 4
mov eax, dword [ebp - 0x44]
push eax
call fcn.00403b1f
add esp, 4
push 1
call fcn.00403df5
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00403b1f
add esp, 4
jmp 0x4034c9
push str.FlashMit___Error___Unable_to_open_flash_image_file.
call fcn.004037e0
add esp, 4
mov edx, dword [ebp - 0x44]
push edx
call fcn.00403b1f
add esp, 4
push 1
call fcn.00403df5
push str.3.0D
push str.CD_REWRITER_4E
push str.BACKPACK
push str.New_______8s___16s___4s_n
call fcn.004037af
add esp, 0x10
mov eax, dword [ebp - 0x14]
add eax, 0x1e
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xd
push ecx
mov edx, dword [ebp - 0x14]
add edx, 4
push edx
push str.Current___8s___16s___4s_n_n
call fcn.004037af
add esp, 0x10
push 0x1e
mov eax, dword [ebp - 0x14]
push eax
call fcn.00402159
add esp, 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00402214
add esp, 4
cmp eax, 1
jne 0x40356f
push str.About_to_transfer_microcode__this_will_take_about_25_30_seconds._n_nDuring_this_time_you_must_not_interrupt_the_process._nProceed__Y_N__
call fcn.004037af
add esp, 4
lea edx, [ebp - 0x40]
push edx
push 0x441ab8
call fcn.00403a20
add esp, 8
movsx eax, byte [ebp - 0x40]
cmp eax, 0x79
je 0x403556
movsx ecx, byte [ebp - 0x40]
cmp ecx, 0x59
jne 0x40356d
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004024b1
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x40358a
push str.FlashMit___Error___Please_remove_the_disc__close_the_tray_and_try_again.
call fcn.004037e0
add esp, 4
push 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.00402452
add esp, 8
jmp 0x4035a8
push str.CR_4804TE
push str.MITSUMI
push str.CD_REWRITER_4E
push str.FlashMit___Error___BACKPACK__s___s__s__not_found._n
call fcn.004037af
add esp, 0x10
call fcn.00402d8b
call fcn.00402a02
jmp 0x4035c1
push str.FlashMit___Error___No_devices_detected.
call fcn.004037e0
add esp, 4
push str._nPress_ENTER_to_continue..
call fcn.004037e0
add esp, 4
call fcn.00408d56
cmp eax, 0xd
je 0x4035da
jmp 0x4035ce
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret