Function at 0x487116
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x505a10]
cmp dword [eax + 0x224], 0
je 0x48712f
mov ecx, dword [esp + 4]
mov dword [eax + 0x228], ecx
ret
push ebp
push esi
push edi
push str._nMIRACL_error_from_routine
call 0x48734a
pop ecx
mov eax, dword [0x505a10]
mov ecx, dword [eax + 0x1c]
mov ebp, 0x500604
cmp ecx, 0x18
jge 0x48715c
mov eax, dword [eax + ecx*4 + 0x20]
push dword [eax*4 + 0x4ff34c]
jmp 0x48715d
push ebp
call 0x48734a
pop ecx
mov edi, 0x501a40
push edi
push 0xa
call fcn.00497537
mov eax, dword [0x505a10]
pop ecx
pop ecx
mov esi, dword [eax + 0x1c]
dec esi
js 0x4871c0
push ebx
lea ebx, [esi*4 + 0x20]
push str.______________called_from
call 0x48734a
cmp esi, 0x18
pop ecx
jge 0x4871a6
mov eax, dword [0x505a10]
mov eax, dword [ebx + eax]
push dword [eax*4 + 0x4ff34c]
jmp 0x4871a7
push ebp
call 0x48734a
pop ecx
push edi
push 0xa
call fcn.00497537
dec esi
pop ecx
sub ebx, 4
pop ecx
test esi, esi
jge 0x487185
pop ebx
mov eax, dword [esp + 0x10]
pop edi
dec eax
pop esi
cmp eax, 0x1c
pop ebp
ja case.default.0x4871d1
jmp dword [eax*4 + 0x4872d6]
push str.Number_base_too_big_for_representation_n
jmp 0x4872c9
push str.Division_by_zero_attempted_n
jmp 0x4872c9
push str.Overflow___Number_too_big_n
jmp 0x4872c9
push str.Internal_result_is_negative_n
jmp 0x4872c9
push str.Input_format_error_n
jmp 0x4872c9
push str.Illegal_number_base_n
jmp 0x4872c9
push str.Illegal_parameter_usage_n
jmp 0x4872c9
push str.Out_of_space_n
jmp 0x4872c9
push str.Even_root_of_a_negative_number_n
jmp 0x4872c9
push str.Raising_integer_to_negative_power_n
jmp 0x4872c9
push str.Attempt_to_take_illegal_root_n
jmp 0x4872c9
push str.Integer_operation_attempted_on_Flash_number_n
jmp 0x4872c9
push str.Flash_overflow_n
jmp 0x4872c9
push str.Numbers_too_big_n
jmp 0x4872c9
push str.Log_of_a_non_positive_number_n
jmp 0x4872c9
push str.Flash_to_double_conversion_failure_n
jmp 0x4872c9
push str.I_O_buffer_overflow_n
jmp 0x4872c9
push str.MIRACL_not_initialised___no_call_to_mirsys___n
jmp 0x4872c9
push str.Illegal_modulus__n
jmp 0x4872c9
push str.No_modulus_defined_n
jmp 0x4872c9
push str.Exponent_too_big_n
jmp 0x4872c9
push str.Unsupported_Feature___check_mirdef.h_n
jmp 0x4872c9
push str.Specified_double_length_type_isnt_double_length_n
jmp 0x4872c9
push str.Specified_basis_is_NOT_irreducible_n
jmp 0x4872c9
push str.Unable_to_control_Floating_point_rounding_n
jmp 0x4872c9
push str.Base_must_be_binary__MR_ALWAYS_BINARY_defined_in_mirdef.h____n
jmp 0x4872c9
push str.No_irreducible_basis_defined_n
jmp 0x4872c9
push str.Composite_modulus_n
jmp 0x4872c9
push str.Input_output_error_when_reading_from_RNG_device_node_n
jmp 0x4872c9
push str.Undefined_error_n
call 0x48734a
pop ecx
push 0
call fcn.00497945
fdiv dword [ecx + 0x48]
add dl, ah
jno 0x487325
add ah, ch
jno 0x487329
add dh, dh
jno 0x48732d
add byte [eax], al
jb 0x487331
add byte [edx], cl
jb 0x487335
add byte [edx + esi*2], dl
dec eax
add byte [esi], bl
jb 0x48733d
add byte [eax], ch
jb 0x487341
add byte [edx], dh
jb 0x487345
add byte [edx + esi*2], bh
dec eax
add byte [esi + 0x72], al
dec eax
add byte [ebp + 0x72], cl
dec eax
add byte [edx + esi*2 + 0x48], dl
add byte [ebx + 0x72], bl
dec eax
add byte [edx + 0x72], ah
dec eax
add byte [ecx + 0x72], ch
dec eax
add byte [eax + 0x72], dh
dec eax
add byte [edi + 0x72], dh
dec eax
add byte [esi + 0x72], bh
dec eax
add byte [ebp - 0x73ffb78e], al
jb 0x487375
add byte [edx + esi*2 + 0x72930048], cl
dec eax
add byte [ebx - 0x65ffb78e], dl
jb 0x48737d
add byte [edx - 0x5effb78e], bl
jb 0x487381
add byte [ecx - 0x57ffb78e], ah
jb 0x487385
add byte [eax - 0x50ffb78e], ch
jb 0x487389
add byte [edi - 0x49ffb78e], ch
jb 0x48738d
add byte [esi - 0x42ffb78e], dh
jb 0x487391
add byte [ebp + 0x56004872], bh
mov esi, dword [esp + 8]
add byte [esi - 0x75], dl
je 0x487372
or byte [edx + 0x74c08406], cl
adc ecx, dword [edi]
mov esi, 0x1a4068c0
push eax
add byte [eax + 0x46], dl
mov al, byte [esi]
test al, al
je 0x487368
movsx eax, al
push 0x501a40
push eax
inc esi
call fcn.00497537
pop ecx
pop ecx
jmp 0x48734f
pop esi
ret
invalid
sbb al, 0xbe
inc eax
sbb dl, byte [eax]
mov dl, 1
add dword [eax], eax
add byte [edi + 0x59], al
js 0x4873ab
jmp 0x4873e9
dec edi
add al, ch
cwde
invalid
mov eax, ecx
push 1
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
pop eax
shl eax, cl
cmp eax, esi
je 0x48743e
jb 0x487409
mov eax, ecx
push 2
cdq
pop ebx
idiv ebx
test edx, edx
jne 0x487409
cmp ecx, 1
jg 0x4873e4
mov eax, dword [0x505a10]
mov dword [eax + 4], esi
mov eax, dword [0x505a10]
mov dword [eax + 8], 1
mov eax, dword [0x505a10]
mov dword [eax], esi
mov ecx, dword [0x505a10]
cmp dword [ecx], 0
je 0x48747d
mov eax, SysReAllocString
xor edx, edx
div esi
cmp eax, esi
jb 0x48747d
jmp 0x487465
mov eax, dword [0x505a10]
push 0x20
mov dword [eax + 4], esi
pop eax
cdq
idiv ecx
mov ecx, dword [0x505a10]
mov dword [ecx + 8], eax
mov eax, dword [0x505a10]
and dword [eax], 0
jmp 0x48747d
mov ecx, dword [0x505a10]
xor edx, edx
div esi
mov edx, esi
imul edx, dword [ecx]
mov dword [ecx], edx
mov ecx, dword [0x505a10]
inc dword [ecx + 8]
cmp eax, esi
jae 0x48745f
pop esi
xor eax, eax
pop ebx
ret