Function at 0x1008e610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [esp + 0x80]
push edi
inc esi
push esi
mov ebx, eax
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebp, eax
add esp, 4
mov dword [esp + 0x84], ebp
test ebp, ebp
jne 0x1008e64a
test esi, esi
je 0x1008e64a
push esi
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
lea esi, [esp + 0x20]
call fcn.10091e40
lea edx, [esp + 0x30]
push edx
call sym.tcl85.dll_TclBN_mp_init
add esp, 0xc
test eax, eax
jne 0x1008e67d
lea eax, [esp + 0x28]
push 1
push eax
call sym.tcl85.dll_TclBN_mp_set_int
add esp, 8
mov ecx, dword [esp + 0x70]
lea edi, [esp + 0x18]
mov eax, edi
call fcn.1008d8a0
mov edx, dword [esp + 0x6c]
mov ecx, edi
push ecx
push edx
mov eax, edi
push eax
call sym.tcl85.dll_TclBN_mp_mul_2d
mov esi, dword [esp + 0x88]
add esp, 0xc
cmp dword [esp + 0x18], esi
jg 0x1008e6e6
mov ecx, edi
push ecx
mov edx, edi
push 0xa
push edx
call sym.tcl85.dll_TclBN_mp_mul_d
mov ecx, dword [esp + 0x98]
mov eax, 1
add dword [esp + 0x80], eax
add dword [esp + 0x84], eax
add esp, 0xc
add ebx, eax
sub dword [esp + 0x80], eax
mov dword [esp + 0x88], ecx
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, edx
push ecx
call sym.tcl85.dll_TclBN_mp_mul_2d
lea edi, [esp + 0x34]
add esp, 0xc
mov ecx, ebx
mov eax, edi
call fcn.1008d8a0
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
cmp edi, ebx
jle 0x1008e74a
lea edx, [esp + 0x48]
push edx
call sym.tcl85.dll_TclBN_mp_init
add esp, 4
test eax, eax
jne 0x1008e737
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
push ecx
call sym.tcl85.dll_TclBN_mp_copy
add esp, 8
lea edx, [esp + 0x48]
push edx
sub edi, ebx
mov eax, edx
push edi
push eax
call sym.tcl85.dll_TclBN_mp_mul_2d
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
call sym.tcl85.dll_TclBN_mp_init
add esp, 4
mov dword [esp + 0x14], 0
nop
mov eax, dword [esp + 0x18]
cmp eax, esi
jg 0x1008e7e3
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x78]
cmp dword [esp + 0x74], edx
lea eax, [esp + 0x48]
jg 0x1008e786
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
call sym.tcl85.dll_TclBN_mp_cmp_mag
add esp, 8
cmp eax, 0xffffffff
je 0x1008e9c7
test eax, eax
jne 0x1008e7b5
cmp dword [esp + 0x60], 1
je 0x1008e7b5
mov ecx, dword [esp + 0x5c]
test byte [ecx], 1
je 0x1008e9c7
mov edx, dword [esp + 0x5c]
mov edi, dword [edx]
mov esi, dword [esp + 0x30]
and edi, 1
cmp ebx, esi
jne 0x1008e83b
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x4c], ebx
call sym.tcl85.dll_TclBN_s_mp_add
jmp 0x1008e878
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + esi*4]
lea edi, [esi + 1]
cmp eax, edi
mov dword [esp + 0x10], edx
jg 0x1008e7fa
cmp edx, 0xa
jb 0x1008e80f
push str.wrong_digit_
call sym.tcl85.dll_Tcl_Panic
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add esp, 4
dec eax
mov dword [esp + 0x18], eax
test eax, eax
jle 0x1008e82a
cmp dword [ecx + eax*4 - 4], 0
jne 0x1008e828
dec eax
mov dword [esp + 0x18], eax
test eax, eax
jg 0x1008e818
test eax, eax
jne 0x1008e770
xor ebx, ebx
mov dword [esp + 0x20], ebx
jmp 0x1008e774
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
call sym.tcl85.dll_TclBN_mp_cmp_mag
add esp, 8
lea edx, [esp + 0x38]
push edx
cmp eax, 0xffffffff
jne 0x1008e865
mov dword [esp + 0x44], esi
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
jmp 0x1008e871
mov dword [esp + 0x44], ebx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x1c]
push eax
push ecx
call sym.tcl85.dll_TclBN_s_mp_sub
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x88]
add esp, 0xc
cmp eax, edx
mov esi, 1
jle 0x1008e8c8
lea ecx, [edx + 1]
cmp eax, ecx
jg 0x1008e93f
mov ecx, dword [esp + 0x44]
cmp dword [ecx + edx*4], esi
ja 0x1008e93f
lea eax, [edx - 1]
test eax, eax
jl 0x1008e8be
mov edi, edi
cmp dword [ecx + eax*4], 0
jne 0x1008e93f
sub eax, esi
jns 0x1008e8b0
cmp dword [esp + 0x60], esi
je 0x1008e8c8
test edi, edi
jne 0x1008e93f
mov eax, dword [esp + 0x10]
mov cl, al
add cl, 0x30
mov byte [ebp], cl
mov ecx, dword [esp + 0x14]
add ebp, esi
cmp ecx, dword [esp + 0x88]
je 0x1008e98c
lea edx, [esp + 0x18]
push edx
mov eax, edx
push 0xa
push eax
call sym.tcl85.dll_TclBN_mp_mul_d
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov edx, ecx
push 0xa
push edx
call sym.tcl85.dll_TclBN_mp_mul_d
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
add esp, 0xc
cmp eax, ecx
jle 0x1008e932
lea edx, [esp + 0x48]
push edx
sub eax, ecx
push eax
lea eax, [esp + 0x30]
push eax
call sym.tcl85.dll_TclBN_mp_mul_2d
add esp, 0xc
add dword [esp + 0x14], esi
mov esi, dword [esp + 0x7c]
jmp 0x1008e760
mov eax, dword [esp + 0x10]
cmp eax, 9
jne 0x1008e980
mov byte [ebp], 0x39
cmp byte [ebp], 0x39
mov eax, ebp
jne 0x1008e964
cmp eax, dword [esp + 0x84]
je 0x1008e96e
sub eax, esi
cmp byte [eax], 0x39
je 0x1008e954
inc byte [eax]
lea ebp, [eax + 1]
jmp 0x1008ea2c
add dword [esp + 0x80], esi
mov byte [eax], 0x31
lea ebp, [eax + 1]
jmp 0x1008ea2c
add al, 0x31
mov byte [ebp], al
add ebp, esi
jmp 0x1008ea2c
and eax, esi
push eax
lea eax, [esp + 0x1c]
call fcn.1008e5c0
add esp, 4
test eax, eax
je 0x1008ea2c
cmp byte [ebp - 1], 0x39
lea eax, [ebp - 1]
jne 0x1008e964
lea esp, [esp]
cmp eax, dword [esp + 0x84]
je 0x1008e96e
sub eax, esi
cmp byte [eax], 0x39
je 0x1008e9b0
inc byte [eax]
lea ebp, [eax + 1]
jmp 0x1008ea2c
mov ebx, dword [esp + 0x10]
mov ecx, ebx
and ecx, 1
push ecx
mov edx, esi
lea eax, [esp + 0x1c]
call fcn.1008e5c0
add esp, 4
test eax, eax
je 0x1008ea25
inc ebx
cmp ebx, 0xa
jne 0x1008ea25
mov byte [ebp], 0x39
cmp byte [ebp], 0x39
mov eax, ebp
jne 0x1008e964
lea esp, [esp]
cmp eax, dword [esp + 0x84]
je 0x1008ea16
dec eax
cmp byte [eax], 0x39
je 0x1008ea00
inc byte [eax]
lea ebp, [eax + 1]
jmp 0x1008ea2c
inc dword [esp + 0x80]
mov byte [eax], 0x31
lea ebp, [eax + 1]
jmp 0x1008ea2c
add bl, 0x30
mov byte [ebp], bl
inc ebp
mov edx, dword [esp + 0x78]
cmp dword [esp + 0x74], edx
jle 0x1008ea43
lea eax, [esp + 0x48]
push eax
call sym.tcl85.dll_TclBN_mp_clear
add esp, 4
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x24]
push eax
call sym.tcl85.dll_TclBN_mp_clear_multi
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x90]
add esp, 0x10
mov byte [ebp], 0
mov dword [ecx], edx
test eax, eax
je 0x1008ea7d
mov dword [eax], ebp
mov eax, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret