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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [edx]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
test eax, eax
je 0x10007e12
mov esi, edx
mov edx, dword [edi]
cmp eax, edx
jl 0x10007905
jg 0x10007960
mov ecx, dword [edi + 0xc]
lea eax, [edx*4 - 4]
add ecx, eax
add eax, dword [esi + 0xc]
test edx, edx
jle 0x10007905
xor esi, esi
jmp 0x100078ff
jb 0x10007960
add esi, 1
sub ecx, 4
sub eax, 4
cmp edx, esi
je 0x10007905
mov ebx, dword [eax]
cmp dword [ecx], ebx
jbe 0x100078f0
add edx, 2
lea eax, [esp + 0x48]
call sym._mp_init_size
mov ebx, eax
test eax, eax
je 0x10007928
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi]
add eax, 2
mov dword [esp + 0x48], eax
lea eax, [esp + 0x78]
call sym._mp_init
mov ebx, eax
test eax, eax
je 0x100079c0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x10007917
lea eax, [esp + 0x48]
call sym._mp_clear.part.0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
xor ebx, ebx
test eax, eax
je 0x1000797a
mov eax, dword [ebp + 8]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._mp_copy
mov ebx, eax
mov edi, dword [esp + 0x44]
test edi, edi
je 0x10007917
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [esp + 0x44], eax
shl eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sym._memset
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x88]
call sym._mp_init
mov ebx, eax
test eax, eax
jne 0x100079ff
lea eax, [esp + 0x58]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._mp_init_copy
mov ebx, eax
test eax, eax
je 0x10007a1c
mov ecx, dword [esp + 0x94]
test ecx, ecx
je 0x100079ff
lea eax, [esp + 0x88]
call sym._mp_clear.part.0
mov edx, dword [esp + 0x84]
test edx, edx
je 0x10007944
lea eax, [esp + 0x78]
call sym._mp_clear.part.0
jmp 0x10007944
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x68]
mov dword [esp], eax
mov dword [esp + 4], esi
call sym._mp_init_copy
mov ebx, eax
test eax, eax
jne 0x10007de5
mov eax, dword [edi + 8]
mov dword [esp + 0x70], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x18], eax
test esi, esi
je 0x10007e25
lea eax, [esi - 1]
mov dword [esp + 0x40], eax
imul ecx, eax, 0x1c
mov eax, dword [esp + 0x74]
mov eax, dword [eax + esi*4 - 4]
test eax, eax
je 0x10007e72
nop
add ecx, 1
shr eax, 1
jne 0x10007a80
mov eax, ecx
mov edx, 0x92492493
imul edx
lea eax, [edx + ecx]
mov edx, ecx
sar eax, 4
sar edx, 0x1f
sub eax, edx
imul eax, eax, 0x1c
sub ecx, eax
mov eax, ecx
cmp ecx, 0x1b
jne 0x10007e74
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x68]
mov dword [esp + 0x38], eax
sub eax, esi
mov dword [esp + 0x3c], eax
mov edx, eax
mov eax, ecx
call sym._mp_lshd
test eax, eax
jne 0x10007dd2
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], esi
shl eax, 2
mov esi, eax
jmp 0x10007b0d
mov eax, dword [esp + 0x54]
add eax, esi
add dword [eax], 1
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
call sym._mp_sub
test eax, eax
jne 0x10007dd2
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
call sym._mp_cmp
cmp eax, 0xffffffff
jne 0x10007ae0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x68]
mov esi, dword [esp + 0x34]
call sym._mp_rshd
cmp dword [esp + 0x38], esi
jle 0x10007fc4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
lea eax, [ecx - 1]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
lea edx, [eax*4]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], edx
lea edx, [esi*4 - 8]
mov dword [esp + 0x2c], edx
lea edx, [ecx - 2]
sub edx, dword [esp + 0x40]
mov dword [esp + 0x34], edx
jmp 0x10007b9a
sub dword [esp + 0x34], 1
sub edi, 1
cmp edi, dword [esp + 0x40]
je 0x10007ef7
cmp eax, edi
jl 0x10007b88
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x38]
lea esi, [edi*4]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x3c], esi
mov ecx, dword [edx + ecx]
lea edx, [esi - 4]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
mov eax, dword [ebx + edi*4]
lea esi, [edx*4]
mov edx, dword [esp + 0x54]
add edx, esi
mov dword [esp + 0x20], edx
cmp eax, ecx
je 0x10007e7f
xor edx, edx
shld edx, eax, 0x1c
shl eax, 0x1c
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x24]
or edx, dword [ebx + eax - 4]
mov dword [esp + 8], ecx
mov ebx, 0xfffffff
mov eax, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___udivdi3
cmp ebx, eax
mov ecx, eax
mov eax, 0
mov ebx, dword [esp + 0x20]
sbb eax, edx
mov eax, 0xfffffff
cmovae eax, ecx
mov dword [ebx], eax
mov edx, dword [esp + 0x54]
add edx, esi
mov eax, dword [edx]
add eax, 1
and eax, 0xfffffff
mov dword [edx], eax
mov eax, dword [esp + 0x3c]
lea ebx, [eax - 8]
mov edx, dword [esp + 0x54]
add edx, esi
mov eax, dword [edx]
sub eax, 1
and eax, 0xfffffff
mov dword [edx], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], 0
shl eax, 2
mov dword [esp + 0x78], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x80], 0
mov dword [esp], eax
call sym._memset
mov edx, dword [esp + 0x40]
xor eax, eax
test edx, edx
jle 0x10007cad
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + ecx]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x38]
mov dword [edx], eax
mov eax, dword [esp + 0x74]
mov edx, dword [eax + ecx]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x78], 2
lea ecx, [esp + 0x78]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x54]
mov edx, dword [eax + esi]
mov eax, ecx
call sym._mp_mul_d
test eax, eax
jne 0x10007dd2
mov eax, dword [esp + 0x94]
cmp edi, 1
jle 0x10007dff
mov edx, dword [esp + 0x64]
mov edx, dword [edx + ebx]
mov dword [eax], edx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x30]
mov edx, dword [eax + ecx]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x78], 3
mov dword [eax + 4], edx
mov eax, dword [esp + 0x64]
mov edx, dword [eax + ecx]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x88], 3
mov dword [eax + 8], edx
jg 0x10007c51
jne 0x10007d75
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x84]
mov eax, 3
mov edx, dword [esp + 0x94]
nop
mov ebx, dword [edx + eax*4 - 4]
cmp dword [ecx + eax*4 - 4], ebx
ja 0x10007e1c
jb 0x10007d75
sub eax, 1
jne 0x10007d60
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x78]
mov edx, dword [eax + esi]
lea eax, [esp + 0x68]
call sym._mp_mul_d
test eax, eax
jne 0x10007dd2
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x78]
call sym._mp_lshd
test eax, eax
jne 0x10007dd2
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
lea eax, [esp + 0x78]
mov dword [esp + 4], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
call sym._mp_sub
test eax, eax
jne 0x10007dd2
cmp dword [esp + 0x60], 1
je 0x10007e8a
mov eax, dword [esp + 0x58]
jmp 0x10007b88
mov ebx, eax
mov edi, dword [esp + 0x74]
test edi, edi
je 0x10007de5
lea eax, [esp + 0x68]
call sym._mp_clear.part.0
mov esi, dword [esp + 0x64]
test esi, esi
je 0x100079e8
lea eax, [esp + 0x58]
call sym._mp_clear.part.0
jmp 0x100079e8
mov dword [eax], 0
je 0x10007d06
xor edx, edx
jmp 0x10007d11
mov ebx, 0xfffffffd
jmp 0x10007917
mov ebx, dword [esp + 0x24]
jmp 0x10007c51
mov edx, 0x1b
lea ecx, [esp + 0x58]
mov dword [esp + 0x40], edx
mov eax, ecx
call sym._mp_mul_2d
mov ebx, eax
test eax, eax
jne 0x10007dd4
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x68]
mov eax, ecx
mov dword [esp + 0x3c], edx
call sym._mp_mul_2d
mov ebx, eax
test eax, eax
jne 0x10007dd4
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x3c]
lea eax, [esi - 1]
mov ebx, edx
mov dword [esp + 0x40], eax
jmp 0x10007aad
xor eax, eax
mov ebx, 0x1b
sub ebx, eax
mov edx, ebx
jmp 0x10007e2a
mov dword [edx], 0xfffffff
jmp 0x10007c38
lea eax, [esp + 0x78]
mov dword [esp + 4], eax
lea eax, [esp + 0x68]
mov dword [esp], eax
call sym._mp_copy
test eax, eax
jne 0x10007dd2
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x78]
call sym._mp_lshd
test eax, eax
jne 0x10007dd2
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
lea eax, [esp + 0x78]
mov dword [esp + 4], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
call sym._mp_add
test eax, eax
jne 0x10007dd2
mov eax, dword [esp + 0x54]
add eax, esi
mov ebx, dword [eax]
lea edx, [ebx - 1]
and edx, 0xfffffff
mov dword [eax], edx
jmp 0x10007dc9
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x10007f06
mov eax, dword [edi + 8]
cmp dword [esp + 0x44], 0
mov dword [esp + 0x60], eax
je 0x10007f68
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
test eax, eax
jg 0x10007f29
jmp 0x10007f31
sub eax, 1
mov dword [esp + 0x48], eax
je 0x10007f31
mov ecx, dword [edx + eax*4 - 4]
test ecx, ecx
je 0x10007f20
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
mov ecx, 4
mov dword [esp + 0x40], edi
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x1c], edi
mov dword [esi + 0xc], edx
setne al
mov dword [esi + 8], eax
cmp dword [ebp + 8], 0
je 0x10007fbd
mov dword [esp], 0
lea ecx, [esp + 0x58]
mov edx, ebx
mov eax, ecx
call sym._mp_div_2d
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
mov ecx, 4
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x44], edi
mov esi, dword [ebp + 8]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x44]
mov dword [ecx + 8], ebx
xor ebx, ebx
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], edi
jmp 0x10007dd4
xor ebx, ebx
jmp 0x10007dd4
mov eax, dword [esp + 0x58]
jmp 0x10007eff