Function at 0x404414
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x10], 0x4d5008
movsx eax, word [0x4d5190]
cmp eax, 0x53
jne 0x404454
mov dword [ebp - 0x2c], 0x5856c0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042f28b
add esp, 4
mov word [ebp - 0x1c], 0xd
mov word [0x4d5190], 0x40
jmp 0x404606
movsx edx, word [0x5854c6]
imul edx, edx, 0x424
movsx eax, word [0x5854d0]
lea ecx, [edx + eax + 0x5359c0]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x1e
mov dword [ebp - 8], ecx
call fcn.00469ffd
mov dword [ebp - 0xc], eax
push 0
push 0x4d4f4e
call fcn.00469f30
add esp, 8
mov word [0x575f10], 0x7c
push 0
call fcn.0042f027
add esp, 4
push 0
call fcn.004593e9
add esp, 4
call fcn.0045a816
mov word [ebp - 0x1c], ax
movsx edx, word [ebp - 0x1c]
cmp edx, 8
jne 0x4044f0
movsx eax, word [0x5854c6]
imul eax, eax, 0x424
movsx ecx, word [0x5854d0]
lea edx, [eax + ecx + 0x5359c0]
cmp dword [ebp - 0x18], edx
je 0x4044f2
jmp 0x4044fb
mov eax, 1
test eax, eax
jne 0x4044be
mov word [0x575f10], 8
push 0
call fcn.0042f027
add esp, 4
push 0
call fcn.004593e9
add esp, 4
movsx ecx, word [ebp - 0x1c]
cmp ecx, 0xd
je 0x404587
movsx edx, word [ebp - 0x1c]
cmp edx, 0x25
je 0x404560
movsx eax, word [ebp - 0x1c]
cmp eax, 0x27
je 0x404560
movsx ecx, word [ebp - 0x1c]
cmp ecx, 0x28
je 0x404560
movsx edx, word [ebp - 0x1c]
cmp edx, 0x26
je 0x404560
movsx eax, word [ebp - 0x1c]
cmp eax, 0x22
je 0x404560
movsx ecx, word [ebp - 0x1c]
cmp ecx, 0x21
je 0x404560
movsx edx, word [ebp - 0x1c]
cmp edx, 0x24
jne 0x40456c
movsx eax, word [0x4d21b4]
cmp eax, 0x53
jne 0x404587
movsx ecx, word [ebp - 0x1c]
cmp ecx, 0x2c
je 0x404587
movsx edx, word [ebp - 0x1c]
cmp edx, 0x3a
je 0x404587
movsx eax, word [ebp - 0x1c]
cmp eax, 0x3b
jne 0x404589
jmp 0x4045f1
mov cx, word [ebp - 0x1c]
mov word [0x575f10], cx
push 0
call fcn.0042f027
add esp, 4
push 0
call fcn.004593e9
add esp, 4
movsx edx, word [0x5854c6]
imul edx, edx, 0x424
movsx eax, word [0x5854d0]
lea ecx, [edx + eax + 0x5359c0]
cmp ecx, dword [ebp - 8]
jne 0x4045e4
push str.Input_Overflow__
call fcn.0042f28b
add esp, 4
mov word [ebp - 0x1c], 0x24
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
mov edx, 1
test edx, edx
jne 0x4044a1
cmp dword [ebp - 0xc], 0
jne 0x404606
push 1
push 0x4d4f4e
call fcn.00469f30
add esp, 8
jmp 0x404611
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0x20
jne 0x40461f
jmp 0x404608
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
je 0x4046fd
movsx edx, byte [ebp + 0xc]
cmp edx, 2
je 0x4046fd
movsx eax, byte [0x576b27]
test eax, eax
jne 0x4046fd
movsx ecx, byte [0x4d552c]
cmp ecx, 1
jne 0x4046fd
movsx edx, byte [0x576b24]
cmp edx, 1
jne 0x4046a6
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x40]
shr cx, 6
and cx, 3
and ecx, 0xffff
test ecx, ecx
jne 0x4046a4
push 0
push str.Insufficient_Access_Right__
call fcn.0045aa31
add esp, 8
push str.Insufficient_Access_Right__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
jmp 0x4046fd
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x40]
shr ax, 6
and ax, 3
and eax, 0xffff
test eax, eax
je 0x4046d8
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x40]
shr dx, 6
and dx, 3
and edx, 0xffff
cmp edx, 1
jne 0x4046fd
push 0
push str.Insufficient_Access_Right__
call fcn.0045aa31
add esp, 8
push str.Insufficient_Access_Right__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x3a]
shr cx, 3
and cx, 1
and ecx, 0xffff
test ecx, ecx
jne 0x405551
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x3e]
shr ax, 0xa
and ax, 1
and eax, 0xffff
test eax, eax
jne 0x405551
movsx cx, byte [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004066ea
add esp, 0xc
fst qword [ebp - 0x34]
fcomp qword [0x4ca350]
fnstsw ax
test ah, 0x40
je 0x404765
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x40]
shr dx, 0xf
and dx, 1
and edx, 0xffff
test edx, edx
je 0x404ab6
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x40]
shr cx, 3
and cx, 1
and ecx, 0xffff
cmp ecx, 1
jne 0x4047c4
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x4b]
test eax, eax
je 0x4047b6
fld qword [0x4ca348]
fdiv qword [ebp - 0x34]
fstp dword [ebp - 0x24]
jmp 0x4047c2
mov ecx, dword [ebp + 8]
fld dword [ecx + 0x32]
fdiv qword [ebp - 0x34]
fstp dword [ebp - 0x24]
jmp 0x4047e4
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x4b]
test eax, eax
je 0x4047d8
fld qword [ebp - 0x34]
fstp dword [ebp - 0x24]
jmp 0x4047e4
mov ecx, dword [ebp + 8]
fld dword [ecx + 0x32]
fmul qword [ebp - 0x34]
fstp dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [0x576b10], eax
mov cl, byte [ebp + 0xc]
mov byte [ebp - 0x38], cl
cmp byte [ebp - 0x38], 0
je 0x404817
cmp byte [ebp - 0x38], 1
je 0x4049e8
jmp 0x404ab1
movsx edx, byte [0x4d552b]
test edx, edx
je 0x404840
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x3e]
shr cx, 0xe
and cx, 1
and ecx, 0xffff
cmp ecx, 1
jne 0x4049cd
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x44
push 0x53
call fcn.004073f1
add esp, 0x10
movsx edx, al
test edx, edx
jne 0x404865
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx eax, al
test eax, eax
jne 0x404882
xor ax, ax
jmp 0x4064ee
movsx ecx, byte [0x4d552a]
cmp ecx, 1
jne 0x404968
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x3e]
shr ax, 0xf
and ax, 1
and eax, 0xffff
cmp eax, 1
jne 0x404968
call fcn.00464e4a
movsx ecx, al
test ecx, ecx
jne 0x4048d8
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx edx, al
test edx, edx
jne 0x4048d6
xor ax, ax
jmp 0x4064ee
jmp 0x404915
push 4
push str.Do_you_want_to__nexecute_the_PON_segment__
call fcn.0045aa31
add esp, 8
movsx eax, ax
cmp eax, 6
jne 0x40490c
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx ecx, al
test ecx, ecx
jne 0x40490a
xor ax, ax
jmp 0x4064ee
jmp 0x404915
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
call fcn.00433c61
movsx edx, al
test edx, edx
jne 0x404929
xor ax, ax
jmp 0x4064ee
mov ax, word [0x5265ea]
push eax
call fcn.00432b45
add esp, 4
xor cx, cx
mov cl, al
mov word [0x575f10], cx
xor edx, edx
mov dx, word [0x575f10]
cmp edx, 0x4f
je 0x404968
push str.Error_calculating_PON__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
movsx eax, byte [0x4d552a]
test eax, eax
jne 0x40499a
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x3e]
shr dx, 0xf
and dx, 1
and edx, 0xffff
cmp edx, 1
jne 0x40499a
push str.Please_note__PON_Bit_ignored_
call fcn.0042f28b
add esp, 4
movsx eax, byte [0x4d552b]
test eax, eax
jne 0x4049cb
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x3e]
shr dx, 0xe
and dx, 1
and edx, 0xffff
test edx, edx
jne 0x4049cb
push str.Please_note__UPD_Bit_ignored_
call fcn.0042f28b
add esp, 4
jmp 0x4049e3
push str.Update_not_possible__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
jmp 0x404ab1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x46]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00494c40
add esp, 0x10
movsx edx, al
test edx, edx
jne 0x404a12
xor ax, ax
jmp 0x4064ee
push 1
call fcn.004335d3
add esp, 4
movsx eax, al
test eax, eax
jne 0x404a2b
xor ax, ax
jmp 0x4064ee
mov cl, byte [0x52d2a0]
mov byte [ebp - 0x3c], cl
cmp byte [ebp - 0x3c], 0x42
je 0x404a5d
cmp byte [ebp - 0x3c], 0x46
je 0x404a48
cmp byte [ebp - 0x3c], 0x4c
je 0x404a72
jmp 0x404a87
push str.Buffer_full__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_busy__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_locked__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx edx, al
test edx, edx
jne 0x404aa4
xor ax, ax
jmp 0x4064ee
mov eax, dword [ebp + 0x14]
mov cx, word [0x56aef4]
mov word [eax], cx
jmp 0x40554c
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x40]
and ax, 7
and eax, 0xffff
test eax, eax
jne 0x404e3d
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x40]
shr dx, 3
and dx, 1
and edx, 0xffff
cmp edx, 1
jne 0x404afb
mov eax, dword [ebp + 8]
fld dword [eax + 0x32]
fdiv qword [ebp - 0x34]
call fcn.004bcf10
mov byte [ebp - 0x14], al
jmp 0x404b1a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x32]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00462ade
add esp, 0xc
call fcn.004bcf10
mov byte [ebp - 0x14], al
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [0x576b10], edx
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x40], al
cmp byte [ebp - 0x40], 0
je 0x404b4e
cmp byte [ebp - 0x40], 1
je 0x404d4e
jmp 0x404e3d
movsx ecx, byte [0x4d552b]
test ecx, ecx
je 0x404b76
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x3e]
shr ax, 0xe
and ax, 1
and eax, 0xffff
cmp eax, 1
jne 0x404d33
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 4], 0x52
jne 0x404ba6
mov dl, byte [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x44
push 0x52
call fcn.00407237
add esp, 0x10
movsx edx, al
test edx, edx
jne 0x404ba4
xor ax, ax
jmp 0x4064ee
jmp 0x404bcc
movsx eax, byte [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0x44
push 0x53
call fcn.004073f1
add esp, 0x10
movsx eax, al
test eax, eax
jne 0x404bcc
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4200
call fcn.0043393b
movsx ecx, al
test ecx, ecx
jne 0x404be9
xor ax, ax
jmp 0x4064ee
movsx edx, byte [0x4d552a]
cmp edx, 1
jne 0x404cd0
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x3e]
shr cx, 0xf
and cx, 1
and ecx, 0xffff
cmp ecx, 1
jne 0x404cd0
call fcn.00464e4a
movsx edx, al
test edx, edx
jne 0x404c40
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx eax, al
test eax, eax
jne 0x404c3e
xor ax, ax
jmp 0x4064ee
jmp 0x404c7d
push 4
push str.Do_you_want_to__nexecute_the_PON_segment__
call fcn.0045aa31
add esp, 8
movsx ecx, ax
cmp ecx, 6
jne 0x404c74
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx edx, al
test edx, edx
jne 0x404c72
xor ax, ax
jmp 0x4064ee
jmp 0x404c7d
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
call fcn.00433c61
movsx eax, al
test eax, eax
jne 0x404c91
xor ax, ax
jmp 0x4064ee
mov cx, word [0x5265ea]
push ecx
call fcn.00432b45
add esp, 4
xor dx, dx
mov dl, al
mov word [0x575f10], dx
xor eax, eax
mov ax, word [0x575f10]
cmp eax, 0x4f
je 0x404cd0
push str.Error_calculating_PON__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
movsx ecx, byte [0x4d552a]
test ecx, ecx
jne 0x404d01
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x3e]
shr ax, 0xf
and ax, 1
and eax, 0xffff
cmp eax, 1
jne 0x404d01
push str.Please_note__PON_Bit_ignored_
call fcn.0042f28b
add esp, 4
movsx ecx, byte [0x4d552b]
test ecx, ecx
jne 0x404d31
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x3e]
shr ax, 0xe
and ax, 1
and eax, 0xffff
test eax, eax
jne 0x404d31
push str.Please_note__UPD_Bit_ignored_
call fcn.0042f28b
add esp, 4
jmp 0x404d49
push str.Update_not_possible__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
jmp 0x404e3d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x46]
push edx
mov eax, dword [0x576b10]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00494c40
add esp, 0x10
movsx eax, al
test eax, eax
jne 0x404d7a
xor ax, ax
jmp 0x4064ee
push 1
call fcn.004335d3
add esp, 4
movsx ecx, al
test ecx, ecx
jne 0x404d93
xor ax, ax
jmp 0x4064ee
xor edx, edx
mov dl, byte [0x52d2a0]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
sub eax, 0x42
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x23
ja case.0x404db8.4
mov edx, dword [ebp - 0x44]
xor ecx, ecx
mov cl, byte [edx + 0x406506]
jmp dword [ecx*4 + 0x4064f2]
push str.Buffer_full__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_busy__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_locked__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Bad_switch_position__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx eax, al
test eax, eax
jne 0x404e30
xor ax, ax
jmp 0x4064ee
mov ecx, dword [ebp + 0x14]
mov dx, word [0x56aef4]
mov word [ecx], dx
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x40]
and cx, 7
and ecx, 0xffff
cmp ecx, 1
jne 0x4051c7
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x40]
shr ax, 3
and ax, 1
and eax, 0xffff
cmp eax, 1
jne 0x404e84
mov ecx, dword [ebp + 8]
fld dword [ecx + 0x32]
fdiv qword [ebp - 0x34]
call fcn.004bcf10
mov word [ebp - 0x28], ax
jmp 0x404ea4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x32]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.00462ade
add esp, 0xc
call fcn.004bcf10
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x28]
and eax, 0xffff
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [0x576b10], eax
mov cl, byte [ebp + 0xc]
mov byte [ebp - 0x48], cl
cmp byte [ebp - 0x48], 0
je 0x404ed6
cmp byte [ebp - 0x48], 1
je 0x4050d9
jmp 0x4051c7
movsx edx, byte [0x4d552b]
test edx, edx
je 0x404eff
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x3e]
shr cx, 0xe
and cx, 1
and ecx, 0xffff
cmp ecx, 1
jne 0x4050be
mov edx, dword [ebp - 0x10]
cmp dword [edx + 4], 0x52
jne 0x404f30
mov ax, word [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0x44
push 0x52
call fcn.00407314
add esp, 0x10
movsx eax, al
test eax, eax
jne 0x404f2e
xor ax, ax
jmp 0x4064ee
jmp 0x404f56
movsx ecx, word [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0x44
push 0x53
call fcn.004073f1
add esp, 0x10
movsx ecx, al
test ecx, ecx
jne 0x404f56
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x5700
call fcn.0043393b
movsx edx, al
test edx, edx
jne 0x404f73
xor ax, ax
jmp 0x4064ee
movsx eax, byte [0x4d552a]
cmp eax, 1
jne 0x405059
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x3e]
shr dx, 0xf
and dx, 1
and edx, 0xffff
cmp edx, 1
jne 0x405059
call fcn.00464e4a
movsx eax, al
test eax, eax
jne 0x404fca
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx ecx, al
test ecx, ecx
jne 0x404fc8
xor ax, ax
jmp 0x4064ee
jmp 0x405007
push 4
push str.Do_you_want_to__nexecute_the_PON_segment__
call fcn.0045aa31
add esp, 8
movsx edx, ax
cmp edx, 6
jne 0x404ffe
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx eax, al
test eax, eax
jne 0x404ffc
xor ax, ax
jmp 0x4064ee
jmp 0x405007
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
call fcn.00433c61
movsx ecx, al
test ecx, ecx
jne 0x40501b
xor ax, ax
jmp 0x4064ee
mov dx, word [0x5265ea]
push edx
call fcn.00432b45
add esp, 4
movzx ax, al
mov word [0x575f10], ax
xor ecx, ecx
mov cx, word [0x575f10]
cmp ecx, 0x4f
je 0x405059
push str.Error_calculating_PON__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
movsx edx, byte [0x4d552a]
test edx, edx
jne 0x40508b
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x3e]
shr cx, 0xf
and cx, 1
and ecx, 0xffff
cmp ecx, 1
jne 0x40508b
push str.Please_note__PON_Bit_ignored_
call fcn.0042f28b
add esp, 4
movsx edx, byte [0x4d552b]
test edx, edx
jne 0x4050bc
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x3e]
shr cx, 0xe
and cx, 1
and ecx, 0xffff
test ecx, ecx
jne 0x4050bc
push str.Please_note__UPD_Bit_ignored_
call fcn.0042f28b
add esp, 4
jmp 0x4050d4
push str.Update_not_possible__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
jmp 0x4051c7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x46]
push eax
mov ecx, dword [0x576b10]
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00494c40
add esp, 0x10
movsx ecx, al
test ecx, ecx
jne 0x405106
xor ax, ax
jmp 0x4064ee
push 1
call fcn.004335d3
add esp, 4
movsx edx, al
test edx, edx
jne 0x40511f
xor ax, ax
jmp 0x4064ee
xor eax, eax
mov al, byte [0x52d2a0]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
sub ecx, 0x42
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0x23
ja case.0x405143.4
mov eax, dword [ebp - 0x4c]
xor edx, edx
mov dl, byte [eax + 0x40653e]
jmp dword [edx*4 + 0x40652a]
push str.Buffer_full__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_busy__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_locked__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Bad_switch_position__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx ecx, al
test ecx, ecx
jne 0x4051bb
xor ax, ax
jmp 0x4064ee
mov edx, dword [ebp + 0x14]
mov ax, word [0x56aef4]
mov word [edx], ax
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x40]
and dx, 7
and edx, 0xffff
cmp edx, 3
jne 0x40554c
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x40]
shr cx, 3
and cx, 1
and ecx, 0xffff
cmp ecx, 1
jne 0x40520e
mov edx, dword [ebp + 8]
fld dword [edx + 0x32]
fdiv qword [ebp - 0x34]
call fcn.004bcf10
mov dword [ebp - 0x20], eax
jmp 0x40522d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x32]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00462ade
add esp, 0xc
call fcn.004bcf10
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [0x576b10], ecx
mov dl, byte [ebp + 0xc]
mov byte [ebp - 0x50], dl
cmp byte [ebp - 0x50], 0
je 0x40525b
cmp byte [ebp - 0x50], 1
je 0x40545c
jmp 0x40554c
movsx eax, byte [0x4d552b]
test eax, eax
je 0x405284
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x3e]
shr dx, 0xe
and dx, 1
and edx, 0xffff
cmp edx, 1
jne 0x405441
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0x52
jne 0x4052b4
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0x44
push 0x52
call fcn.00407160
add esp, 0x10
movsx ecx, al
test ecx, ecx
jne 0x4052b2
xor ax, ax
jmp 0x4064ee
jmp 0x4052d9
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x44
push 0x53
call fcn.004073f1
add esp, 0x10
movsx edx, al
test edx, edx
jne 0x4052d9
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx eax, al
test eax, eax
jne 0x4052f6
xor ax, ax
jmp 0x4064ee
movsx ecx, byte [0x4d552a]
cmp ecx, 1
jne 0x4053dc
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x3e]
shr ax, 0xf
and ax, 1
and eax, 0xffff
cmp eax, 1
jne 0x4053dc
call fcn.00464e4a
movsx ecx, al
test ecx, ecx
jne 0x40534c
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx edx, al
test edx, edx
jne 0x40534a
xor ax, ax
jmp 0x4064ee
jmp 0x405389
push 4
push str.Do_you_want_to__nexecute_the_PON_segment__
call fcn.0045aa31
add esp, 8
movsx eax, ax
cmp eax, 6
jne 0x405380
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx ecx, al
test ecx, ecx
jne 0x40537e
xor ax, ax
jmp 0x4064ee
jmp 0x405389
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
call fcn.00433c61
movsx edx, al
test edx, edx
jne 0x40539d
xor ax, ax
jmp 0x4064ee
mov ax, word [0x5265ea]
push eax
call fcn.00432b45
add esp, 4
xor cx, cx
mov cl, al
mov word [0x575f10], cx
xor edx, edx
mov dx, word [0x575f10]
cmp edx, 0x4f
je 0x4053dc
push str.Error_calculating_PON__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
movsx eax, byte [0x4d552a]
test eax, eax
jne 0x40540e
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x3e]
shr dx, 0xf
and dx, 1
and edx, 0xffff
cmp edx, 1
jne 0x40540e
push str.Please_note__PON_Bit_ignored_
call fcn.0042f28b
add esp, 4
movsx eax, byte [0x4d552b]
test eax, eax
jne 0x40543f
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x3e]
shr dx, 0xe
and dx, 1
and edx, 0xffff
test edx, edx
jne 0x40543f
push str.Please_note__UPD_Bit_ignored_
call fcn.0042f28b
add esp, 4
jmp 0x405457
push str.Update_not_possible__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
jmp 0x40554c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x46]
push ecx
mov edx, dword [0x576b10]
push edx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00494c40
add esp, 0x10
movsx edx, al
test edx, edx
jne 0x405489
xor ax, ax
jmp 0x4064ee
push 1
call fcn.004335d3
add esp, 4
movsx eax, al
test eax, eax
jne 0x4054a2
xor ax, ax
jmp 0x4064ee
xor ecx, ecx
mov cl, byte [0x52d2a0]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
sub edx, 0x42
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0x23
ja case.0x4054c7.4
mov ecx, dword [ebp - 0x54]
xor eax, eax
mov al, byte [ecx + 0x406576]
jmp dword [eax*4 + 0x406562]
push str.Buffer_full__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_busy__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_locked__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Bad_switch_position__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx edx, al
test edx, edx
jne 0x40553f
xor ax, ax
jmp 0x4064ee
mov eax, dword [ebp + 0x14]
mov cx, word [0x56aef4]
mov word [eax], cx
jmp 0x406489
lea edx, [ebp - 4]
push edx
movsx ax, byte [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406b8f
add esp, 0x10
test eax, eax
jne 0x405578
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x3a]
shr cx, 3
and cx, 1
and ecx, 0xffff
cmp ecx, 1
jne 0x405b6d
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x51]
shr ax, 8
and ax, 7
and eax, 0xffff
test eax, eax
jne 0x405781
mov cl, byte [ebp - 4]
mov byte [ebp - 0x14], cl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [0x576b10], edx
movsx eax, byte [ebp + 0xc]
test eax, eax
jne 0x405681
mov cl, byte [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0x44
push 0x52
call fcn.00407237
add esp, 0x10
movsx ecx, al
test ecx, ecx
jne 0x405602
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4200
call fcn.0043393b
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x51]
shr ax, 0xb
and ax, 1
and eax, 0xffff
cmp eax, 1
jne 0x405681
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x51]
and dx, 1
and edx, 0xffff
test edx, edx
jne 0x405681
mov al, byte [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0x44
push 0x52
call fcn.00407237
add esp, 0x10
movsx eax, al
test eax, eax
jne 0x405664
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4200
call fcn.0043393b
movsx ecx, al
test ecx, ecx
jne 0x405681
xor ax, ax
jmp 0x4064ee
movsx edx, byte [ebp + 0xc]
cmp edx, 1
jne 0x405781
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x46]
push ecx
mov edx, dword [0x576b10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00494c40
add esp, 0x10
movsx ecx, al
test ecx, ecx
jne 0x4056c0
xor ax, ax
jmp 0x4064ee
push 1
call fcn.004335d3
add esp, 4
movsx edx, al
test edx, edx
jne 0x4056d9
xor ax, ax
jmp 0x4064ee
xor eax, eax
mov al, byte [0x52d2a0]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
sub ecx, 0x42
mov dword [ebp - 0x58], ecx
cmp dword [ebp - 0x58], 0x23
ja case.0x4056fd.4
mov eax, dword [ebp - 0x58]
xor edx, edx
mov dl, byte [eax + 0x4065ae]
jmp dword [edx*4 + 0x40659a]
push str.Buffer_full__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_busy__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_locked__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Bad_switch_position__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx ecx, al
test ecx, ecx
jne 0x405775
xor ax, ax
jmp 0x4064ee
mov edx, dword [ebp + 0x14]
mov ax, word [0x56aef4]
mov word [edx], ax
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x51]
shr dx, 8
and dx, 7
and edx, 0xffff
cmp edx, 1
jne 0x405975
mov ax, word [ebp - 4]
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x28]
and ecx, 0xffff
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [0x576b10], ecx
movsx edx, byte [ebp + 0xc]
test edx, edx
jne 0x405873
mov ax, word [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0x44
push 0x52
call fcn.00407314
add esp, 0x10
movsx eax, al
test eax, eax
jne 0x4057f2
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x5700
call fcn.0043393b
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x51]
shr dx, 0xb
and dx, 1
and edx, 0xffff
cmp edx, 1
jne 0x405873
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x51]
and cx, 1
and ecx, 0xffff
test ecx, ecx
jne 0x405873
mov dx, word [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4c]
push ecx
push 0x44
push 0x52
call fcn.00407314
add esp, 0x10
movsx edx, al
test edx, edx
jne 0x405856
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x5700
call fcn.0043393b
movsx eax, al
test eax, eax
jne 0x405873
xor ax, ax
jmp 0x4064ee
movsx ecx, byte [ebp + 0xc]
cmp ecx, 1
jne 0x405975
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x46]
push eax
mov ecx, dword [0x576b10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00494c40
add esp, 0x10
movsx eax, al
test eax, eax
jne 0x4058b2
xor ax, ax
jmp 0x4064ee
push 1
call fcn.004335d3
add esp, 4
movsx ecx, al
test ecx, ecx
jne 0x4058cb
xor ax, ax
jmp 0x4064ee
xor edx, edx
mov dl, byte [0x52d2a0]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
sub eax, 0x42
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0x23
ja case.0x4058f0.4
mov edx, dword [ebp - 0x5c]
xor ecx, ecx
mov cl, byte [edx + 0x4065e6]
jmp dword [ecx*4 + 0x4065d2]
push str.Buffer_full__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_busy__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_locked__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Bad_switch_position__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx eax, al
test eax, eax
jne 0x405968
xor ax, ax
jmp 0x4064ee
mov ecx, dword [ebp + 0x14]
mov dx, word [0x56aef4]
mov word [ecx], dx
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x51]
shr cx, 8
and cx, 7
and ecx, 0xffff
cmp ecx, 3
jne 0x405a67
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [0x576b10], eax
movsx ecx, byte [ebp + 0xc]
test ecx, ecx
jne 0x405a67
mov edx, dword [ebp - 0x20]
and edx, 0xffff
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x44
push 0x52
call fcn.00407160
add esp, 0x10
movsx edx, al
test edx, edx
jne 0x4059e2
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x51]
shr cx, 0xb
and cx, 1
and ecx, 0xffff
cmp ecx, 1
jne 0x405a67
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x51]
and ax, 1
and eax, 0xffff
test eax, eax
jne 0x405a67
mov ecx, dword [ebp - 0x20]
and ecx, 0xffff
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x4c]
push eax
push 0x44
push 0x52
call fcn.00407160
add esp, 0x10
movsx ecx, al
test ecx, ecx
jne 0x405a4a
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx edx, al
test edx, edx
jne 0x405a67
xor ax, ax
jmp 0x4064ee
movsx eax, byte [ebp + 0xc]
cmp eax, 1
jne 0x405b68
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x46]
push edx
mov eax, dword [0x576b10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00494c40
add esp, 0x10
movsx edx, al
test edx, edx
jne 0x405aa5
xor ax, ax
jmp 0x4064ee
push 1
call fcn.004335d3
add esp, 4
movsx eax, al
test eax, eax
jne 0x405abe
xor ax, ax
jmp 0x4064ee
xor ecx, ecx
mov cl, byte [0x52d2a0]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
sub edx, 0x42
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 0x23
ja case.0x405ae3.4
mov ecx, dword [ebp - 0x60]
xor eax, eax
mov al, byte [ecx + 0x40661e]
jmp dword [eax*4 + 0x40660a]
push str.Buffer_full__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_busy__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_locked__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Bad_switch_position__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx edx, al
test edx, edx
jne 0x405b5b
xor ax, ax
jmp 0x4064ee
mov eax, dword [ebp + 0x14]
mov cx, word [0x56aef4]
mov word [eax], cx
jmp 0x406489
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x40]
and ax, 7
and eax, 0xffff
test eax, eax
jne 0x405e66
mov cl, byte [ebp - 4]
mov byte [ebp - 0x14], cl
mov edx, dword [ebp - 0x14]
and edx, 0xff
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [0x576b10], edx
movsx eax, byte [ebp + 0xc]
test eax, eax
jne 0x405d6b
movsx ecx, byte [0x4d552b]
test ecx, ecx
je 0x405bd8
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x3e]
shr ax, 0xe
and ax, 1
and eax, 0xffff
cmp eax, 1
jne 0x405d55
mov cl, byte [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0x44
push 0x52
call fcn.00407237
add esp, 0x10
movsx ecx, al
test ecx, ecx
jne 0x405bfd
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4200
call fcn.0043393b
movsx edx, byte [0x4d552a]
cmp edx, 1
jne 0x405cf2
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x3e]
shr cx, 0xf
and cx, 1
and ecx, 0xffff
cmp ecx, 1
jne 0x405cf2
call fcn.00464e4a
movsx edx, al
test edx, edx
jne 0x405c62
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx eax, al
test eax, eax
jne 0x405c60
xor ax, ax
jmp 0x4064ee
jmp 0x405c9f
push 4
push str.Do_you_want_to__nexecute_the_PON_segment__
call fcn.0045aa31
add esp, 8
movsx ecx, ax
cmp ecx, 6
jne 0x405c96
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx edx, al
test edx, edx
jne 0x405c94
xor ax, ax
jmp 0x4064ee
jmp 0x405c9f
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
call fcn.00433c61
movsx eax, al
test eax, eax
jne 0x405cb3
xor ax, ax
jmp 0x4064ee
mov cx, word [0x5265ea]
push ecx
call fcn.00432b45
add esp, 4
xor dx, dx
mov dl, al
mov word [0x575f10], dx
xor eax, eax
mov ax, word [0x575f10]
cmp eax, 0x4f
je 0x405cf2
push str.Error_calculating_PON__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
movsx ecx, byte [0x4d552a]
test ecx, ecx
jne 0x405d23
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x3e]
shr ax, 0xf
and ax, 1
and eax, 0xffff
cmp eax, 1
jne 0x405d23
push str.Please_note__PON_Bit_ignored_
call fcn.0042f28b
add esp, 4
movsx ecx, byte [0x4d552b]
test ecx, ecx
jne 0x405d53
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x3e]
shr ax, 0xe
and ax, 1
and eax, 0xffff
test eax, eax
jne 0x405d53
push str.Please_note__UPD_Bit_ignored_
call fcn.0042f28b
add esp, 4
jmp 0x405d6b
push str.Update_not_possible__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
movsx ecx, byte [ebp + 0xc]
cmp ecx, 1
jne 0x405e66
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x46]
push eax
mov ecx, dword [0x576b10]
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00494c40
add esp, 0x10
movsx ecx, al
test ecx, ecx
jne 0x405da5
xor ax, ax
jmp 0x4064ee
push 1
call fcn.004335d3
add esp, 4
movsx edx, al
test edx, edx
jne 0x405dbe
xor ax, ax
jmp 0x4064ee
xor eax, eax
mov al, byte [0x52d2a0]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
sub ecx, 0x42
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x23
ja case.0x405de2.4
mov eax, dword [ebp - 0x64]
xor edx, edx
mov dl, byte [eax + 0x406656]
jmp dword [edx*4 + 0x406642]
push str.Buffer_full__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_busy__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_locked__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Bad_switch_position__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx ecx, al
test ecx, ecx
jne 0x405e5a
xor ax, ax
jmp 0x4064ee
mov edx, dword [ebp + 0x14]
mov ax, word [0x56aef4]
mov word [edx], ax
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x40]
and dx, 7
and edx, 0xffff
cmp edx, 1
jne 0x406167
mov ax, word [ebp - 4]
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x28]
and ecx, 0xffff
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [0x576b10], ecx
movsx edx, byte [ebp + 0xc]
test edx, edx
jne 0x40606b
movsx eax, byte [0x4d552b]
test eax, eax
je 0x405ed6
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x3e]
shr dx, 0xe
and dx, 1
and edx, 0xffff
cmp edx, 1
jne 0x406055
mov ax, word [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0x44
push 0x52
call fcn.00407314
add esp, 0x10
movsx eax, al
test eax, eax
jne 0x405efc
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x5700
call fcn.0043393b
movsx ecx, byte [0x4d552a]
cmp ecx, 1
jne 0x405ff0
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x3e]
shr ax, 0xf
and ax, 1
and eax, 0xffff
cmp eax, 1
jne 0x405ff0
call fcn.00464e4a
movsx ecx, al
test ecx, ecx
jne 0x405f60
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx edx, al
test edx, edx
jne 0x405f5e
xor ax, ax
jmp 0x4064ee
jmp 0x405f9d
push 4
push str.Do_you_want_to__nexecute_the_PON_segment__
call fcn.0045aa31
add esp, 8
movsx eax, ax
cmp eax, 6
jne 0x405f94
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx ecx, al
test ecx, ecx
jne 0x405f92
xor ax, ax
jmp 0x4064ee
jmp 0x405f9d
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
call fcn.00433c61
movsx edx, al
test edx, edx
jne 0x405fb1
xor ax, ax
jmp 0x4064ee
mov ax, word [0x5265ea]
push eax
call fcn.00432b45
add esp, 4
xor cx, cx
mov cl, al
mov word [0x575f10], cx
xor edx, edx
mov dx, word [0x575f10]
cmp edx, 0x4f
je 0x405ff0
push str.Error_calculating_PON__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
movsx eax, byte [0x4d552a]
test eax, eax
jne 0x406022
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x3e]
shr dx, 0xf
and dx, 1
and edx, 0xffff
cmp edx, 1
jne 0x406022
push str.Please_note__PON_Bit_ignored_
call fcn.0042f28b
add esp, 4
movsx eax, byte [0x4d552b]
test eax, eax
jne 0x406053
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x3e]
shr dx, 0xe
and dx, 1
and edx, 0xffff
test edx, edx
jne 0x406053
push str.Please_note__UPD_Bit_ignored_
call fcn.0042f28b
add esp, 4
jmp 0x40606b
push str.Update_not_possible__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
movsx eax, byte [ebp + 0xc]
cmp eax, 1
jne 0x406167
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x46]
push edx
mov eax, dword [0x576b10]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00494c40
add esp, 0x10
movsx eax, al
test eax, eax
jne 0x4060a4
xor ax, ax
jmp 0x4064ee
push 1
call fcn.004335d3
add esp, 4
movsx ecx, al
test ecx, ecx
jne 0x4060bd
xor ax, ax
jmp 0x4064ee
xor edx, edx
mov dl, byte [0x52d2a0]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
sub eax, 0x42
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0x23
ja case.0x4060e2.4
mov edx, dword [ebp - 0x68]
xor ecx, ecx
mov cl, byte [edx + 0x40668e]
jmp dword [ecx*4 + 0x40667a]
push str.Buffer_full__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_busy__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_locked__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Bad_switch_position__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx eax, al
test eax, eax
jne 0x40615a
xor ax, ax
jmp 0x4064ee
mov ecx, dword [ebp + 0x14]
mov dx, word [0x56aef4]
mov word [ecx], dx
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x40]
and cx, 7
and ecx, 0xffff
cmp ecx, 3
jne 0x406489
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [0x576b10], eax
movsx ecx, byte [ebp + 0xc]
test ecx, ecx
jne 0x406391
movsx edx, byte [0x4d552b]
test edx, edx
je 0x4061ce
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x3e]
shr cx, 0xe
and cx, 1
and ecx, 0xffff
cmp ecx, 1
jne 0x40637b
mov edx, dword [ebp - 0x10]
cmp dword [edx + 4], 0x52
jne 0x4061fe
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0x44
push 0x52
call fcn.00407160
add esp, 0x10
movsx eax, al
test eax, eax
jne 0x4061fc
xor ax, ax
jmp 0x4064ee
jmp 0x406223
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0x44
push 0x53
call fcn.004073f1
add esp, 0x10
movsx ecx, al
test ecx, ecx
jne 0x406223
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx edx, byte [0x4d552a]
cmp edx, 1
jne 0x406318
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x3e]
shr cx, 0xf
and cx, 1
and ecx, 0xffff
cmp ecx, 1
jne 0x406318
call fcn.00464e4a
movsx edx, al
test edx, edx
jne 0x406288
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx eax, al
test eax, eax
jne 0x406286
xor ax, ax
jmp 0x4064ee
jmp 0x4062c5
push 4
push str.Do_you_want_to__nexecute_the_PON_segment__
call fcn.0045aa31
add esp, 8
movsx ecx, ax
cmp ecx, 6
jne 0x4062bc
push 0xffffffffffffffff
push 4
call fcn.00407824
add esp, 8
movsx edx, al
test edx, edx
jne 0x4062ba
xor ax, ax
jmp 0x4064ee
jmp 0x4062c5
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
call fcn.00433c61
movsx eax, al
test eax, eax
jne 0x4062d9
xor ax, ax
jmp 0x4064ee
mov cx, word [0x5265ea]
push ecx
call fcn.00432b45
add esp, 4
xor dx, dx
mov dl, al
mov word [0x575f10], dx
xor eax, eax
mov ax, word [0x575f10]
cmp eax, 0x4f
je 0x406318
push str.Error_calculating_PON__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
movsx ecx, byte [0x4d552a]
test ecx, ecx
jne 0x406349
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x3e]
shr ax, 0xf
and ax, 1
and eax, 0xffff
cmp eax, 1
jne 0x406349
push str.Please_note__PON_Bit_ignored_
call fcn.0042f28b
add esp, 4
movsx ecx, byte [0x4d552b]
test ecx, ecx
jne 0x406379
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x3e]
shr ax, 0xe
and ax, 1
and eax, 0xffff
test eax, eax
jne 0x406379
push str.Please_note__UPD_Bit_ignored_
call fcn.0042f28b
add esp, 4
jmp 0x406391
push str.Update_not_possible__
call fcn.0042f28b
add esp, 4
mov ax, word [ebp - 0x1c]
jmp 0x4064ee
movsx ecx, byte [ebp + 0xc]
cmp ecx, 1
jne 0x406489
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x46]
push eax
mov ecx, dword [0x576b10]
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00494c40
add esp, 0x10
movsx ecx, al
test ecx, ecx
jne 0x4063cb
xor ax, ax
jmp 0x4064ee
push 1
call fcn.004335d3
add esp, 4
movsx edx, al
test edx, edx
jne 0x4063e4
xor ax, ax
jmp 0x4064ee
xor eax, eax
mov al, byte [0x52d2a0]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
sub ecx, 0x42
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0x23
ja case.0x406408.4
mov eax, dword [ebp - 0x6c]
xor edx, edx
mov dl, byte [eax + 0x4066c6]
jmp dword [edx*4 + 0x4066b2]
push str.Buffer_full__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_busy__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Operation_Buffer_locked__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
push str.Bad_switch_position__
call fcn.0042f28b
add esp, 4
xor ax, ax
jmp 0x4064ee
mov word [0x585690], 0x4400
call fcn.0043393b
movsx ecx, al
test ecx, ecx
jne 0x40647d
xor ax, ax
jmp 0x4064ee
mov edx, dword [ebp + 0x14]
mov ax, word [0x56aef4]
mov word [edx], ax
push 0x4cf1c0
movsx ecx, word [0x5854c6]
imul ecx, ecx, 0x424
movsx edx, word [0x5854d0]
lea eax, [ecx + edx + 0x5359c0]
push eax
call fcn.004bcd00
add esp, 8
mov cx, word [0x5854d0]
add cx, 7
mov word [0x5854d0], cx
movsx edx, word [0x5854c6]
imul edx, edx, 0x424
movsx eax, word [0x5854d0]
mov byte [edx + eax + 0x5359c0], 0
push 0
call fcn.004593e9
add esp, 4
mov ax, word [ebp - 0x1c]
mov esp, ebp
pop ebp
ret