Function at 0x1008d570
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 0x1008d5aa
test esi, esi
je 0x1008d5aa
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.10090d90
lea edx, [esp + 0x30]
push edx
call sym.tcl85.dll_TclBN_mp_init
add esp, 0xc
test eax, eax
jne 0x1008d5dd
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.1008c800
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 0x1008d646
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.1008c800
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
cmp edi, ebx
jle 0x1008d6aa
lea edx, [esp + 0x48]
push edx
call sym.tcl85.dll_TclBN_mp_init
add esp, 4
test eax, eax
jne 0x1008d697
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 0x1008d743
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 0x1008d6e6
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 0x1008d927
test eax, eax
jne 0x1008d715
cmp dword [esp + 0x60], 1
je 0x1008d715
mov ecx, dword [esp + 0x5c]
test byte [ecx], 1
je 0x1008d927
mov edx, dword [esp + 0x5c]
mov edi, dword [edx]
mov esi, dword [esp + 0x30]
and edi, 1
cmp ebx, esi
jne 0x1008d79b
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 0x1008d7d8
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + esi*4]
lea edi, [esi + 1]
cmp eax, edi
mov dword [esp + 0x10], edx
jg 0x1008d75a
cmp edx, 0xa
jb 0x1008d76f
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 0x1008d78a
cmp dword [ecx + eax*4 - 4], 0
jne 0x1008d788
dec eax
mov dword [esp + 0x18], eax
test eax, eax
jg 0x1008d778
test eax, eax
jne 0x1008d6d0
xor ebx, ebx
mov dword [esp + 0x20], ebx
jmp 0x1008d6d4
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 0x1008d7c5
mov dword [esp + 0x44], esi
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
jmp 0x1008d7d1
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 0x1008d828
lea ecx, [edx + 1]
cmp eax, ecx
jg 0x1008d89f
mov ecx, dword [esp + 0x44]
cmp dword [ecx + edx*4], esi
ja 0x1008d89f
lea eax, [edx - 1]
test eax, eax
jl 0x1008d81e
mov edi, edi
cmp dword [ecx + eax*4], 0
jne 0x1008d89f
sub eax, esi
jns 0x1008d810
cmp dword [esp + 0x60], esi
je 0x1008d828
test edi, edi
jne 0x1008d89f
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 0x1008d8ec
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 0x1008d892
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 0x1008d6c0
mov eax, dword [esp + 0x10]
cmp eax, 9
jne 0x1008d8e0
mov byte [ebp], 0x39
cmp byte [ebp], 0x39
mov eax, ebp
jne 0x1008d8c4
cmp eax, dword [esp + 0x84]
je 0x1008d8ce
sub eax, esi
cmp byte [eax], 0x39
je 0x1008d8b4
inc byte [eax]
lea ebp, [eax + 1]
jmp 0x1008d98c
add dword [esp + 0x80], esi
mov byte [eax], 0x31
lea ebp, [eax + 1]
jmp 0x1008d98c
add al, 0x31
mov byte [ebp], al
add ebp, esi
jmp 0x1008d98c
and eax, esi
push eax
lea eax, [esp + 0x1c]
call fcn.1008d520
add esp, 4
test eax, eax
je 0x1008d98c
cmp byte [ebp - 1], 0x39
lea eax, [ebp - 1]
jne 0x1008d8c4
lea esp, [esp]
cmp eax, dword [esp + 0x84]
je 0x1008d8ce
sub eax, esi
cmp byte [eax], 0x39
je 0x1008d910
inc byte [eax]
lea ebp, [eax + 1]
jmp 0x1008d98c
mov ebx, dword [esp + 0x10]
mov ecx, ebx
and ecx, 1
push ecx
mov edx, esi
lea eax, [esp + 0x1c]
call fcn.1008d520
add esp, 4
test eax, eax
je 0x1008d985
inc ebx
cmp ebx, 0xa
jne 0x1008d985
mov byte [ebp], 0x39
cmp byte [ebp], 0x39
mov eax, ebp
jne 0x1008d8c4
lea esp, [esp]
cmp eax, dword [esp + 0x84]
je 0x1008d976
dec eax
cmp byte [eax], 0x39
je 0x1008d960
inc byte [eax]
lea ebp, [eax + 1]
jmp 0x1008d98c
inc dword [esp + 0x80]
mov byte [eax], 0x31
lea ebp, [eax + 1]
jmp 0x1008d98c
add bl, 0x30
mov byte [ebp], bl
inc ebp
mov edx, dword [esp + 0x78]
cmp dword [esp + 0x74], edx
jle 0x1008d9a3
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 0x1008d9dd
mov dword [eax], ebp
mov eax, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret