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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, eax
push edi
inc esi
push esi
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x1008f1b0
test esi, esi
je 0x1008f1b0
push esi
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
push 0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
push ecx
call sym.tcl85.dll_TclBN_mp_init_multi
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
add esp, 0xc
push edx
push eax
lea esi, [esp + 0x20]
call fcn.10091e40
mov edx, dword [esp + 0x70]
mov ecx, esi
push ecx
push edx
mov eax, esi
push eax
call sym.tcl85.dll_TclBN_mp_mul_2d
lea ecx, [esp + 0x3c]
add esp, 0x14
push ecx
call sym.tcl85.dll_TclBN_mp_init
add esp, 4
test eax, eax
jne 0x1008f20a
lea edx, [esp + 0x28]
push 1
push edx
call sym.tcl85.dll_TclBN_mp_set_int
add esp, 8
mov esi, dword [esp + 0x70]
lea edi, [esp + 0x28]
mov ecx, esi
mov eax, edi
call fcn.1008d8a0
mov ecx, dword [esp + 0x6c]
mov eax, edi
push eax
push ecx
mov edx, edi
push edx
call sym.tcl85.dll_TclBN_mp_mul_2d
add esp, 0xc
mov eax, edi
push eax
lea ecx, [esp + 0x1c]
push ecx
call sym.tcl85.dll_TclBN_mp_cmp_mag
add esp, 8
cmp eax, 0xffffffff
jne 0x1008f264
lea edx, [esp + 0x18]
push edx
mov eax, edx
push 0xa
push eax
call sym.tcl85.dll_TclBN_mp_mul_d
mov ecx, dword [esp + 0x88]
add esp, 0xc
dec dword [esp + 0x74]
mov dword [esp + 0x78], ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
call sym.tcl85.dll_TclBN_mp_div
add esp, 0x10
cmp dword [esp + 0x38], 1
jg 0x1008f28c
mov eax, dword [esp + 0x44]
cmp dword [eax], 0xa
jb 0x1008f299
push str.wrong_digit_
call sym.tcl85.dll_Tcl_Panic
add esp, 4
mov ecx, dword [esp + 0x44]
mov ebx, dword [ecx]
mov dl, bl
add dl, 0x30
mov byte [ebp], dl
lea edi, [ebp + 1]
mov ebp, 1
cmp dword [esp + 0x78], ebp
mov dword [esp + 0x14], ebp
jg 0x1008f334
lea eax, [esp + 0x18]
push eax
mov ecx, eax
push ebp
push ecx
call sym.tcl85.dll_TclBN_mp_mul_2d
add esp, 0xc
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
call sym.tcl85.dll_TclBN_mp_cmp_mag
add esp, 8
cmp eax, 0xffffffff
je 0x1008f487
test eax, eax
je 0x1008f2ff
cmp eax, ebp
je 0x1008f309
push str.in_ShouldBankerRoundUp__trichotomy_fails_
call sym.tcl85.dll_Tcl_Panic
add esp, 4
jmp 0x1008f487
and ebx, ebp
test ebx, ebx
je 0x1008f487
dec edi
cmp byte [edi], 0x39
jne 0x1008f31c
nop
cmp edi, dword [esp + 0x10]
je 0x1008f323
dec edi
cmp byte [edi], 0x39
je 0x1008f310
inc byte [edi]
jmp 0x1008f486
inc dword [esp + 0x74]
mov byte [edi], 0x31
jmp 0x1008f486
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x78]
sub ebx, ebp
cmp ebx, 8
jle 0x1008f344
mov ebx, 8
cmp esi, ebx
jl 0x1008f36a
mov edx, dword [ebx*4 + 0x100b4bb4]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
mov eax, ecx
push eax
call sym.tcl85.dll_TclBN_mp_div_d
add esp, 0x10
sub esi, ebx
mov dword [esp + 0x70], esi
jmp 0x1008f3c1
test esi, esi
jle 0x1008f3a9
mov edx, dword [esi*4 + 0x100b4bb4]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
mov eax, ecx
push eax
call sym.tcl85.dll_TclBN_mp_div_d
lea ecx, [esp + 0x28]
mov edx, ebx
sub edx, esi
mov eax, dword [edx*4 + 0x100b4bb4]
push ecx
push eax
push ecx
call sym.tcl85.dll_TclBN_mp_mul_d
add esp, 0x1c
mov dword [esp + 0x70], 0
jmp 0x1008f3c1
mov eax, dword [ebx*4 + 0x100b4bb4]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, edx
push ecx
call sym.tcl85.dll_TclBN_mp_mul_d
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov eax, edx
push ebx
push eax
call sym.tcl85.dll_TclBN_mp_mul_2d
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
call sym.tcl85.dll_TclBN_mp_div
add esp, 0x10
cmp dword [esp + 0x38], 1
jle 0x1008f3fe
push str.wrong_digit_
call sym.tcl85.dll_Tcl_Panic
add esp, 4
mov edx, dword [esp + 0x44]
mov esi, dword [edx]
lea ecx, [ebx - 1]
test ecx, ecx
jl 0x1008f42d
jmp 0x1008f410
mov ebp, dword [ecx*4 + 0x100b4c7c]
mov eax, esi
cdq
idiv ebp
inc edi
add al, 0x30
sub ecx, 1
mov byte [edi - 1], al
mov esi, edx
jns 0x1008f410
mov ebp, dword [esp + 0x14]
add ebp, ebx
mov dword [esp + 0x14], ebp
cmp ebp, dword [esp + 0x78]
jne 0x1008f330
lea eax, [esp + 0x18]
push eax
mov ecx, eax
push 1
push ecx
call sym.tcl85.dll_TclBN_mp_mul_2d
add esp, 0xc
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
call sym.tcl85.dll_TclBN_mp_cmp_mag
add esp, 8
cmp eax, 0xffffffff
je 0x1008f480
test eax, eax
je 0x1008f4d1
cmp eax, 1
je 0x1008f4d8
push str.in_ShouldBankerRoundUp__trichotomy_fails_
call sym.tcl85.dll_Tcl_Panic
add esp, 4
lea esp, [esp]
dec edi
cmp byte [edi], 0x30
je 0x1008f480
inc edi
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
call sym.tcl85.dll_TclBN_mp_clear_multi
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x94]
mov byte [edi], 0
mov dword [edx], eax
mov eax, dword [esp + 0x98]
add esp, 0x14
test eax, eax
je 0x1008f4c5
mov dword [eax], edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
and esi, 1
test esi, esi
je 0x1008f480
dec edi
cmp byte [edi], 0x39
jne 0x1008f31c
cmp edi, dword [esp + 0x10]
je 0x1008f323
dec edi
cmp byte [edi], 0x39
je 0x1008f4e2
inc byte [edi]
jmp 0x1008f486