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

Disassembly:
mov eax, 0x4c
call fcn.0045cf80
mov eax, dword [0x673010]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
xor ebx, ebx
push esi
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
push edi
mov edi, dword [esp + 0x60]
cmp ebp, 0x200
jge 0x4f42c7
call fcn.004ade90
push str.rsa_multiprime_keygen
push 0x5a
push str.crypto_rsa_rsa_gen.c
call fcn.004adf90
push ebx
push 0x78
jmp 0x4f4b59
test eax, eax
je 0x4f4314
push eax
call fcn.00535db0
add esp, 4
test eax, eax
jne 0x4f4314
call fcn.004ade90
push str.rsa_multiprime_keygen
push 0x60
push str.crypto_rsa_rsa_gen.c
call fcn.004adf90
push 0
push 0xb2
push 4
call fcn.004ae040
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045bfb6
add esp, 0x4c
ret
cmp dword [esp + 0x10], 2
jl 0x4f4b3b
push ebp
call fcn.005173a0
add esp, 4
cmp dword [esp + 0x10], eax
jg 0x4f4b3b
push dword [edi + 4]
call fcn.004ffde0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x4f4b0d
push eax
call fcn.004ffeb0
push dword [esp + 0x18]
call fcn.004ffc60
push dword [esp + 0x1c]
mov dword [esp + 0x44], eax
call fcn.004ffc60
push dword [esp + 0x20]
mov dword [esp + 0x30], eax
call fcn.004ffc60
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x4f4b0d
xor edx, edx
mov eax, ebp
div dword [esp + 0x10]
xor edx, edx
xor ecx, ecx
mov ebp, eax
mov eax, dword [esp + 0x64]
div dword [esp + 0x10]
movd xmm0, ebp
mov eax, edx
pshufd xmm3, xmm0, 0
mov dword [esp + 0x2c], eax
movd xmm0, eax
mov eax, dword [esp + 0x10]
pshufd xmm5, xmm0, 0
cmp eax, 0x10
jb 0x4f448d
movaps xmm2, xmmword [0x5e8410]
mov edx, eax
movaps xmm4, xmmword [0x61be20]
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 + 0x44], 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 + 0x54], 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 + 0x64], 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 + 0x74], xmm0
add ecx, 0x10
cmp ecx, edx
jl 0x4f43d3
cmp ecx, dword [esp + 0x10]
jge 0x4f44a6
mov ebx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x2c]
lea eax, [ebp + 1]
cmovge eax, ebp
mov dword [esp + ecx*4 + 0x44], eax
inc ecx
cmp ecx, ebx
jl 0x4f4491
xor ebx, ebx
inc dword [edi + 0x78]
cmp dword [edi + 0x14], esi
jne 0x4f44be
call fcn.004a7b70
mov dword [edi + 0x14], eax
test eax, eax
je 0x4f4b0d
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x4f44d5
call fcn.004a7d20
mov dword [edi + 0x1c], eax
test eax, eax
je 0x4f4b0d
push 4
push eax
call fcn.004a7e50
add esp, 8
cmp dword [edi + 0x18], esi
jne 0x4f44f5
call fcn.004a7b70
mov dword [edi + 0x18], eax
test eax, eax
je 0x4f4b0d
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x4f450c
call fcn.004a7d20
mov dword [edi + 0x20], eax
test eax, eax
je 0x4f4b0d
push 4
push eax
call fcn.004a7e50
mov eax, dword [edi + 0x24]
add esp, 8
test eax, eax
jne 0x4f452e
call fcn.004a7d20
mov dword [edi + 0x24], eax
test eax, eax
je 0x4f4b0d
push 4
push eax
call fcn.004a7e50
mov eax, dword [edi + 0x28]
add esp, 8
test eax, eax
jne 0x4f4550
call fcn.004a7d20
mov dword [edi + 0x28], eax
test eax, eax
je 0x4f4b0d
push 4
push eax
call fcn.004a7e50
mov eax, dword [edi + 0x2c]
add esp, 8
test eax, eax
jne 0x4f4572
call fcn.004a7d20
mov dword [edi + 0x2c], eax
test eax, eax
je 0x4f4b0d
push 4
push eax
call fcn.004a7e50
mov eax, dword [edi + 0x30]
add esp, 8
test eax, eax
jne 0x4f4594
call fcn.004a7d20
mov dword [edi + 0x30], eax
test eax, eax
je 0x4f4b0d
push 4
push eax
call fcn.004a7e50
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, 2
jle 0x4f4616
add eax, 0xfffffffe
mov dword [edi + 8], 1
push eax
push 0
call fcn.004a6200
mov ebp, eax
add esp, 8
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x4f4b0d
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x4f45e0
push 0x5173e0
push eax
call fcn.004a62d0
add esp, 8
mov eax, ebp
mov ebx, 2
mov dword [edi + 0x4c], eax
nop word [eax + eax]
call fcn.00517440
mov dword [esp + 0x34], eax
test eax, eax
je 0x4f4b0d
push eax
push ebp
call fcn.004a6330
inc ebx
add esp, 8
cmp ebx, dword [esp + 0x10]
jl 0x4f45f0
mov ebx, dword [esp + 0x1c]
push dword [esp + 0x18]
push dword [edi + 0x18]
call fcn.004a76f0
add esp, 8
test eax, eax
je 0x4f4b0d
xor ebp, ebp
nop
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], 0
test ebp, ebp
jne 0x4f4645
mov ebx, dword [edi + 0x20]
jmp 0x4f4662
cmp ebp, 1
jne 0x4f464f
mov ebx, dword [edi + 0x24]
jmp 0x4f4662
lea eax, [ebp - 2]
push eax
push ebx
call fcn.004a6490
add esp, 8
mov dword [esp + 0x34], eax
mov ebx, dword [eax]
push 4
push ebx
call fcn.004a7e50
mov eax, dword [esp + ebp*4 + 0x4c]
add esp, 8
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
push dword [esp + 0x2c]
push 0
push 0
push 0
push eax
push ebx
call fcn.0052b560
add esp, 0x1c
test eax, eax
je 0x4f4b0d
xor esi, esi
cmp esi, ebp
jge 0x4f46d5
test esi, esi
jne 0x4f46a4
mov eax, dword [edi + 0x20]
jmp 0x4f46c0
cmp esi, 1
jne 0x4f46ae
mov eax, dword [edi + 0x24]
jmp 0x4f46c0
lea eax, [esi - 2]
push eax
push dword [esp + 0x20]
call fcn.004a6490
add esp, 8
mov eax, dword [eax]
push eax
push ebx
call fcn.004a7520
add esp, 8
test eax, eax
je 0x4f4847
inc esi
jmp 0x4f4697
call fcn.004a7f40
mov esi, dword [esp + 0x30]
push eax
push ebx
push esi
call fcn.00505db0
add esp, 0xc
test eax, eax
je 0x4f4b0d
call fcn.004ae9c0
push 4
push esi
call fcn.004a7e50
push dword [esp + 0x1c]
push dword [edi + 0x18]
push esi
push dword [esp + 0x34]
call fcn.005353d0
add esp, 0x18
test eax, eax
je 0x4f47f3
mov esi, dword [esp + 0x3c]
add esi, dword [esp + ebp*4 + 0x44]
mov dword [esp + 0x40], esi
cmp ebp, 1
jne 0x4f4737
push dword [esp + 0x14]
push dword [edi + 0x24]
push dword [edi + 0x20]
jmp 0x4f4747
test ebp, ebp
je 0x4f48ae
push dword [esp + 0x14]
push ebx
push dword [edi + 0x14]
push dword [esp + 0x2c]
call fcn.00534440
add esp, 0x10
test eax, eax
je 0x4f4b0d
lea eax, [esi - 4]
mov esi, dword [esp + 0x30]
push eax
push dword [esp + 0x24]
push esi
call fcn.004f99f0
add esp, 0xc
test eax, eax
je 0x4f4b0d
push esi
call fcn.004a78b0
mov esi, eax
add esp, 4
cmp esi, 9
jb 0x4f4791
cmp esi, 0xf
jbe 0x4f4850
push dword [esp + 0x24]
push 2
push dword [esp + 0x30]
call fcn.0052b4d0
inc dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x4f4b0d
cmp dword [esp + 0x10], 4
jle 0x4f47db
mov eax, dword [esp + 0x18]
cmp esi, 9
jae 0x4f47cd
inc eax
inc dword [esp + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x4f4675
dec eax
inc dword [esp + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x4f4675
cmp dword [esp + 0x2c], 4
je 0x4f48a3
mov eax, dword [esp + 0x18]
inc dword [esp + 0x2c]
jmp 0x4f4675
call fcn.004ae740
test eax, eax
js 0x4f4b0d
mov ecx, eax
and ecx, 0x7f800000
cmp ecx, 0x1800000
jne 0x4f4b0d
and eax, 0x7fffff
cmp eax, 0x6c
jne 0x4f4b0d
call fcn.004ae7e0
mov esi, dword [esp + 0x24]
push esi
push 2
push dword [esp + 0x30]
call fcn.0052b4d0
inc esi
add esp, 0xc
mov dword [esp + 0x24], esi
test eax, eax
je 0x4f4b0d
mov eax, dword [esp + 0x18]
jmp 0x4f4675
cmp ebp, 1
jle 0x4f486f
mov eax, dword [esp + 0x34]
push dword [edi + 0x14]
push dword [eax + 0xc]
call fcn.004a76f0
add esp, 8
test eax, eax
je 0x4f4b0d
push dword [esp + 0x20]
push dword [edi + 0x14]
call fcn.004a76f0
add esp, 8
test eax, eax
je 0x4f4b0d
push ebp
push 3
push dword [esp + 0x30]
call fcn.0052b4d0
add esp, 0xc
test eax, eax
je 0x4f4b0d
mov esi, dword [esp + 0x40]
jmp 0x4f48c6
mov ebx, dword [esp + 0x1c]
xor esi, esi
jmp 0x4f462d
push 0
push 3
push dword [esp + 0x30]
call fcn.0052b4d0
add esp, 0xc
test eax, eax
je 0x4f4b0d
mov ebx, dword [esp + 0x1c]
inc ebp
cmp ebp, dword [esp + 0x10]
jl 0x4f4630
push dword [edi + 0x24]
push dword [edi + 0x20]
call fcn.004a7520
add esp, 8
test eax, eax
jns 0x4f48f3
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
call fcn.004a7f40
mov esi, dword [esp + 0x20]
push eax
push dword [edi + 0x20]
push esi
call fcn.00505db0
add esp, 0xc
test eax, eax
je 0x4f4b0d
call fcn.004a7f40
mov ebp, dword [esp + 0x30]
push eax
push dword [edi + 0x24]
push ebp
call fcn.00505db0
add esp, 0xc
test eax, eax
je 0x4f4b0d
mov ebx, dword [esp + 0x14]
push ebx
push ebp
push esi
push dword [esp + 0x44]
call fcn.00534440
add esp, 0x10
test eax, eax
je 0x4f4b0d
mov ebp, dword [esp + 0x1c]
mov esi, 2
cmp dword [esp + 0x10], esi
jle 0x4f49af
nop dword [eax]
lea eax, [esi - 2]
push eax
push ebp
call fcn.004a6490
mov ebx, eax
call fcn.004a7f40
push eax
push dword [ebx]
push dword [ebx + 4]
call fcn.00505db0
add esp, 0x14
test eax, eax
je 0x4f4b0d
push dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
push dword [ebx + 4]
push eax
push eax
call fcn.00534440
add esp, 0x10
test eax, eax
je 0x4f4b0d
inc esi
cmp esi, dword [esp + 0x10]
jl 0x4f4960
mov ebx, dword [esp + 0x14]
call fcn.004a7b70
mov esi, eax
test esi, esi
je 0x4f4b0d
push 4
push dword [esp + 0x3c]
push esi
call fcn.004a7f50
push ebx
push esi
push dword [edi + 0x18]
push dword [edi + 0x1c]
call fcn.005353d0
add esp, 0x1c
push esi
test eax, eax
je 0x4f4b05
call fcn.004a7840
add esp, 4
call fcn.004a7b70
mov ebx, eax
test ebx, ebx
je 0x4f4b0d
push 4
push dword [edi + 0x1c]
push ebx
call fcn.004a7f50
mov esi, dword [esp + 0x20]
push esi
push dword [esp + 0x30]
push ebx
push dword [edi + 0x28]
push 0
call fcn.00505fd0
add esp, 0x20
test eax, eax
je 0x4f4b04
push esi
push dword [esp + 0x34]
push ebx
push dword [edi + 0x2c]
push 0
call fcn.00505fd0
add esp, 0x14
test eax, eax
je 0x4f4b04
mov esi, 2
cmp dword [esp + 0x10], esi
jle 0x4f4a7d
nop word [eax + eax]
lea eax, [esi - 2]
push eax
push ebp
call fcn.004a6490
push dword [esp + 0x1c]
mov eax, dword [eax + 4]
push eax
push ebx
push eax
push 0
call fcn.00505fd0
add esp, 0x1c
test eax, eax
je 0x4f4b04
inc esi
cmp esi, dword [esp + 0x10]
jl 0x4f4a50
push ebx
call fcn.004a7840
add esp, 4
call fcn.004a7b70
mov ebx, eax
test ebx, ebx
je 0x4f4b0d
push 4
push dword [edi + 0x20]
push ebx
call fcn.004a7f50
push dword [esp + 0x20]
push ebx
push dword [edi + 0x24]
push dword [edi + 0x30]
call fcn.005353d0
add esp, 0x1c
test eax, eax
je 0x4f4b04
mov edi, 2
cmp dword [esp + 0x10], edi
jle 0x4f4af4
nop
lea eax, [edi - 2]
push eax
push ebp
call fcn.004a6490
mov esi, eax
push 4
push dword [esi]
push ebx
call fcn.004a7f50
push dword [esp + 0x28]
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.005353d0
add esp, 0x24
test eax, eax
je 0x4f4b04
inc edi
cmp edi, dword [esp + 0x10]
jl 0x4f4ac0
push ebx
call fcn.004a7840
add esp, 4
mov esi, 1
jmp 0x4f4b63
push ebx
call fcn.004a7840
add esp, 4
call fcn.004ade90
push str.rsa_multiprime_keygen
push 0x19f
push str.crypto_rsa_rsa_gen.c
call fcn.004adf90
push 0
push 0x80003
push 4
call fcn.004ae040
add esp, 0x18
xor esi, esi
jmp 0x4f4b63
xor esi, esi
call fcn.004ade90
push str.rsa_multiprime_keygen
push 0x66
push str.crypto_rsa_rsa_gen.c
call fcn.004adf90
push esi
push 0xa5
push 4
call fcn.004ae040
add esp, 0x18
mov ebx, dword [esp + 0x14]
push ebx
call fcn.004ffb60
push ebx
call fcn.004ffbd0
mov ecx, dword [esp + 0x60]
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045bfb6
add esp, 0x4c
ret