Function at 0x401480
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x69c
mov dl, byte [0x4456c0]
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x493]
mov byte [ebp - 0x494], dl
push 0x40
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x1ff]
mov byte [ebp - 0x200], dl
push 0x40
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x597]
mov byte [ebp - 0x598], dl
push 0x31
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0xfb]
mov byte [ebp - 0xfc], dl
push 0x31
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x38f]
mov byte [ebp - 0x390], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x31
xor eax, eax
pop ecx
lea edi, [ebp - 0x2c7]
mov byte [ebp - 0x2c8], dl
xor ebx, ebx
rep stosd dword es:[edi], eax
and byte [ebp - 5], bl
mov dword [ebp - 0x34], ebx
stosw word es:[edi], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ebx
stosb byte es:[edi], al
call fcn.00411739
push ebx
push 2
call fcn.0040e159
mov esi, 0x425910
push ebx
push esi
call fcn.00402d10
add esp, 0x10
call fcn.004107fe
test eax, eax
jge 0x401551
push str.Unauthorized_copy_of_software__n
push esi
call fcn.0040e21f
pop ecx
pop ecx
push 1
call fcn.004022f1
push str.8.0.6.0
push str.Sentinel_RMS_Development_Kit
push str._n___s__s_Upgrade_Code_Generator_Tool_n
call fcn.004021f6
push str.__Copyright__C__2006_SafeNet__Inc._n_n
call fcn.004021f6
push str.Select_one_of_the_options_below_to_find_the_base_license_you_want__nto_upgrade._After_you_have_selected_a_base_license__an_upgrade_code__nwill_be_generated_that_you_can_send_to_your_software_vendor_so_an__nupgrade_license_can_be_created_for_you._n
call fcn.004021f6
push ebx
push str.:s:e:o:h
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f366
mov esi, eax
add esp, 0x24
cmp esi, ebx
jne 0x40159f
call fcn.00401000
push 1
call fcn.004022f1
push dword [esi + 4]
call fcn.0040e4a5
mov edi, 0x101
lea eax, [ebp - 0x69c]
push edi
push eax
call fcn.0040e591
push dword [esi + 0x34]
call fcn.0040e660
push dword [esi + 0xc]
lea eax, [ebp - 0x200]
push eax
call fcn.00402c20
push esi
call fcn.004023e4
lea eax, [ebp - 0x598]
push edi
push eax
call fcn.0040e2d3
lea eax, [ebp - 0x598]
push str.newcodes
push eax
call fcn.00402c30
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x598]
push eax
call fcn.00409310
add esp, 0x34
test eax, eax
jne 0x40162f
lea eax, [ebp - 0x200]
push edi
push eax
call fcn.0040e2d3
lea eax, [ebp - 0x200]
push str.ulccodes
push eax
call fcn.00402c30
add esp, 0x10
mov esi, 0x42573c
lea eax, [ebp - 0x69c]
push esi
push eax
call fcn.00402bfe
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
jne 0x4016ce
push str.Specify_license_file:
call fcn.004021f6
mov dword [esp], 0x4258f0
lea eax, [ebp - 0x494]
push edi
push eax
call fcn.00402b6b
add esp, 0xc
test eax, eax
jne 0x401685
push str._n_Acknowledged._Quitting..._n
call fcn.004021f6
pop ecx
push 1
call fcn.004022f1
lea eax, [ebp - 0x494]
push eax
call fcn.0040b790
lea eax, [ebp - 0x494]
push eax
call fcn.0040b52d
lea eax, [ebp - 0x494]
push esi
push eax
call fcn.00402bfe
add esp, 0x10
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x4016ce
lea eax, [ebp - 0x494]
push eax
push str.Error_opening_file___s_._Exiting...._n
call fcn.004021f6
pop ecx
pop ecx
push 1
call fcn.004022f1
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x494]
push eax
call fcn.00402c20
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b949
mov edx, 0x3e8
xor eax, eax
mov ecx, edx
mov edi, 0x44cba0
rep stosd dword es:[edi], eax
mov ecx, edx
mov edi, 0x44db40
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.0040de60
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4017ba
mov esi, 0xbf4
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x2c]
call fcn.0040de08
add esp, 0x14
test eax, eax
jne 0x4017a1
push dword [ebp + 0xc]
call fcn.00402af0
inc eax
push eax
call fcn.00402a58
push dword [ebp + 0xc]
mov dword [ebx + 0x44db40], eax
push eax
call fcn.00402c20
push esi
call fcn.00402a58
lea edi, [ebx + 0x44cba0]
push esi
push 0
push eax
mov dword [edi], eax
call fcn.00402a00
push esi
push dword [ebp - 0x20]
push dword [edi]
call fcn.004026c0
push dword [ebp + 0xc]
inc dword [ebp - 4]
add ebx, 4
call fcn.004023e4
push dword [ebp - 0x20]
call fcn.004023e4
and dword [ebp - 0x20], 0
add esp, 0x34
cmp ebx, 0xfa0
je 0x4017ba
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.0040de60
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
pop ecx
jne 0x401722
push dword [ebp + 8]
call fcn.00402639
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b9a6
pop ecx
pop ecx
push 1
mov ebx, 0x4258f0
pop esi
call fcn.0040103c
mov edi, 0xc8
push ebx
lea eax, [ebp - 0xfc]
push edi
push eax
call fcn.00402b6b
add esp, 0xc
test eax, eax
jne 0x401808
push str._n_Acknowledged._Quitting..._n
call fcn.004021f6
push dword [ebp - 4]
call fcn.00401449
pop ecx
pop ecx
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b790
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b52d
lea eax, [ebp - 0xfc]
push eax
call fcn.004024b7
add esp, 0xc
dec eax
je 0x401f43
dec eax
je 0x401a88
dec eax
je 0x401854
dec eax
jne 0x4021e7
push dword [ebp - 4]
call fcn.00401449
jmp 0x401a75
push dword [ebp - 4]
push str.License_number__1.._d__:
call fcn.004021f6
pop ecx
pop ecx
lea eax, [ebp - 0xfc]
push ebx
push edi
push eax
call fcn.00402b6b
add esp, 0xc
test eax, eax
jne 0x40188c
push str._n_Acknowledged._Quitting..._n
call fcn.004021f6
push dword [ebp - 4]
call fcn.00401449
pop ecx
pop ecx
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b790
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b52d
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b41b
add esp, 0xc
test eax, eax
je 0x4018c3
push str._n_Invalid_input___please_reenter_:
call fcn.004021f6
jmp 0x401862
lea eax, [ebp - 0xfc]
push eax
call fcn.004024b7
dec eax
pop ecx
cmp eax, dword [ebp - 4]
jl 0x4018e5
push str.Error:_License_is_not_found_n
call fcn.004021f6
jmp 0x401a75
cmp dword [eax*4 + 0x44db40], 0
lea esi, [eax*4 + 0x44db40]
je 0x4021e7
push eax
call fcn.004010d8
cmp eax, 0xffffffff
pop ecx
je 0x4021e7
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0
push dword [esi]
call fcn.0040b0a1
add esp, 0xc
test eax, eax
jne 0x401930
push dword [ebp - 0xc]
call fcn.00402a58
pop ecx
mov dword [ebp + 0xc], eax
jmp 0x401946
push eax
push str.Error__d:_Unable_to_generate_upgrade_code_n
call fcn.004021f6
push dword [ebp - 4]
call fcn.00401449
add esp, 0xc
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [esi]
call fcn.0040b0a1
add esp, 0xc
test eax, eax
jne 0x401a7b
push str.Upgrade_code_:
call fcn.004021f6
mov edi, 0x4252dc
push ebx
push edi
call fcn.004021f6
push str.Would_you_like_to_save_this_upgrade_code_to_a_file__y_n__
call fcn.004021f6
add esp, 0x10
push 0x4258f0
lea eax, [ebp - 0xfc]
push 0xc8
push eax
call fcn.00402b6b
add esp, 0xc
test eax, eax
jne 0x4019b4
push str._n_Acknowledged._Quitting..._n
call fcn.004021f6
push dword [ebp - 4]
call fcn.00401449
pop ecx
pop ecx
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b790
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b52d
movsx eax, byte [ebp - 0xfc]
push eax
call fcn.004024fe
add esp, 0xc
cmp eax, 0x59
je 0x401a01
movsx eax, byte [ebp - 0xfc]
push eax
call fcn.004024fe
cmp eax, 0x4e
pop ecx
je 0x401a01
push str.Invalid_answer___type_Y_or_N_:
call fcn.004021f6
pop ecx
jmp 0x401983
movsx eax, byte [ebp - 0xfc]
push eax
call fcn.004024fe
cmp eax, 0x59
pop ecx
jne 0x401a66
lea eax, [ebp - 0x200]
push 0x4255e0
push eax
call fcn.00402bfe
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x401a42
lea eax, [ebp - 0x200]
push eax
push str.Warning:_Unable_to_write_to_file___s_._n
call fcn.004021f6
pop ecx
pop ecx
jmp 0x401a53
push ebx
push edi
push esi
call fcn.004024c2
push esi
call fcn.00402639
add esp, 0x10
lea eax, [ebp - 0x200]
push eax
push str.Upgrade_code_saved_to_file___s__n
call fcn.004021f6
pop ecx
pop ecx
push ebx
call fcn.004023e4
push dword [ebp - 4]
call fcn.00401449
pop ecx
pop ecx
jmp 0x4021e7
push eax
push str.Error__d:_Unable_to_generate_upgrade_code_n
call fcn.004021f6
jmp 0x401a74
xor edi, edi
push str.Feature_name_:
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], esi
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x30], esi
call fcn.004021f6
push ebx
lea eax, [ebp - 0x390]
push 0xc8
push eax
call fcn.00402b6b
add esp, 0x10
test eax, eax
jne 0x401ad6
push str._n_Acknowledged._Quitting..._n
call fcn.004021f6
push dword [ebp - 4]
call fcn.00401449
pop ecx
pop ecx
lea eax, [ebp - 0x390]
push eax
call fcn.0040b790
lea eax, [ebp - 0x390]
push eax
call fcn.0040b52d
push str.Feature_version_:
call fcn.004021f6
push ebx
lea eax, [ebp - 0x2c8]
push 0xc8
push eax
call fcn.00402b6b
add esp, 0x18
test eax, eax
jne 0x401b25
push str._n_Acknowledged._Quitting..._n
call fcn.004021f6
push dword [ebp - 4]
call fcn.00401449
pop ecx
pop ecx
lea eax, [ebp - 0x2c8]
push eax
call fcn.0040b790
lea eax, [ebp - 0x2c8]
push eax
call fcn.0040b52d
push str.Capacity_:
call fcn.004021f6
add esp, 0xc
push ebx
lea eax, [ebp - 0xfc]
push 0xc8
push eax
call fcn.00402b6b
add esp, 0xc
test eax, eax
jne 0x401b77
push str._n_Acknowledged._Quitting..._n
call fcn.004021f6
push dword [ebp - 4]
call fcn.00401449
pop ecx
pop ecx
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b790
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b52d
cmp byte [ebp - 0xfc], 0
pop ecx
pop ecx
je 0x401cfc
lea eax, [ebp - 0xfc]
push str.NOLIMIT
push eax
call fcn.00402240
pop ecx
test eax, eax
pop ecx
je 0x401bda
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b41b
test eax, eax
pop ecx
je 0x401cdd
push str._n_Invalid_input___please_reenter_:
call fcn.004021f6
pop ecx
jmp 0x401b4a
or dword [ebp - 0x24], 0xffffffff
and dword [ebp - 0x28], 0
push dword [ebp - 4]
lea eax, [ebp - 0x2c8]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x390]
push eax
call fcn.004012fb
add esp, 0x18
mov edi, eax
cmp edi, 0xffffffff
je 0x401c10
cmp dword [ebp - 4], edi
jne 0x401c19
cmp dword [ebp - 0x30], esi
je 0x401f39
and dword [ebp - 0x30], 0
cmp dword [ebp - 4], edi
jne 0x401c39
cmp dword [ebp - 0x18], esi
jne 0x401c39
push str.Reached_the_end_of_license_file._Press_P_to_view_the_previous_license._n
call fcn.004021f6
and dword [ebp - 0x1c], 0
pop ecx
mov dword [ebp + 8], esi
cmp edi, 0xffffffff
jne 0x401c55
cmp dword [ebp - 0x18], edi
jne 0x401c65
push str.Reached_the_beginning_of_license_file._Press_N_to_view_the_next_license._n
call fcn.004021f6
and dword [ebp - 0x1c], 0
pop ecx
mov dword [ebp - 0x10], esi
test edi, edi
jl 0x401c65
cmp edi, dword [ebp - 4]
jge 0x401c65
push edi
call fcn.004010d8
pop ecx
call fcn.00401084
push ebx
lea eax, [ebp - 0xfc]
push 0xc8
push eax
call fcn.00402b6b
add esp, 0xc
test eax, eax
jne 0x401c97
push str._n_Acknowledged._Quitting..._n
call fcn.004021f6
push dword [ebp - 4]
call fcn.00401449
pop ecx
pop ecx
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b790
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b52d
movsx eax, byte [ebp - 0xfc]
push eax
call fcn.004024fe
mov byte [ebp - 5], al
add esp, 0xc
movsx eax, al
cmp eax, 0x67
jg 0x401ebb
je 0x401d35
sub eax, 0x47
je 0x401d35
sub eax, 7
jmp 0x401ebe
cmp byte [ebp - 0xfc], 0
je 0x401cfc
lea eax, [ebp - 0xfc]
push eax
call fcn.0040242c
and dword [ebp - 0x28], 0
pop ecx
mov dword [ebp - 0x24], eax
jmp 0x401cff
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], esi
jne 0x401c1d
cmp dword [ebp - 0x28], esi
jne 0x401be2
push dword [ebp - 4]
lea eax, [ebp - 0x2c8]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x390]
push eax
call fcn.004013b1
add esp, 0x14
jmp 0x401c04
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
lea esi, [edi*4 + 0x44db40]
push eax
push 0
push dword [esi]
call fcn.0040b0a1
add esp, 0xc
test eax, eax
jne 0x401d62
push dword [ebp - 0xc]
call fcn.00402a58
pop ecx
mov dword [ebp + 0xc], eax
jmp 0x401d78
push eax
push str.Error__d:_Unable_to_generate_upgrade_code_n
call fcn.004021f6
push dword [ebp - 4]
call fcn.00401449
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [esi]
call fcn.0040b0a1
add esp, 0xc
test eax, eax
jne 0x401eae
push str.Upgrade_code_:
call fcn.004021f6
push dword [ebp + 0xc]
push 0x4252dc
call fcn.004021f6
push str.Would_you_like_to_save_this_upgrade_code_to_a_file__y_n__
call fcn.004021f6
add esp, 0x10
push ebx
lea eax, [ebp - 0xfc]
push 0xc8
push eax
call fcn.00402b6b
add esp, 0xc
test eax, eax
jne 0x401de2
push str._n_Acknowledged._Quitting..._n
call fcn.004021f6
push dword [ebp - 4]
call fcn.00401449
pop ecx
pop ecx
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b790
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b52d
movsx eax, byte [ebp - 0xfc]
push eax
call fcn.004024fe
add esp, 0xc
cmp eax, 0x59
je 0x401e2f
movsx eax, byte [ebp - 0xfc]
push eax
call fcn.004024fe
cmp eax, 0x4e
pop ecx
je 0x401e2f
push str.Invalid_answer___type_Y_or_N_:
call fcn.004021f6
pop ecx
jmp 0x401db5
movsx eax, byte [ebp - 0xfc]
push eax
call fcn.004024fe
cmp eax, 0x59
pop ecx
jne 0x401e9a
lea eax, [ebp - 0x200]
push 0x4255e0
push eax
call fcn.00402bfe
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x401e70
lea eax, [ebp - 0x200]
push eax
push str.Warning:_Unable_to_write_to_file___s_._n
call fcn.004021f6
pop ecx
pop ecx
jmp 0x401e87
push dword [ebp + 0xc]
push 0x4252dc
push esi
call fcn.004024c2
push esi
call fcn.00402639
add esp, 0x10
lea eax, [ebp - 0x200]
push eax
push str.Upgrade_code_saved_to_file___s__n
call fcn.004021f6
pop ecx
pop ecx
push dword [ebp + 0xc]
call fcn.004023e4
push dword [ebp - 4]
call fcn.00401449
pop ecx
pop ecx
jmp 0x401f22
push eax
push str.Error__d:_Unable_to_generate_upgrade_code_n
call fcn.004021f6
jmp 0x401eaa
sub eax, 0x6e
je 0x401eff
dec eax
dec eax
je 0x401ed1
dec eax
jne 0x401f22
push dword [ebp - 4]
call fcn.00401449
jmp 0x401eab
cmp dword [ebp + 8], esi
jne 0x401ee4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], esi
dec eax
and dword [ebp + 8], 0
mov dword [ebp - 0x14], eax
test edi, edi
jle 0x401ef0
lea eax, [edi - 1]
mov dword [ebp - 0x14], eax
jmp 0x401ef9
jne 0x401ef9
or edi, 0xffffffff
and dword [ebp - 0x1c], 0
or dword [ebp - 0x18], 0xffffffff
jmp 0x401f22
cmp dword [ebp - 0x10], esi
jne 0x401f0f
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 8], esi
je 0x401f1f
cmp edi, dword [ebp - 4]
jge 0x401f1f
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
cmp byte [ebp - 5], 0x52
je 0x4021e7
push 1
mov ebx, 0x4258f0
pop esi
jmp 0x401cff
push str.License_with_specified_details_not_found._n
jmp 0x4018db
xor eax, eax
mov esi, 0x44db40
xor ebx, ebx
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
mov edi, esi
jmp 0x401f58
xor eax, eax
cmp dword [edi], eax
je 0x401f6f
cmp dword [ebp - 0x10], eax
jne 0x401f6f
cmp dword [ebp + 8], eax
jne 0x401f6f
push ebx
call fcn.004010d8
pop ecx
jmp 0x401f99
cmp dword [ebp + 8], 1
jne 0x401f84
push str.Reached_the_end_of_license_file._Press_P_to_view_the_previous_license._n
call fcn.004021f6
and dword [ebp + 8], 0
pop ecx
cmp dword [ebp - 0x10], 1
jne 0x401f99
push str.Reached_the_beginning_of_license_file._Press_N_to_view_the_next_license._n
call fcn.004021f6
and dword [ebp - 0x10], 0
pop ecx
call fcn.00401084
push 0x4258f0
lea eax, [ebp - 0xfc]
push 0xc8
push eax
call fcn.00402b6b
add esp, 0xc
test eax, eax
jne 0x401fcf
push str._n_Acknowledged._Quitting..._n
call fcn.004021f6
push dword [ebp - 4]
call fcn.00401449
pop ecx
pop ecx
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b790
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b52d
movsx eax, byte [ebp - 0xfc]
push eax
call fcn.004024fe
mov byte [ebp - 5], al
add esp, 0xc
movsx eax, al
cmp eax, 0x67
jg 0x40219d
je 0x402015
sub eax, 0x47
je 0x402015
sub eax, 7
jmp 0x4021a0
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0
push dword [edi]
call fcn.0040b0a1
add esp, 0xc
test eax, eax
jne 0x40203b
push dword [ebp - 0xc]
call fcn.00402a58
pop ecx
mov dword [ebp + 0xc], eax
jmp 0x402051
push eax
push str.Error__d:_Unable_to_generate_upgrade_code_n
call fcn.004021f6
push dword [ebp - 4]
call fcn.00401449
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [edi]
call fcn.0040b0a1
add esp, 0xc
test eax, eax
jne 0x402190
push str.Upgrade_code_:
call fcn.004021f6
push dword [ebp + 0xc]
push 0x4252dc
call fcn.004021f6
push str.Would_you_like_to_save_this_upgrade_code_to_a_file__y_n__
call fcn.004021f6
add esp, 0x10
push 0x4258f0
lea eax, [ebp - 0xfc]
push 0xc8
push eax
call fcn.00402b6b
add esp, 0xc
test eax, eax
jne 0x4020bf
push str._n_Acknowledged._Quitting..._n
call fcn.004021f6
push dword [ebp - 4]
call fcn.00401449
pop ecx
pop ecx
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b790
lea eax, [ebp - 0xfc]
push eax
call fcn.0040b52d
movsx eax, byte [ebp - 0xfc]
push eax
call fcn.004024fe
add esp, 0xc
cmp eax, 0x59
je 0x40210c
movsx eax, byte [ebp - 0xfc]
push eax
call fcn.004024fe
cmp eax, 0x4e
pop ecx
je 0x40210c
push str.Invalid_answer___type_Y_or_N_:
call fcn.004021f6
pop ecx
jmp 0x40208e
movsx eax, byte [ebp - 0xfc]
push eax
call fcn.004024fe
cmp eax, 0x59
pop ecx
jne 0x40217c
lea eax, [ebp - 0x200]
push 0x4255e0
push eax
call fcn.00402bfe
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x40214d
lea eax, [ebp - 0x200]
push eax
push str.Warning:_Unable_to_write_to_file___s_._n
call fcn.004021f6
pop ecx
pop ecx
jmp 0x402164
push dword [ebp + 0xc]
push 0x4252dc
push esi
call fcn.004024c2
push esi
call fcn.00402639
add esp, 0x10
lea eax, [ebp - 0x200]
push eax
push str.Upgrade_code_saved_to_file___s__n
call fcn.004021f6
pop ecx
mov esi, 0x44db40
pop ecx
push dword [ebp + 0xc]
call fcn.004023e4
push dword [ebp - 4]
call fcn.00401449
pop ecx
pop ecx
jmp 0x4021dd
push eax
push str.Error__d:_Unable_to_generate_upgrade_code_n
call fcn.004021f6
jmp 0x40218c
sub eax, 0x6e
je 0x4021c8
dec eax
dec eax
je 0x4021b3
dec eax
jne 0x4021dd
push dword [ebp - 4]
call fcn.00401449
jmp 0x40218d
cmp edi, esi
jl 0x4021bf
sub edi, 4
dec ebx
cmp edi, esi
jge 0x4021dd
mov dword [ebp - 0x10], 1
jmp 0x4021dd
cmp dword [ebp - 4], ebx
jle 0x4021d4
inc ebx
add edi, 4
cmp dword [ebp - 4], ebx
jne 0x4021dd
mov dword [ebp + 8], 1
cmp byte [ebp - 5], 0x52
jne 0x401f56
cmp byte [ebp - 5], 4
jne 0x4017cd
pop edi
pop esi
pop ebx
leave
ret