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

Disassembly:
mov eax, 0x50
call fcn.006df660
mov eax, dword [0x7f9c40]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x60]
xor ebx, ebx
push esi
xor esi, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], esi
push edi
mov edi, dword [esp + 0x64]
cmp ebp, 0x200
jge 0x664193
call fcn.005cc9b0
push 0x783780
push 0x5a
push str.crypto_rsa_rsa_gen.c
call fcn.005ccab0
push ebx
push 0x78
jmp 0x664a26
test eax, eax
je 0x6641e0
push eax
call fcn.0067c450
add esp, 4
test eax, eax
jne 0x6641e0
call fcn.005cc9b0
push 0x783780
push 0x60
push str.crypto_rsa_rsa_gen.c
call fcn.005ccab0
push 0
push 0xb2
push 4
call fcn.005ccb60
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.006def69
add esp, 0x50
ret
cmp dword [esp + 0x14], 2
jl 0x664a08
push ebp
call fcn.0060f280
add esp, 4
cmp dword [esp + 0x14], eax
jg 0x664a08
push dword [edi + 4]
call fcn.0060f650
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x6649da
push ebx
call fcn.0060f720
push ebx
call fcn.0060f4d0
push ebx
mov dword [esp + 0x44], eax
call fcn.0060f4d0
push ebx
mov dword [esp + 0x28], eax
call fcn.0060f4d0
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x6649da
xor edx, edx
mov eax, ebp
div dword [esp + 0x14]
xor edx, edx
xor ecx, ecx
mov ebx, eax
mov eax, ebp
div dword [esp + 0x14]
mov eax, dword [esp + 0x14]
movd xmm0, ebx
mov ebp, edx
pshufd xmm3, xmm0, 0
movd xmm0, ebp
pshufd xmm5, xmm0, 0
cmp eax, 0x10
jb 0x66434c
movaps xmm2, xmmword [0x73b420]
mov edx, eax
movaps xmm4, xmmword [0x72c2c0]
and edx, 0xfffffff0
paddd xmm2, xmm3
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
movaps xmm1, xmm5
paddd xmm0, xmm4
pcmpgtd xmm1, xmm0
movaps xmm0, xmm2
pand xmm0, xmm1
pandn xmm1, xmm3
por xmm0, xmm1
movaps xmm1, xmm5
movups xmmword [esp + ecx*4 + 0x48], xmm0
movd xmm0, eax
lea eax, [ecx + 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm4
pcmpgtd xmm1, xmm0
movaps xmm0, xmm1
pandn xmm1, xmm3
pand xmm0, xmm2
por xmm0, xmm1
movaps xmm1, xmm5
movups xmmword [esp + ecx*4 + 0x58], xmm0
movd xmm0, eax
lea eax, [ecx + 0xc]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm4
pcmpgtd xmm1, xmm0
movaps xmm0, xmm1
pandn xmm1, xmm3
pand xmm0, xmm2
por xmm0, xmm1
movaps xmm1, xmm5
movups xmmword [esp + ecx*4 + 0x68], xmm0
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm4
pcmpgtd xmm1, xmm0
movaps xmm0, xmm1
pandn xmm1, xmm3
pand xmm0, xmm2
por xmm0, xmm1
movups xmmword [esp + ecx*4 + 0x78], xmm0
add ecx, 0x10
cmp ecx, edx
jl 0x664292
cmp ecx, dword [esp + 0x14]
jge 0x664363
mov esi, dword [esp + 0x14]
cmp ecx, ebp
lea eax, [ebx + 1]
cmovge eax, ebx
mov dword [esp + ecx*4 + 0x48], eax
inc ecx
cmp ecx, esi
jl 0x664350
xor esi, esi
inc dword [edi + 0x78]
cmp dword [edi + 0x14], 0
jne 0x66437c
call fcn.005ae390
mov dword [edi + 0x14], eax
test eax, eax
je 0x6649d6
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x664393
call fcn.005ae540
mov dword [edi + 0x1c], eax
test eax, eax
je 0x6649d6
push 4
push eax
call fcn.005ae670
add esp, 8
cmp dword [edi + 0x18], 0
jne 0x6643b4
call fcn.005ae390
mov dword [edi + 0x18], eax
test eax, eax
je 0x6649d6
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x6643cb
call fcn.005ae540
mov dword [edi + 0x20], eax
test eax, eax
je 0x6649d6
push 4
push eax
call fcn.005ae670
mov eax, dword [edi + 0x24]
add esp, 8
test eax, eax
jne 0x6643ed
call fcn.005ae540
mov dword [edi + 0x24], eax
test eax, eax
je 0x6649d6
push 4
push eax
call fcn.005ae670
mov eax, dword [edi + 0x28]
add esp, 8
test eax, eax
jne 0x66440f
call fcn.005ae540
mov dword [edi + 0x28], eax
test eax, eax
je 0x6649d6
push 4
push eax
call fcn.005ae670
mov eax, dword [edi + 0x2c]
add esp, 8
test eax, eax
jne 0x664431
call fcn.005ae540
mov dword [edi + 0x2c], eax
test eax, eax
je 0x6649d6
push 4
push eax
call fcn.005ae670
mov eax, dword [edi + 0x30]
add esp, 8
test eax, eax
jne 0x664453
call fcn.005ae540
mov dword [edi + 0x30], eax
test eax, eax
je 0x6649d6
push 4
push eax
call fcn.005ae670
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, 2
jle 0x6644d2
add eax, 0xfffffffe
mov dword [edi + 8], 1
push eax
push 0
call fcn.005a9630
mov ebp, eax
add esp, 8
mov dword [esp + 0x28], ebp
test ebp, ebp
je 0x6649d6
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x6644a1
push 0x60f2c0
push ecx
call fcn.005a9700
add esp, 8
mov eax, ebp
mov dword [edi + 0x4c], eax
mov ebx, 2
nop dword [eax]
call fcn.0060f320
mov dword [esp + 0x34], eax
test eax, eax
je 0x6649d6
push eax
push ebp
call fcn.005a9760
inc ebx
add esp, 8
cmp ebx, dword [esp + 0x14]
jl 0x6644b0
push dword [esp + 0x2c]
push dword [edi + 0x18]
call fcn.005adf00
add esp, 8
test eax, eax
je 0x6649d6
xor ebp, ebp
nop dword [eax + eax]
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], 0
test ebp, ebp
jne 0x664505
mov ebx, dword [edi + 0x20]
jmp 0x664525
cmp ebp, 1
jne 0x66450f
mov ebx, dword [edi + 0x24]
jmp 0x664525
lea eax, [ebp - 2]
push eax
push dword [esp + 0x2c]
call fcn.005a9920
add esp, 8
mov dword [esp + 0x34], eax
mov ebx, dword [eax]
push 4
push ebx
call fcn.005ae670
mov eax, dword [esp + ebp*4 + 0x50]
add esp, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
nop dword [eax]
push dword [esp + 0x10]
push dword [esp + 0x28]
push 0
push 0
push 0
push eax
push ebx
call fcn.00679d10
add esp, 0x1c
test eax, eax
je 0x6649d6
xor esi, esi
cmp esi, ebp
jge 0x6645a0
test esi, esi
jne 0x66456f
mov eax, dword [edi + 0x20]
jmp 0x66458b
cmp esi, 1
jne 0x664579
mov eax, dword [edi + 0x24]
jmp 0x66458b
lea eax, [esi - 2]
push eax
push dword [esp + 0x2c]
call fcn.005a9920
add esp, 8
mov eax, dword [eax]
push eax
push ebx
call fcn.005add30
add esp, 8
test eax, eax
je 0x664712
inc esi
jmp 0x664562
call fcn.005ae820
mov esi, dword [esp + 0x30]
push eax
push ebx
push esi
call fcn.0060f8c0
add esp, 0xc
test eax, eax
je 0x6649d6
call fcn.005c27b0
push 4
push esi
call fcn.005ae670
push dword [esp + 0x18]
push dword [edi + 0x18]
push esi
push dword [esp + 0x2c]
call fcn.00610970
add esp, 0x18
test eax, eax
je 0x6646be
mov esi, dword [esp + 0x40]
add esi, dword [esp + 0x3c]
mov dword [esp + 0x44], esi
cmp ebp, 1
jne 0x664602
push dword [esp + 0x10]
push dword [edi + 0x24]
push dword [edi + 0x20]
jmp 0x664612
test ebp, ebp
je 0x664776
push dword [esp + 0x10]
push ebx
push dword [edi + 0x14]
push dword [esp + 0x24]
call fcn.0060fae0
add esp, 0x10
test eax, eax
je 0x6649d6
lea eax, [esi - 4]
mov esi, dword [esp + 0x30]
push eax
push dword [esp + 0x1c]
push esi
call fcn.005fc090
add esp, 0xc
test eax, eax
je 0x6649d6
push esi
call fcn.005ae0c0
mov esi, eax
add esp, 4
cmp esi, 9
jb 0x66465c
cmp esi, 0xf
jbe 0x66471b
push dword [esp + 0x20]
push 2
push dword [esp + 0x2c]
call fcn.00679c80
inc dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x6649d6
cmp dword [esp + 0x14], 4
jle 0x6646a6
mov eax, dword [esp + 0x1c]
cmp esi, 9
jae 0x664698
inc eax
inc dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jmp 0x664540
dec eax
inc dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jmp 0x664540
cmp dword [esp + 0x2c], 4
je 0x66476f
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x2c]
jmp 0x664540
call fcn.005c2530
test eax, eax
js 0x6649d6
mov ecx, eax
and ecx, 0x7f800000
cmp ecx, 0x1800000
jne 0x6649d6
and eax, 0x7fffff
cmp eax, 0x6c
jne 0x6649d6
call fcn.005c25d0
mov esi, dword [esp + 0x20]
push esi
push 2
push dword [esp + 0x2c]
call fcn.00679c80
inc esi
add esp, 0xc
mov dword [esp + 0x20], esi
test eax, eax
je 0x6649d6
mov eax, dword [esp + 0x1c]
jmp 0x664540
cmp ebp, 1
jle 0x66473a
mov eax, dword [esp + 0x34]
push dword [edi + 0x14]
push dword [eax + 0xc]
call fcn.005adf00
add esp, 8
test eax, eax
je 0x6649d6
mov ebx, dword [esp + 0x18]
push ebx
push dword [edi + 0x14]
call fcn.005adf00
add esp, 8
test eax, eax
je 0x6649d6
push ebp
push 3
push dword [esp + 0x2c]
call fcn.00679c80
add esp, 0xc
test eax, eax
je 0x6649d6
mov esi, dword [esp + 0x44]
jmp 0x664792
xor esi, esi
jmp 0x6644e9
push 0
push 3
push dword [esp + 0x2c]
call fcn.00679c80
add esp, 0xc
test eax, eax
je 0x6649d6
mov ebx, dword [esp + 0x18]
inc ebp
cmp ebp, dword [esp + 0x14]
jl 0x6644f0
push dword [edi + 0x24]
push dword [edi + 0x20]
call fcn.005add30
add esp, 8
test eax, eax
jns 0x6647bb
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
call fcn.005ae820
push eax
push dword [edi + 0x20]
push ebx
call fcn.0060f8c0
add esp, 0xc
test eax, eax
je 0x6649d6
call fcn.005ae820
mov ebp, dword [esp + 0x30]
push eax
push dword [edi + 0x24]
push ebp
call fcn.0060f8c0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x6649da
push ebx
push ebp
push dword [esp + 0x20]
push dword [esp + 0x44]
call fcn.0060fae0
add esp, 0x10
test eax, eax
je 0x6649da
mov ebp, dword [esp + 0x28]
mov esi, 2
cmp dword [esp + 0x14], esi
jle 0x66486f
lea eax, [esi - 2]
push eax
push ebp
call fcn.005a9920
mov ebx, eax
call fcn.005ae820
push eax
push dword [ebx]
push dword [ebx + 4]
call fcn.0060f8c0
add esp, 0x14
test eax, eax
je 0x6649d6
push dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
push dword [ebx + 4]
push eax
push eax
call fcn.0060fae0
add esp, 0x10
test eax, eax
je 0x6649d6
inc esi
cmp esi, dword [esp + 0x14]
jl 0x664820
mov ebx, dword [esp + 0x10]
call fcn.005ae390
mov esi, eax
test esi, esi
je 0x6649da
push 4
push dword [esp + 0x3c]
push esi
call fcn.005ae830
push ebx
push esi
push dword [edi + 0x18]
push dword [edi + 0x1c]
call fcn.00610970
add esp, 0x1c
push esi
test eax, eax
jne 0x6648ac
call fcn.005ae050
add esp, 4
jmp 0x6649da
call fcn.005ae050
add esp, 4
call fcn.005ae390
mov ebx, eax
test ebx, ebx
je 0x6649d6
push 4
push dword [edi + 0x1c]
push ebx
call fcn.005ae830
mov esi, dword [esp + 0x1c]
push esi
push dword [esp + 0x28]
push ebx
push dword [edi + 0x28]
push 0
call fcn.006370d0
add esp, 0x20
test eax, eax
je 0x6649cd
push esi
push dword [esp + 0x34]
push ebx
push dword [edi + 0x2c]
push 0
call fcn.006370d0
add esp, 0x14
test eax, eax
je 0x6649cd
mov esi, 2
cmp dword [esp + 0x14], esi
jle 0x664940
lea eax, [esi - 2]
push eax
push ebp
call fcn.005a9920
push dword [esp + 0x18]
mov eax, dword [eax + 4]
push eax
push ebx
push eax
push 0
call fcn.006370d0
add esp, 0x1c
test eax, eax
je 0x6649cd
inc esi
cmp esi, dword [esp + 0x14]
jl 0x664913
push ebx
call fcn.005ae050
add esp, 4
call fcn.005ae390
mov ebx, eax
test ebx, ebx
je 0x6649d6
push 4
push dword [edi + 0x20]
push ebx
call fcn.005ae830
push dword [esp + 0x1c]
push ebx
push dword [edi + 0x24]
push dword [edi + 0x30]
call fcn.00610970
add esp, 0x1c
test eax, eax
je 0x6649cd
mov edi, 2
cmp dword [esp + 0x14], edi
jle 0x6649b9
lea eax, [edi - 2]
push eax
push ebp
call fcn.005a9920
mov esi, eax
push 4
push dword [esi]
push ebx
call fcn.005ae830
push dword [esp + 0x24]
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00610970
add esp, 0x24
test eax, eax
je 0x6649cd
inc edi
cmp edi, dword [esp + 0x14]
jl 0x664985
push ebx
call fcn.005ae050
mov ebx, dword [esp + 0x14]
add esp, 4
mov esi, 1
jmp 0x664a30
push ebx
call fcn.005ae050
add esp, 4
mov ebx, dword [esp + 0x10]
call fcn.005cc9b0
push 0x783780
push 0x19f
push str.crypto_rsa_rsa_gen.c
call fcn.005ccab0
push 0
push 0x80003
push 4
call fcn.005ccb60
add esp, 0x18
xor esi, esi
jmp 0x664a30
xor esi, esi
call fcn.005cc9b0
push 0x783780
push 0x66
push str.crypto_rsa_rsa_gen.c
call fcn.005ccab0
push esi
push 0xa5
push 4
call fcn.005ccb60
add esp, 0x18
push ebx
call fcn.0060f3d0
push ebx
call fcn.0060f440
mov ecx, dword [esp + 0x64]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006def69
add esp, 0x50
ret