Function at 0x401150
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push str.Asse_p65.exe
push str.COMELZ_spa._Upgrade__s_n_n
call fcn.00402937
add esp, 8
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x1c], 0x1c200
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00402460
add esp, 8
push str._nAttesa_accensione_CN
call fcn.00402937
add esp, 4
call fcn.00402740
call fcn.00402760
push 8
push 0x41cf24
call fcn.004010c0
add esp, 8
push 0x41cf28
call fcn.00402937
add esp, 4
push 0x41cf2c
call fcn.00401090
add esp, 4
call fcn.00402780
push str._nInitializing...
call fcn.00402937
add esp, 4
push 0x41cf44
call fcn.00401090
add esp, 4
push 0x41cf48
call fcn.00401090
add esp, 4
push 0x41cf4c
call fcn.00401090
add esp, 4
call fcn.00402440
mov dword [ebp - 0x3c], eax
call fcn.00402440
sub eax, dword [ebp - 0x3c]
cmp eax, 0x12
jge 0x401219
jmp 0x40120a
call fcn.00402620
push 0x41cf50
call fcn.00401090
add esp, 4
call fcn.00402440
mov dword [ebp - 0x24], eax
call fcn.004026d0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x401250
call fcn.00402440
sub eax, dword [ebp - 0x24]
cmp eax, 0x12
jge 0x401250
jmp 0x401233
cmp dword [ebp - 0x38], 0x24
jne 0x4012a7
call fcn.004026d0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x401273
call fcn.00402440
sub eax, dword [ebp - 0x24]
cmp eax, 0x12
jge 0x401273
jmp 0x401256
cmp dword [ebp - 0x38], 0x41
jne 0x401282
mov dword [ebp - 8], 1
jmp 0x4012a5
cmp dword [ebp - 0x38], 0
jne 0x401291
mov dword [ebp - 8], 2
jmp 0x4012a5
push 0x41cf58
call fcn.00402937
add esp, 4
push 1
call fcn.004028f7
jmp 0x4012bb
push 0x41cf80
call fcn.00402937
add esp, 4
push 1
call fcn.004028f7
call fcn.00402620
push str.Ok._n
call fcn.00402937
add esp, 4
cmp dword [ebp - 8], 1
jne 0x40147e
push str.Rilevata_CM44_n
call fcn.00402937
add esp, 4
push str._nProgram_upload...
call fcn.00402937
add esp, 4
push str.LA8800_r
call fcn.00401090
add esp, 4
push 1
push 0x41cfdc
call fcn.004010c0
add esp, 8
mov dword [ebp - 0x18], 0x41b6d0
mov edx, dword [ebp - 0x18]
mov ax, word [edx]
mov word [ebp - 0x20], ax
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
add edx, 2
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
movzx eax, word [ebp - 0x20]
test eax, eax
je 0x401440
cmp dword [ebp - 4], 0
jne 0x40135d
push 0x41cfe0
call fcn.00401090
add esp, 4
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
mov dword [ebp - 0xec], edx
mov eax, dword [ebp - 0xec]
push eax
push str._04X
lea ecx, [ebp - 0x30]
push ecx
call fcn.00402bc8
add esp, 0xc
mov edx, dword [ebp - 0x18]
add edx, 2
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x30]
push eax
call fcn.00401090
add esp, 4
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0xc
jne 0x40142f
push 0x41cfec
call fcn.00401090
add esp, 4
push 1
push 0x41cff0
call fcn.004010c0
add esp, 8
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 4
jne 0x401428
mov eax, dword [0x41d434]
sub eax, 1
mov dword [0x41d434], eax
js 0x40140c
mov ecx, dword [0x41d430]
mov byte [ecx], 0x2e
mov edx, 0x2e
and edx, 0xff
mov dword [ebp - 0xf0], edx
mov eax, dword [0x41d430]
add eax, 1
mov dword [0x41d430], eax
jmp 0x401421
push 0x41d430
push 0x2e
call fcn.004029f8
add esp, 8
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
mov cx, word [ebp - 0x20]
sub cx, 1
mov word [ebp - 0x20], cx
jmp 0x40133e
cmp dword [ebp - 4], 0
jle 0x401462
push 0x41cff4
call fcn.00401090
add esp, 4
push 1
push 0x41cff8
call fcn.004010c0
add esp, 8
push 0x41cffc
call fcn.00402937
add esp, 4
push str.DFFFF81FF_r
call fcn.00401090
add esp, 4
jmp 0x4014b4
cmp dword [ebp - 8], 2
jne 0x4014a0
push str.Rilevata_CZxxx_n
call fcn.00402937
add esp, 4
push str.DPFFFFC1FF_r
call fcn.00401090
add esp, 4
jmp 0x4014b4
push 0x41d028
call fcn.00402937
add esp, 4
push 1
call fcn.004028f7
push 0xa
push str.______
call fcn.004010c0
add esp, 8
call fcn.004026d0
mov byte [ebp - 0x30], al
movsx edx, byte [ebp - 0x30]
cmp edx, 0xffffffff
jne 0x4014d6
jmp 0x4014c3
movsx eax, byte [ebp - 0x30]
cmp eax, 0x30
je 0x401a47
mov byte [ebp - 0x2f], 0
lea ecx, [ebp - 0x30]
push ecx
push str.Programmazione_di__s_scheda_e_con_F28035_n
call fcn.00402937
add esp, 8
push 0xee
call fcn.00402640
add esp, 4
push 0xee
call fcn.00402640
add esp, 4
push 0x41d084
call fcn.00402937
add esp, 4
push 0xc
push 0x41d090
call fcn.004010c0
add esp, 8
push str....OK
call fcn.00402937
add esp, 4
push 0x41d09c
call fcn.00402937
add esp, 4
mov dword [0x41dcc0], 0
mov dword [ebp - 0x5c], 0x40a040
mov byte [ebp - 0x50], 0
mov byte [ebp - 0x4f], 0
mov edx, dword [ebp - 0x5c]
mov ax, word [edx]
mov word [ebp - 0x54], ax
mov ecx, dword [ebp - 0x5c]
add ecx, 2
mov dword [ebp - 0x5c], ecx
movzx edx, word [ebp - 0x54]
test edx, edx
jne 0x401581
jmp 0x40171b
mov eax, dword [ebp - 0x5c]
movzx ecx, word [eax]
shl ecx, 0x10
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x5c]
add edx, 2
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
movzx ecx, word [eax]
add ecx, dword [ebp - 0x40]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x5c]
add edx, 2
mov dword [ebp - 0x5c], edx
movzx eax, word [ebp - 0x54]
test eax, eax
jle 0x401716
mov cx, word [ebp - 0x54]
mov word [ebp - 0x48], cx
movzx edx, word [ebp - 0x48]
cmp edx, 0x200
jle 0x4015d1
mov word [ebp - 0x48], 0x200
movzx eax, word [ebp - 0x48]
and eax, 0xff
push eax
call fcn.00402640
add esp, 4
movzx ecx, word [ebp - 0x48]
sar ecx, 8
push ecx
call fcn.00402640
add esp, 4
mov edx, dword [ebp - 0x40]
and edx, 0xff
push edx
call fcn.00402640
add esp, 4
mov eax, dword [ebp - 0x40]
shr eax, 8
push eax
call fcn.00402640
add esp, 4
mov ecx, dword [ebp - 0x40]
shr ecx, 0x10
push ecx
call fcn.00402640
add esp, 4
mov edx, dword [ebp - 0x40]
shr edx, 0x18
push edx
call fcn.00402640
add esp, 4
mov ax, word [ebp - 0x48]
mov word [ebp - 0x4c], ax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], ecx
movzx edx, word [ebp - 0x4c]
test edx, edx
je 0x401686
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
and ecx, 0xff
push ecx
call fcn.00402640
add esp, 4
mov edx, dword [ebp - 0x44]
movzx eax, word [edx]
sar eax, 8
push eax
call fcn.00402640
add esp, 4
mov ecx, dword [ebp - 0x44]
add ecx, 2
mov dword [ebp - 0x44], ecx
mov dx, word [ebp - 0x4c]
sub dx, 1
mov word [ebp - 0x4c], dx
jmp 0x401640
mov al, byte [ebp - 0x50]
add al, 1
mov byte [ebp - 0x50], al
push 6
lea ecx, [ebp - 0x50]
push ecx
call fcn.004010c0
add esp, 8
mov edx, dword [0x41d434]
sub edx, 1
mov dword [0x41d434], edx
js 0x4016d7
mov eax, dword [0x41d430]
mov byte [eax], 0x2e
mov ecx, 0x2e
and ecx, 0xff
mov dword [ebp - 0xf4], ecx
mov edx, dword [0x41d430]
add edx, 1
mov dword [0x41d430], edx
jmp 0x4016ec
push 0x41d430
push 0x2e
call fcn.004029f8
add esp, 8
mov dword [ebp - 0xf4], eax
movzx eax, word [ebp - 0x48]
add eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
movzx ecx, word [ebp - 0x48]
mov edx, dword [ebp - 0x5c]
lea eax, [edx + ecx*2]
mov dword [ebp - 0x5c], eax
movzx ecx, word [ebp - 0x48]
movzx edx, word [ebp - 0x54]
sub edx, ecx
mov word [ebp - 0x54], dx
jmp 0x4015ab
jmp 0x401561
push 0
call fcn.00402640
add esp, 4
push 0
call fcn.00402640
add esp, 4
push 0
call fcn.00402640
add esp, 4
push 0
call fcn.00402640
add esp, 4
push 0
call fcn.00402640
add esp, 4
push 0
call fcn.00402640
add esp, 4
mov dword [ebp - 0x64], 0
mov word [ebp - 0x68], 0
mov ax, word [ebp - 0x68]
mov word [ebp - 0x60], ax
call fcn.004026d0
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0xffffffff
je 0x401a42
cmp dword [ebp - 0x80], 0xd
jne 0x40179b
mov dword [ebp - 0x64], 0
mov word [ebp - 0x68], 0
mov cx, word [ebp - 0x68]
mov word [ebp - 0x60], cx
jmp 0x401805
cmp dword [ebp - 0x80], 0x30
jl 0x4017c2
cmp dword [ebp - 0x80], 0x39
jg 0x4017c2
movzx edx, word [ebp - 0x68]
shl edx, 4
mov eax, dword [ebp - 0x80]
lea ecx, [edx + eax - 0x30]
mov word [ebp - 0x68], cx
mov dword [ebp - 0x80], 0x58
jmp 0x401805
cmp dword [ebp - 0x80], 0x41
jl 0x4017e9
cmp dword [ebp - 0x80], 0x46
jg 0x4017e9
movzx edx, word [ebp - 0x68]
shl edx, 4
mov eax, dword [ebp - 0x80]
lea ecx, [edx + eax - 0x37]
mov word [ebp - 0x68], cx
mov dword [ebp - 0x80], 0x58
jmp 0x401805
cmp dword [ebp - 0x80], 0x28
jne 0x401805
mov dx, word [ebp - 0x68]
mov word [ebp - 0x60], dx
mov word [ebp - 0x68], 0
mov ax, word [ebp - 0x60]
mov word [ebp - 0x60], ax
mov ecx, dword [ebp - 0x64]
mov dl, byte [ebp - 0x80]
mov byte [ebp + ecx - 0x7c], dl
mov eax, dword [ebp - 0x64]
mov byte [ebp + eax - 0x7b], 0
cmp dword [ebp - 0x64], 0x12
jge 0x401826
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
push 0x41d0b0
lea edx, [ebp - 0x7c]
push edx
call fcn.00402970
add esp, 8
test eax, eax
jne 0x4019bb
call fcn.00402440
mov dword [ebp - 0x84], eax
call fcn.00402440
sub eax, dword [ebp - 0x84]
cmp eax, 0x12
jge 0x40186a
call fcn.004026d0
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0xffffffff
jne 0x40186a
jmp 0x40184a
cmp dword [ebp - 0x80], 0xffffffff
jne 0x401884
push 0x41d0b4
call fcn.00402937
add esp, 4
push 1
call fcn.004028f7
cmp dword [ebp - 0x80], 0x41
jne 0x40189c
push 0x41d0dc
call fcn.00402937
add esp, 4
jmp 0x401949
mov eax, dword [ebp - 0x80]
sub eax, 0x41
and eax, 8
je 0x4018b3
mov dword [ebp - 0xf8], 0x41d104
jmp 0x4018bd
mov dword [ebp - 0xf8], 0x41daa0
mov ecx, dword [ebp - 0x80]
sub ecx, 0x41
and ecx, 4
je 0x4018d4
mov dword [ebp - 0xfc], 0x41d10c
jmp 0x4018de
mov dword [ebp - 0xfc], 0x41daa1
mov edx, dword [ebp - 0x80]
sub edx, 0x41
and edx, 2
je 0x4018f5
mov dword [ebp - 0x100], 0x41d114
jmp 0x4018ff
mov dword [ebp - 0x100], 0x41daa2
mov eax, dword [ebp - 0x80]
sub eax, 0x41
and eax, 1
je 0x401916
mov dword [ebp - 0x104], 0x41d11c
jmp 0x401920
mov dword [ebp - 0x104], 0x41daa3
mov ecx, dword [ebp - 0xf8]
push ecx
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
push 0x41d124
call fcn.00402937
add esp, 0x14
call fcn.00402440
mov dword [ebp - 0x84], eax
call fcn.00402440
sub eax, dword [ebp - 0x84]
cmp eax, 0x12
jge 0x401974
call fcn.004026d0
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0xffffffff
jne 0x401974
jmp 0x401954
cmp dword [ebp - 0x80], 0xffffffff
jne 0x40198e
push 0x41d150
call fcn.00402937
add esp, 4
push 1
call fcn.004028f7
cmp dword [ebp - 0x80], 0x2d
jne 0x4019ae
push 0x41d178
call fcn.00402937
add esp, 4
push 0x41d18c
call fcn.00402937
add esp, 4
push 0x41d1bc
call fcn.00402937
add esp, 4
push 0x41d1d0
lea edx, [ebp - 0x7c]
push edx
call fcn.00402970
add esp, 8
test eax, eax
jne 0x4019dd
movzx eax, word [ebp - 0x68]
cmp eax, 0xfe
jne 0x4019dd
jmp 0x401a47
push 0x41d1d8
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00402970
add esp, 8
test eax, eax
jne 0x401a42
mov edx, dword [0x41d434]
sub edx, 1
mov dword [0x41d434], edx
js 0x401a2d
mov eax, dword [0x41d430]
mov byte [eax], 0x2e
mov ecx, 0x2e
and ecx, 0xff
mov dword [ebp - 0x108], ecx
mov edx, dword [0x41d430]
add edx, 1
mov dword [0x41d430], edx
jmp 0x401a42
push 0x41d430
push 0x2e
call fcn.004029f8
add esp, 8
mov dword [ebp - 0x108], eax
jmp 0x40176c
call fcn.004026d0
mov byte [ebp - 0x30], al
movsx eax, byte [ebp - 0x30]
cmp eax, 0xffffffff
jne 0x401a5a
jmp 0x401a47
movsx ecx, byte [ebp - 0x30]
cmp ecx, 0x30
je 0x4023e6
mov byte [ebp - 0x2f], 0
lea edx, [ebp - 0x30]
push edx
push str.Programmazione_di__s_scheda_e_con_F2403_n
call fcn.00402937
add esp, 8
push str._nClear...
call fcn.00402937
add esp, 4
mov dword [0x41dcc0], 0
mov dword [ebp - 0x88], 0x41b1e0
mov eax, dword [ebp - 0x88]
mov cx, word [eax]
mov word [ebp - 0x8c], cx
mov edx, dword [ebp - 0x88]
add edx, 2
mov dword [ebp - 0x88], edx
movzx eax, word [ebp - 0x8c]
and eax, 0xff
push eax
call fcn.00402640
add esp, 4
movzx ecx, word [ebp - 0x8c]
sar ecx, 8
push ecx
call fcn.00402640
add esp, 4
movzx edx, word [ebp - 0x8c]
test edx, edx
je 0x401b54
mov eax, dword [ebp - 0x88]
movzx ecx, word [eax]
and ecx, 0xff
push ecx
call fcn.00402640
add esp, 4
mov edx, dword [ebp - 0x88]
movzx eax, word [edx]
sar eax, 8
push eax
call fcn.00402640
add esp, 4
mov ecx, dword [ebp - 0x88]
movzx edx, word [ecx]
add edx, dword [0x41dcc0]
mov dword [0x41dcc0], edx
mov eax, dword [ebp - 0x88]
add eax, 2
mov dword [ebp - 0x88], eax
mov cx, word [ebp - 0x8c]
sub cx, 1
mov word [ebp - 0x8c], cx
jmp 0x401ae4
mov edx, dword [0x41dcc0]
and edx, 0xff
push edx
call fcn.00402640
add esp, 4
mov eax, dword [0x41dcc0]
shr eax, 8
push eax
call fcn.00402640
add esp, 4
push 0x41d220
push 0x41d224
call section..text
add esp, 8
test eax, eax
je 0x401b92
jmp 0x401b97
jmp 0x401a89
push 6
push 0x41d228
call fcn.004010c0
add esp, 8
push 0x41d22c
call fcn.00402937
add esp, 4
push str._nErase...
call fcn.00402937
add esp, 4
mov dword [0x41dcc0], 0
mov dword [ebp - 0x90], 0x41b360
mov ecx, dword [ebp - 0x90]
mov dx, word [ecx]
mov word [ebp - 0x94], dx
mov eax, dword [ebp - 0x90]
add eax, 2
mov dword [ebp - 0x90], eax
movzx ecx, word [ebp - 0x94]
and ecx, 0xff
push ecx
call fcn.00402640
add esp, 4
movzx edx, word [ebp - 0x94]
sar edx, 8
push edx
call fcn.00402640
add esp, 4
movzx eax, word [ebp - 0x94]
test eax, eax
je 0x401c8b
mov ecx, dword [ebp - 0x90]
movzx edx, word [ecx]
and edx, 0xff
push edx
call fcn.00402640
add esp, 4
mov eax, dword [ebp - 0x90]
movzx ecx, word [eax]
sar ecx, 8
push ecx
call fcn.00402640
add esp, 4
mov edx, dword [ebp - 0x90]
movzx eax, word [edx]
add eax, dword [0x41dcc0]
mov dword [0x41dcc0], eax
mov ecx, dword [ebp - 0x90]
add ecx, 2
mov dword [ebp - 0x90], ecx
mov dx, word [ebp - 0x94]
sub dx, 1
mov word [ebp - 0x94], dx
jmp 0x401c1c
mov eax, dword [0x41dcc0]
and eax, 0xff
push eax
call fcn.00402640
add esp, 4
mov ecx, dword [0x41dcc0]
shr ecx, 8
push ecx
call fcn.00402640
add esp, 4
push 0x41d240
push 0x41d244
call section..text
add esp, 8
test eax, eax
je 0x401cc8
jmp 0x401ccd
jmp 0x401bc0
push 6
push 0x41d248
call fcn.004010c0
add esp, 8
push 0x41d24c
call fcn.00402937
add esp, 4
push str._nReprogramming...
call fcn.00402937
add esp, 4
mov dword [0x41dcc0], 0
mov dword [ebp - 0x98], 0x41b548
mov edx, dword [ebp - 0x98]
mov ax, word [edx]
mov word [ebp - 0x9c], ax
mov ecx, dword [ebp - 0x98]
add ecx, 2
mov dword [ebp - 0x98], ecx
movzx edx, word [ebp - 0x9c]
and edx, 0xff
push edx
call fcn.00402640
add esp, 4
movzx eax, word [ebp - 0x9c]
sar eax, 8
push eax
call fcn.00402640
add esp, 4
movzx ecx, word [ebp - 0x9c]
test ecx, ecx
je 0x401dc1
mov edx, dword [ebp - 0x98]
movzx eax, word [edx]
and eax, 0xff
push eax
call fcn.00402640
add esp, 4
mov ecx, dword [ebp - 0x98]
movzx edx, word [ecx]
sar edx, 8
push edx
call fcn.00402640
add esp, 4
mov eax, dword [ebp - 0x98]
movzx ecx, word [eax]
add ecx, dword [0x41dcc0]
mov dword [0x41dcc0], ecx
mov edx, dword [ebp - 0x98]
add edx, 2
mov dword [ebp - 0x98], edx
mov ax, word [ebp - 0x9c]
sub ax, 1
mov word [ebp - 0x9c], ax
jmp 0x401d52
mov ecx, dword [0x41dcc0]
and ecx, 0xff
push ecx
call fcn.00402640
add esp, 4
mov edx, dword [0x41dcc0]
shr edx, 8
push edx
call fcn.00402640
add esp, 4
push 0x41d268
push 0x41d26c
call section..text
add esp, 8
test eax, eax
je 0x401e00
jmp 0x401e05
jmp 0x401cf6
mov dword [0x41dcc0], 0
mov dword [ebp - 0xbc], 0x413290
mov byte [ebp - 0xb0], 0
mov byte [ebp - 0xaf], 0
mov eax, dword [ebp - 0xbc]
mov cx, word [eax]
mov word [ebp - 0xb4], cx
mov edx, dword [ebp - 0xbc]
add edx, 2
mov dword [ebp - 0xbc], edx
movzx eax, word [ebp - 0xb4]
test eax, eax
jne 0x401e56
jmp 0x40202c
mov ecx, dword [ebp - 0xbc]
mov dx, word [ecx]
mov word [ebp - 0xa0], dx
mov eax, dword [ebp - 0xbc]
add eax, 2
mov dword [ebp - 0xbc], eax
movzx ecx, word [ebp - 0xb4]
test ecx, ecx
jle 0x402027
mov dx, word [ebp - 0xb4]
mov word [ebp - 0xa8], dx
movzx eax, word [ebp - 0xa8]
cmp eax, 0xc7
jle 0x401ea9
mov word [ebp - 0xa8], 0xc7
movzx ecx, word [ebp - 0xa8]
and ecx, 0xff
push ecx
call fcn.00402640
add esp, 4
movzx edx, word [ebp - 0xa8]
sar edx, 8
push edx
call fcn.00402640
add esp, 4
movzx eax, word [ebp - 0xa0]
and eax, 0xff
push eax
call fcn.00402640
add esp, 4
movzx ecx, word [ebp - 0xa0]
sar ecx, 8
push ecx
call fcn.00402640
add esp, 4
mov dx, word [ebp - 0xa8]
mov word [ebp - 0xac], dx
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xa4], eax
movzx ecx, word [ebp - 0xac]
test ecx, ecx
je 0x401f6e
mov edx, dword [ebp - 0xa4]
movzx eax, word [edx]
and eax, 0xff
push eax
call fcn.00402640
add esp, 4
mov ecx, dword [ebp - 0xa4]
movzx edx, word [ecx]
sar edx, 8
push edx
call fcn.00402640
add esp, 4
mov eax, dword [ebp - 0xa4]
add eax, 2
mov dword [ebp - 0xa4], eax
mov cx, word [ebp - 0xac]
sub cx, 1
mov word [ebp - 0xac], cx
jmp 0x401f14
mov dl, byte [ebp - 0xb0]
add dl, 1
mov byte [ebp - 0xb0], dl
push 6
lea eax, [ebp - 0xb0]
push eax
call fcn.004010c0
add esp, 8
mov ecx, dword [0x41d434]
sub ecx, 1
mov dword [0x41d434], ecx
js 0x401fc9
mov edx, dword [0x41d430]
mov byte [edx], 0x2e
mov eax, 0x2e
and eax, 0xff
mov dword [ebp - 0x10c], eax
mov ecx, dword [0x41d430]
add ecx, 1
mov dword [0x41d430], ecx
jmp 0x401fde
push 0x41d430
push 0x2e
call fcn.004029f8
add esp, 8
mov dword [ebp - 0x10c], eax
movzx edx, word [ebp - 0xa8]
movzx eax, word [ebp - 0xa0]
add eax, edx
mov word [ebp - 0xa0], ax
movzx ecx, word [ebp - 0xa8]
mov edx, dword [ebp - 0xbc]
lea eax, [edx + ecx*2]
mov dword [ebp - 0xbc], eax
movzx ecx, word [ebp - 0xa8]
movzx edx, word [ebp - 0xb4]
sub edx, ecx
mov word [ebp - 0xb4], dx
jmp 0x401e75
jmp 0x401e27
push 0
call fcn.00402640
add esp, 4
push 0
call fcn.00402640
add esp, 4
push 0
call fcn.00402640
add esp, 4
push 0
call fcn.00402640
add esp, 4
mov dword [ebp - 0xc4], 0
mov word [ebp - 0xc8], 0
mov ax, word [ebp - 0xc8]
mov word [ebp - 0xc0], ax
call fcn.004026d0
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0xffffffff
je 0x4023e1
cmp dword [ebp - 0xe0], 0xd
jne 0x4020bc
mov dword [ebp - 0xc4], 0
mov word [ebp - 0xc8], 0
mov cx, word [ebp - 0xc8]
mov word [ebp - 0xc0], cx
jmp 0x40215c
cmp dword [ebp - 0xe0], 0x30
jl 0x4020f5
cmp dword [ebp - 0xe0], 0x39
jg 0x4020f5
movzx edx, word [ebp - 0xc8]
shl edx, 4
mov eax, dword [ebp - 0xe0]
lea ecx, [edx + eax - 0x30]
mov word [ebp - 0xc8], cx
mov dword [ebp - 0xe0], 0x58
jmp 0x40215c
cmp dword [ebp - 0xe0], 0x41
jl 0x40212e
cmp dword [ebp - 0xe0], 0x46
jg 0x40212e
movzx edx, word [ebp - 0xc8]
shl edx, 4
mov eax, dword [ebp - 0xe0]
lea ecx, [edx + eax - 0x37]
mov word [ebp - 0xc8], cx
mov dword [ebp - 0xe0], 0x58
jmp 0x40215c
cmp dword [ebp - 0xe0], 0x28
jne 0x40215c
mov dx, word [ebp - 0xc8]
mov word [ebp - 0xc0], dx
mov word [ebp - 0xc8], 0
mov ax, word [ebp - 0xc0]
mov word [ebp - 0xc0], ax
mov ecx, dword [ebp - 0xc4]
mov dl, byte [ebp - 0xe0]
mov byte [ebp + ecx - 0xdc], dl
mov eax, dword [ebp - 0xc4]
mov byte [ebp + eax - 0xdb], 0
cmp dword [ebp - 0xc4], 0x12
jge 0x402195
mov ecx, dword [ebp - 0xc4]
add ecx, 1
mov dword [ebp - 0xc4], ecx
push 0x41d270
lea edx, [ebp - 0xdc]
push edx
call fcn.00402970
add esp, 8
test eax, eax
jne 0x402351
call fcn.00402440
mov dword [ebp - 0xe4], eax
call fcn.00402440
sub eax, dword [ebp - 0xe4]
cmp eax, 0x12
jge 0x4021e2
call fcn.004026d0
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0xffffffff
jne 0x4021e2
jmp 0x4021bc
cmp dword [ebp - 0xe0], 0xffffffff
jne 0x4021ff
push 0x41d274
call fcn.00402937
add esp, 4
push 1
call fcn.004028f7
cmp dword [ebp - 0xe0], 0x41
jne 0x40221a
push str._r_nError_during_reprogramming_of_CPU_n
call fcn.00402937
add esp, 4
jmp 0x4022d3
mov eax, dword [ebp - 0xe0]
sub eax, 0x41
and eax, 8
je 0x402234
mov dword [ebp - 0x110], str._P2
jmp 0x40223e
mov dword [ebp - 0x110], 0x41daa4
mov ecx, dword [ebp - 0xe0]
sub ecx, 0x41
and ecx, 4
je 0x402258
mov dword [ebp - 0x114], str._P1
jmp 0x402262
mov dword [ebp - 0x114], 0x41daa5
mov edx, dword [ebp - 0xe0]
sub edx, 0x41
and edx, 2
je 0x40227c
mov dword [ebp - 0x118], str._AY
jmp 0x402286
mov dword [ebp - 0x118], 0x41daa6
mov eax, dword [ebp - 0xe0]
sub eax, 0x41
and eax, 1
je 0x4022a0
mov dword [ebp - 0x11c], str._AX
jmp 0x4022aa
mov dword [ebp - 0x11c], 0x41daa7
mov ecx, dword [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
push str._r_nError_during_reprogramming_of__s_s_s_s_n
call fcn.00402937
add esp, 0x14
call fcn.00402440
mov dword [ebp - 0xe4], eax
call fcn.00402440
sub eax, dword [ebp - 0xe4]
cmp eax, 0x12
jge 0x402304
call fcn.004026d0
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0xffffffff
jne 0x402304
jmp 0x4022de
cmp dword [ebp - 0xe0], 0xffffffff
jne 0x402321
push str._n_nCommunication_error_nProgram_aborted_n
call fcn.00402937
add esp, 4
push 1
call fcn.004028f7
cmp dword [ebp - 0xe0], 0x2d
jne 0x402344
push str._n_nProgram_aborted_n
call fcn.00402937
add esp, 4
push str.Please_contact_COMELZ_reporting_the_problem_n
call fcn.00402937
add esp, 4
push str.Reprogramming..._n
call fcn.00402937
add esp, 4
push str._r_nXINX
lea edx, [ebp - 0xdc]
push edx
call fcn.00402970
add esp, 8
test eax, eax
jne 0x402379
movzx eax, word [ebp - 0xc8]
cmp eax, 0xfe
jne 0x402379
jmp 0x4023e6
push str._r_nXXXX_XXXX_
lea ecx, [ebp - 0xdc]
push ecx
call fcn.00402970
add esp, 8
test eax, eax
jne 0x4023e1
mov edx, dword [0x41d434]
sub edx, 1
mov dword [0x41d434], edx
js 0x4023cc
mov eax, dword [0x41d430]
mov byte [eax], 0x2e
mov ecx, 0x2e
and ecx, 0xff
mov dword [ebp - 0x120], ecx
mov edx, dword [0x41d430]
add edx, 1
mov dword [0x41d430], edx
jmp 0x4023e1
push 0x41d430
push 0x2e
call fcn.004029f8
add esp, 8
mov dword [ebp - 0x120], eax
jmp 0x402075
push str.Ok_n_n
call fcn.00402937
add esp, 4
push str.Reprogramming_completed_succesfully._n
call fcn.00402937
add esp, 4
push str._nAttesa_chiusura_programma_n
call fcn.00402937
add esp, 4
call fcn.00402440
mov dword [ebp - 0xe8], eax
call fcn.00402440
sub eax, dword [ebp - 0xe8]
cmp eax, 0x36
jge 0x40242a
jmp 0x402418
jmp 0x40242e
xor eax, eax
mov esp, ebp
pop ebp
ret