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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x24
cmp eax, dword [esp + 0x38]
jne 0x1004b6bf
mov eax, dword [esp + 0x34]
mov dword [esp + 8], 1
cmp eax, dword [esp + 0x3c]
je 0x1004b6c7
mov dword [esp + 8], 0
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
mov esi, dword [esp + 0x4c]
mov ecx, esi
lea eax, [ebx - 1]
sar eax, cl
inc eax
shl eax, cl
push edi
cmp eax, ebx
je 0x1004b6f8
push str.__gmpn_fft_next_size__pl__k___pl
push 0x3a6
push str.mul_fft.c
call fcn.1004cd20
add esp, 0xc
lea eax, [esi*4 + 4]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
mov edi, ebx
push eax
shl edi, 5
call fcn.10041dc0
mov ecx, esi
mov edx, 2
shl edx, cl
mov ebx, eax
shl edx, 2
lea eax, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x40], ebx
call fcn.10041dc0
add esp, 0x10
xor edx, edx
test esi, esi
js 0x1004b74f
mov ecx, 1
mov dword [ebx + edx*4], eax
lea eax, [eax + ecx*4]
inc edx
rol ecx, 1
cmp edx, esi
jle 0x1004b742
push esi
push ebx
call fcn.1004bda0
mov ecx, esi
mov eax, 1
shl eax, cl
add esp, 8
sar edi, cl
mov ebx, 0x20
mov dword [esp + 0x14], eax
lea eax, [edi - 1]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
inc eax
mov dword [esp + 0x1c], eax
nop
test ecx, ecx
jle 0x1004b78c
shr ebx, 1
dec ecx
test bl, 1
je 0x1004b780
inc edi
mov ecx, esi
shl ebx, cl
mov ecx, 0x235
lea eax, [esi + edi*2]
cdq
idiv ebx
lea ebp, [eax + 1]
imul ebp, ebx
mov eax, ebp
cdq
and edx, 0x1f
lea edi, [edx + eax]
mov eax, dword [esp + 0x18]
sar edi, 5
mov edx, 0x1d8
test eax, eax
cmovne ecx, edx
cmp edi, ecx
jl 0x1004b82b
imul eax, eax, 0x248
add eax, 0x102235e0
mov ebx, dword [eax]
shr ebx, 0x1b
add eax, 4
mov dword [esp + 0x28], eax
mov edx, eax
mov ecx, ebx
mov esi, dword [edx]
mov eax, esi
and eax, 0x7ffffff
shl eax, cl
cmp edi, eax
jle 0x1004b807
nop word [eax + eax]
mov ecx, esi
lea edx, [edx + 4]
mov esi, dword [edx]
mov eax, esi
shr ecx, 0x1b
and eax, 0x7ffffff
shl eax, cl
cmp edi, eax
jg 0x1004b7f0
mov edx, 1
shl edx, cl
lea eax, [edx - 1]
test edi, eax
je 0x1004b827
mov eax, dword [esp + 0x28]
dec edi
add edi, edx
neg edx
and edi, edx
mov ebp, edi
shl ebp, 5
jmp 0x1004b7d7
mov esi, dword [esp + 0x50]
cmp edi, dword [esp + 0x3c]
jl 0x1004b848
push str.nprime___pl
push 0x3cc
push str.mul_fft.c
call fcn.1004cd20
add esp, 0xc
lea eax, [edi*8 + 8]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.10041dc0
mov ebx, eax
mov ecx, esi
mov esi, dword [esp + 0x1c]
lea eax, [edi + 1]
imul eax, esi
sar ebp, cl
shl eax, 2
push eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c]
push eax
call fcn.10041dc0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
shl esi, 2
push esi
push eax
call fcn.10041dc0
mov dword [esp + 0x40], eax
lea eax, [esp + 0x28]
push esi
push eax
call fcn.10041dc0
mov esi, dword [esp + 0x3c]
push ebx
push ebp
push esi
push dword [esp + 0x70]
mov dword [esp + 0x54], eax
push dword [esp + 0x70]
push edi
push dword [esp + 0x4c]
push dword [esp + 0x64]
push dword [esp + 0x60]
call fcn.1004c660
add esp, 0x44
cmp dword [esp + 0x18], 0
je 0x1004b8ef
mov eax, dword [esp + 0x14]
dec eax
imul eax, esi
add eax, edi
lea eax, [eax*4 + 4]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.10041dc0
add esp, 8
mov esi, eax
jmp 0x1004b91f
push dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
call fcn.10041dc0
push ebx
push ebp
push dword [esp + 0x2c]
mov esi, eax
push dword [esp + 0x60]
push dword [esp + 0x60]
push edi
push dword [esp + 0x34]
push dword [esp + 0x48]
push esi
call fcn.1004c660
add esp, 0x2c
push dword [esp + 0x18]
push ebx
push dword [esp + 0x38]
push ebp
push dword [esp + 0x2c]
push edi
push esi
push dword [esp + 0x3c]
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x78]
push dword [esp + 0x68]
push dword [esp + 0x68]
call fcn.1004c810
mov esi, eax
add esp, 0x34
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1004b962
push eax
call fcn.10041df0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret