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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x10164bc0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x80]
push ebx
mov ebx, dword [esp + 0x80]
push ebp
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x2c], eax
lea eax, [ebp + 1]
push esi
lea eax, [eax + eax*2]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], ecx
push edi
mov edi, dword [esp + 0x98]
mov dword [esp + 0x40], edi
test eax, eax
je 0x100ff3c0
mov ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
nop dword [eax]
lea eax, [ebp*4 + 4]
mov dword [esp + 0x18], edi
add edi, eax
mov esi, 1
mov edx, edi
mov dword [esp + 0x44], edi
add edi, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edi
add edi, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x40], edi
mov dword [edx], 1
mov dword [esp + 0x54], eax
cmp ebp, 2
jge 0x100ff4d4
cmp dword [ebx], 0
ja 0x100ff42b
push str.ap_0____0
push 0xf9
push str.gcdext_lehmer.c
call fcn.100ebd40
add esp, 0xc
mov edi, dword [esp + 0x14]
cmp dword [edi], 0
ja 0x100ff44b
push str.bp_0____0
push 0xfa
push str.gcdext_lehmer.c
call fcn.100ebd40
add esp, 0xc
mov ecx, dword [edi]
mov eax, dword [ebx]
cmp eax, ecx
jne 0x100ff727
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x20]
mov dword [ecx], eax
lea ecx, [esi - 1]
test ecx, ecx
js 0x100ff497
mov edx, dword [esp + 0x18]
lea eax, [ebx + ecx*4]
mov edi, edx
sub edi, ebx
mov dword [esp + 0x38], edi
nop word [eax + eax]
mov edi, dword [edi + eax]
cmp edi, dword [eax]
jne 0x100ff705
mov edi, dword [esp + 0x38]
sub eax, 4
sub ecx, 1
jns 0x100ff480
lea eax, [esi - 1]
cmp dword [ebx + eax*4], 0
lea eax, [ebx + eax*4]
jne 0x100ff4ac
lea eax, [eax - 4]
dec esi
cmp dword [eax], 0
je 0x100ff4a3
mov edx, dword [esp + 0x44]
mov edi, esi
push esi
push edx
push dword [esp + 0x38]
call fcn.1006fda0
mov eax, dword [esp + 0x40]
add esp, 0xc
mov dword [eax], edi
jmp 0x100ff838
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + ebp*4 - 4]
mov edx, dword [ecx + ebp*4 - 4]
mov dword [esp + 0x10], eax
or eax, edx
mov dword [esp + 0x1c], edx
jge 0x100ff4f5
mov eax, dword [ebx + ebp*4 - 8]
mov ecx, dword [ecx + ebp*4 - 8]
jmp 0x100ff635
cmp ebp, 2
jne 0x100ff587
cmp eax, 0x10000
jae 0x100ff514
cmp eax, 0x100
sbb ecx, ecx
and ecx, 0xfffffff8
add ecx, 9
jmp 0x100ff521
cmp eax, 0x1000000
sbb ecx, ecx
and ecx, 0xfffffff8
add ecx, 0x19
shr eax, cl
mov edi, 0x21
mov edx, 0x20
movzx eax, byte [eax + 0x1015dbd0]
sub edi, eax
mov eax, dword [ebx + 4]
sub edi, ecx
sub edx, edi
mov ecx, edi
shl eax, cl
mov ecx, edx
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
shr eax, cl
mov ecx, edi
or dword [esp + 0x10], eax
mov eax, dword [ebx]
shl eax, cl
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov ecx, edi
shl eax, cl
mov ecx, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
shr eax, cl
mov ecx, edi
or edx, eax
shl dword [esp + 0x2c], cl
jmp 0x100ff62d
cmp eax, 0x10000
jae 0x100ff59d
cmp eax, 0x100
sbb ecx, ecx
and ecx, 0xfffffff8
add ecx, 9
jmp 0x100ff5aa
cmp eax, 0x1000000
sbb ecx, ecx
and ecx, 0xfffffff8
add ecx, 0x19
mov edx, dword [esp + 0x3c]
mov ebx, 0x21
shr eax, cl
mov edi, 0x20
mov edx, dword [edx + ebp*4 - 8]
movzx eax, byte [eax + 0x1015dbd0]
sub ebx, eax
mov eax, dword [esp + 0x10]
sub ebx, ecx
mov ecx, ebx
sub edi, ebx
shl eax, cl
mov ecx, edi
mov dword [esp + 0x10], eax
mov eax, edx
shr eax, cl
or dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + ebp*4 - 0xc]
shr eax, cl
mov ecx, ebx
shl edx, cl
or eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
shl eax, cl
mov ecx, edi
mov edx, dword [edx + ebp*4 - 8]
mov dword [esp + 0x1c], eax
mov eax, edx
shr eax, cl
or dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + ebp*4 - 0xc]
shr eax, cl
mov ecx, ebx
mov ebx, dword [esp + 0x3c]
shl edx, cl
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
lea edi, [esp + 0x68]
push edi
push ecx
push edx
push eax
push dword [esp + 0x20]
call fcn.100f5890
mov edi, dword [esp + 0x54]
add esp, 0x14
test eax, eax
je 0x100ff69f
push ebp
push dword [esp + 0x18]
lea eax, [esp + 0x70]
push ebx
push edi
push eax
call fcn.100f5df0
push esi
push dword [esp + 0x38]
mov ebp, eax
mov dword [esp + 0x5c], ebx
push dword [esp + 0x34]
lea eax, [esp + 0x88]
mov ebx, edi
push dword [esp + 0x44]
mov dword [esp + 0x60], ebx
push eax
call fcn.100f5be0
mov ecx, dword [esp + 0x4c]
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 0x28
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
jmp 0x100ff6e0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
push edi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x4c]
push eax
push 0x100ff190
push 0
push ebp
push dword [esp + 0x28]
mov dword [esp + 0x70], esi
push ebx
call fcn.100f6620
mov ebp, eax
add esp, 0x1c
test ebp, ebp
je 0x100ff6ee
mov esi, dword [esp + 0x58]
cmp ebp, 2
jge 0x100ff4d0
jmp 0x100ff40f
mov eax, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.100c490a
add esp, 0x6c
ret
ja 0x100ff497
lea eax, [edx - 4]
lea eax, [eax + esi*4]
cmp dword [eax], 0
jne 0x100ff71e
dec esi
sub eax, 4
test esi, esi
jg 0x100ff711
mov edi, esi
neg edi
jmp 0x100ff4b2
push ecx
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.10102b70
mov ecx, dword [esp + 0x48]
add esp, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x100ff782
test esi, esi
jle 0x100ff764
mov eax, dword [esp + 0x18]
lea eax, [eax + esi*4]
add eax, 0xfffffffc
cmp dword [eax], 0
jne 0x100ff764
dec esi
sub eax, 4
test esi, esi
jg 0x100ff757
push esi
push dword [esp + 0x1c]
push dword [esp + 0x38]
call fcn.1006fda0
mov eax, dword [esp + 0x40]
add esp, 0xc
neg esi
mov dword [eax], esi
jmp 0x100ff838
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x100ff7be
test esi, esi
jle 0x100ff7a5
mov eax, dword [esp + 0x20]
lea eax, [eax + esi*4]
add eax, 0xfffffffc
cmp dword [eax], 0
jne 0x100ff7a5
dec esi
sub eax, 4
test esi, esi
jg 0x100ff798
push esi
push dword [esp + 0x24]
push dword [esp + 0x38]
call fcn.1006fda0
mov eax, dword [esp + 0x40]
add esp, 0xc
mov dword [eax], esi
jmp 0x100ff838
test eax, eax
jle 0x100ff7cc
xor ebp, ebp
neg ecx
mov dword [esp + 0x28], ecx
jmp 0x100ff7d7
neg eax
mov ebp, 1
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x30]
push eax
push esi
push dword [esp + 0x28]
push ebx
call fcn.1006fe40
push dword [esp + 0x38]
mov edi, eax
push esi
push dword [esp + 0x30]
push ebx
call fcn.10070967
mov ecx, eax
add esp, 0x20
or ecx, edi
jbe 0x100ff813
add edi, eax
mov dword [ebx + esi*4], edi
inc esi
cmp edi, eax
jae 0x100ff813
mov dword [ebx + esi*4], 1
inc esi
lea eax, [ebx - 4]
cmp dword [eax + esi*4], 0
lea eax, [eax + esi*4]
jne 0x100ff829
nop
lea eax, [eax - 4]
dec esi
cmp dword [eax], 0
je 0x100ff820
mov ecx, dword [esp + 0x34]
mov eax, esi
neg eax
test ebp, ebp
cmove eax, esi
mov dword [ecx], eax
mov ecx, dword [esp + 0x78]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100c490a
add esp, 0x6c
ret