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

Disassembly:
mov eax, 0x64
call fcn.10228380
mov eax, dword [0x1033b254]
xor eax, esp
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
xor ebx, ebx
push esi
xor esi, esi
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x78], 0x200
push edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x40], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], 0xffffffff
jge 0x1017d180
call sym.libcrypto_3.dll_ERR_new
push str.rsa_multiprime_keygen
push 0x113
push str.crypto_rsa_rsa_gen.c
call sym.libcrypto_3.dll_ERR_set_debug
push ebx
push 0x78
jmp 0x1017dabe
test ecx, ecx
jne 0x1017d1a6
call sym.libcrypto_3.dll_ERR_new
push str.rsa_multiprime_keygen
push 0x117
push str.crypto_rsa_rsa_gen.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x65
jmp 0x1017dabe
push ecx
call fcn.101879a0
add esp, 4
test eax, eax
jne 0x1017d1d8
call sym.libcrypto_3.dll_ERR_new
push str.rsa_multiprime_keygen
push 0x11c
push str.crypto_rsa_rsa_gen.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0xb2
jmp 0x1017dabe
cmp ebp, 2
jl 0x1017da9e
push dword [esp + 0x7c]
call fcn.1017fe20
add esp, 4
cmp ebp, eax
jg 0x1017da9e
call sym.libcrypto_3.dll_OPENSSL_sk_new_null
mov dword [esp + 0x18], eax
test eax, eax
je 0x1017dac8
call sym.libcrypto_3.dll_OPENSSL_sk_new_null
mov dword [esp + 0x34], eax
test eax, eax
je 0x1017da1d
call sym.libcrypto_3.dll_OPENSSL_sk_new_null
mov dword [esp + 0x30], eax
test eax, eax
je 0x1017da1d
push dword [edi + 4]
call sym.libcrypto_3.dll_BN_CTX_new_ex
mov ebx, eax
add esp, 4
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x1017da1d
push ebx
call sym.libcrypto_3.dll_BN_CTX_start
push ebx
call sym.libcrypto_3.dll_BN_CTX_get
push ebx
mov dword [esp + 0x54], eax
call sym.libcrypto_3.dll_BN_CTX_get
push ebx
mov dword [esp + 0x2c], eax
call sym.libcrypto_3.dll_BN_CTX_get
add esp, 0x10
mov dword [esp + 0x44], eax
test eax, eax
je 0x1017da1d
mov eax, dword [esp + 0x7c]
mov ebx, ebp
cdq
xor ecx, ecx
idiv ebx
mov ebp, edx
mov edx, eax
movd xmm0, edx
pshufd xmm3, xmm0, 0
movd xmm0, ebp
pshufd xmm5, xmm0, 0
cmp ebx, 0x10
jb 0x1017d37b
movaps xmm4, xmmword [0x102876f0]
mov eax, ebx
and eax, reloc.WS2_32.dll_ntohs
jns 0x1017d2af
dec eax
or eax, 0xfffffff0
inc eax
movaps xmm2, xmmword [0x102dd100]
sub ebx, eax
paddd xmm2, xmm3
nop dword [eax]
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 + 0x5c], 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 + 0x6c], 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 + 0x7c], 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 + 0x8c], xmm0
add ecx, 0x10
cmp ecx, ebx
jl 0x1017d2c0
mov ebx, dword [esp + 0x14]
cmp ecx, ebx
jge 0x1017d39a
mov esi, dword [esp + 0x14]
cmp ecx, ebp
lea eax, [edx + 1]
cmovge eax, edx
mov dword [esp + ecx*4 + 0x5c], eax
inc ecx
cmp ecx, esi
jl 0x1017d383
mov ebx, dword [esp + 0x14]
xor esi, esi
inc dword [edi + 0x78]
cmp dword [edi + 0x14], 0
jne 0x1017d3b3
call sym.libcrypto_3.dll_BN_new
mov dword [edi + 0x14], eax
test eax, eax
je 0x1017da19
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x1017d3ca
call sym.libcrypto_3.dll_BN_secure_new
mov dword [edi + 0x1c], eax
test eax, eax
je 0x1017da19
push 4
push eax
call sym.libcrypto_3.dll_BN_set_flags
add esp, 8
cmp dword [edi + 0x18], 0
jne 0x1017d3eb
call sym.libcrypto_3.dll_BN_new
mov dword [edi + 0x18], eax
test eax, eax
je 0x1017da19
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x1017d402
call sym.libcrypto_3.dll_BN_secure_new
mov dword [edi + 0x20], eax
test eax, eax
je 0x1017da19
push 4
push eax
call sym.libcrypto_3.dll_BN_set_flags
mov eax, dword [edi + 0x24]
add esp, 8
test eax, eax
jne 0x1017d424
call sym.libcrypto_3.dll_BN_secure_new
mov dword [edi + 0x24], eax
test eax, eax
je 0x1017da19
push 4
push eax
call sym.libcrypto_3.dll_BN_set_flags
add esp, 8
cmp ebx, 2
jle 0x1017d4a6
lea eax, [ebx - 2]
mov dword [edi + 8], 1
push eax
push 0
call sym.libcrypto_3.dll_OPENSSL_sk_new_reserve
mov ebp, eax
add esp, 8
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x1017da19
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x1017d46c
push fcn.1017fe60
push eax
call sym.libcrypto_3.dll_OPENSSL_sk_pop_free
add esp, 8
mov ebx, 2
mov dword [edi + 0x4c], ebp
cmp dword [esp + 0x14], ebx
jle 0x1017d4a2
nop word [eax + eax]
call fcn.1017fec0
mov dword [esp + 0x40], eax
test eax, eax
je 0x1017da19
push eax
push ebp
call sym.libcrypto_3.dll_OPENSSL_sk_push
inc ebx
add esp, 8
cmp ebx, dword [esp + 0x14]
jl 0x1017d480
mov ebx, dword [esp + 0x14]
push dword [esp + 0x4c]
push dword [edi + 0x18]
call sym.libcrypto_3.dll_BN_copy
add esp, 8
test eax, eax
je 0x1017da19
xor ebp, ebp
test ebx, ebx
jle 0x1017d7f7
nop word [eax + eax]
mov dword [esp + 0x54], esi
mov dword [esp + 0x3c], 0
test ebp, ebp
jne 0x1017d4e5
mov ebx, dword [edi + 0x20]
jmp 0x1017d505
cmp ebp, 1
jne 0x1017d4ef
mov ebx, dword [edi + 0x24]
jmp 0x1017d505
lea eax, [ebp - 2]
push eax
push dword [esp + 0x24]
call sym.libcrypto_3.dll_OPENSSL_sk_value
add esp, 8
mov dword [esp + 0x40], eax
mov ebx, dword [eax]
push 4
push ebx
call sym.libcrypto_3.dll_BN_set_flags
mov ecx, dword [esp + ebp*4 + 0x64]
add esp, 8
mov dword [esp + 0x28], ecx
nop dword [eax + eax]
push dword [esp + 0x10]
push dword [esp + 0x30]
push 0
push 0
push 0
push ecx
push ebx
call sym.libcrypto_3.dll_BN_generate_prime_ex2
add esp, 0x1c
test eax, eax
je 0x1017da19
xor esi, esi
cmp esi, ebp
jge 0x1017d580
test esi, esi
jne 0x1017d54f
mov eax, dword [edi + 0x20]
jmp 0x1017d56b
cmp esi, 1
jne 0x1017d559
mov eax, dword [edi + 0x24]
jmp 0x1017d56b
lea eax, [esi - 2]
push eax
push dword [esp + 0x24]
call sym.libcrypto_3.dll_OPENSSL_sk_value
add esp, 8
mov eax, dword [eax]
push eax
push ebx
call sym.libcrypto_3.dll_BN_cmp
add esp, 8
test eax, eax
je 0x1017d6f1
inc esi
jmp 0x1017d542
call sym.libcrypto_3.dll_BN_value_one
mov esi, dword [esp + 0x44]
push eax
push ebx
push esi
call sym.libcrypto_3.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1017da19
call sym.libcrypto_3.dll_ERR_set_mark
push 4
push esi
call sym.libcrypto_3.dll_BN_set_flags
push dword [esp + 0x18]
push dword [edi + 0x18]
push esi
push dword [esp + 0x30]
call sym.libcrypto_3.dll_BN_mod_inverse
add esp, 0x18
test eax, eax
je 0x1017d69d
mov esi, dword [esp + ebp*4 + 0x5c]
add esi, dword [esp + 0x54]
mov dword [esp + 0x58], esi
cmp ebp, 1
jne 0x1017d5e2
push dword [esp + 0x10]
push dword [edi + 0x24]
push dword [edi + 0x20]
jmp 0x1017d5f2
test ebp, ebp
je 0x1017d7a2
push dword [esp + 0x10]
push ebx
push dword [edi + 0x14]
push dword [esp + 0x28]
call sym.libcrypto_3.dll_BN_mul
add esp, 0x10
test eax, eax
je 0x1017da19
lea eax, [esi - 4]
mov esi, dword [esp + 0x44]
push eax
push dword [esp + 0x20]
push esi
call sym.libcrypto_3.dll_BN_rshift
add esp, 0xc
test eax, eax
je 0x1017da19
push esi
call sym.libcrypto_3.dll_BN_get_word
mov esi, eax
add esp, 4
cmp esi, 9
jb 0x1017d63c
cmp esi, 0xf
jbe 0x1017d6fa
push dword [esp + 0x24]
push 2
push dword [esp + 0x34]
call sym.libcrypto_3.dll_BN_GENCB_call
inc dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x1017da19
cmp dword [esp + 0x14], 4
jle 0x1017d682
mov ecx, dword [esp + 0x28]
cmp esi, 9
mov esi, dword [esp + 0x3c]
sbb eax, eax
and eax, 2
dec eax
add ecx, eax
inc esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], esi
jmp 0x1017d520
mov esi, dword [esp + 0x3c]
cmp esi, 4
je 0x1017d77d
mov ecx, dword [esp + 0x28]
inc esi
mov dword [esp + 0x3c], esi
jmp 0x1017d520
call sym.libcrypto_3.dll_ERR_peek_last_error
test eax, eax
js 0x1017da19
mov ecx, eax
and ecx, 0x7f800000
cmp ecx, 0x1800000
jne 0x1017da19
and eax, 0x7fffff
cmp eax, 0x6c
jne 0x1017da19
call sym.libcrypto_3.dll_ERR_pop_to_mark
mov esi, dword [esp + 0x24]
push esi
push 2
push dword [esp + 0x34]
call sym.libcrypto_3.dll_BN_GENCB_call
inc esi
add esp, 0xc
mov dword [esp + 0x24], esi
test eax, eax
je 0x1017da19
mov ecx, dword [esp + 0x28]
jmp 0x1017d520
cmp ebp, 1
jle 0x1017d719
mov eax, dword [esp + 0x40]
push dword [edi + 0x14]
push dword [eax + 0xc]
call sym.libcrypto_3.dll_BN_copy
add esp, 8
test eax, eax
je 0x1017da19
push dword [esp + 0x1c]
push dword [edi + 0x14]
call sym.libcrypto_3.dll_BN_copy
add esp, 8
test eax, eax
je 0x1017da19
push ebp
push 3
push dword [esp + 0x34]
call sym.libcrypto_3.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1017da19
push ebx
call sym.libcrypto_3.dll_BN_dup
mov esi, eax
add esp, 4
test esi, esi
je 0x1017da19
mov ebx, dword [esp + 0x18]
push ebx
call sym.libcrypto_3.dll_OPENSSL_sk_num
push eax
push esi
push ebx
call sym.libcrypto_3.dll_OPENSSL_sk_insert
add esp, 0x10
test eax, eax
je 0x1017da19
mov esi, dword [esp + 0x58]
jmp 0x1017d7ec
push sym.libcrypto_3.dll_BN_clear_free
push dword [esp + 0x1c]
or ebp, 0xffffffff
xor esi, esi
call sym.libcrypto_3.dll_OPENSSL_sk_pop_free
add esp, 8
call sym.libcrypto_3.dll_OPENSSL_sk_new_null
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jmp 0x1017d7e6
push 0
push 3
push dword [esp + 0x34]
call sym.libcrypto_3.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1017da19
push ebx
call sym.libcrypto_3.dll_BN_dup
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1017da19
push dword [esp + 0x18]
call sym.libcrypto_3.dll_OPENSSL_sk_num
push eax
push ebx
push dword [esp + 0x24]
call sym.libcrypto_3.dll_OPENSSL_sk_insert
add esp, 0x10
test eax, eax
je 0x1017da19
inc ebp
cmp ebp, dword [esp + 0x14]
jl 0x1017d4d0
push dword [edi + 0x24]
push dword [edi + 0x20]
call sym.libcrypto_3.dll_BN_cmp
add esp, 8
test eax, eax
jns 0x1017d835
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
mov ebx, dword [esp + 0x18]
push 0
push ebx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
call sym.libcrypto_3.dll_OPENSSL_sk_delete
push 1
push eax
push ebx
call sym.libcrypto_3.dll_OPENSSL_sk_insert
add esp, 0x14
test eax, eax
je 0x1017da19
call sym.libcrypto_3.dll_BN_value_one
mov ebp, dword [esp + 0x1c]
push eax
push dword [edi + 0x20]
push ebp
call sym.libcrypto_3.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1017da19
call sym.libcrypto_3.dll_BN_value_one
mov esi, dword [esp + 0x44]
push eax
push dword [edi + 0x24]
push esi
call sym.libcrypto_3.dll_BN_sub
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x1017da1d
push ebx
push esi
push ebp
push dword [esp + 0x54]
call sym.libcrypto_3.dll_BN_mul
add esp, 0x10
test eax, eax
je 0x1017da1d
mov ebp, dword [esp + 0x20]
mov esi, 2
cmp dword [esp + 0x14], esi
jle 0x1017d8ef
nop dword [eax + eax]
lea eax, [esi - 2]
push eax
push ebp
call sym.libcrypto_3.dll_OPENSSL_sk_value
mov ebx, eax
call sym.libcrypto_3.dll_BN_value_one
push eax
push dword [ebx]
push dword [ebx + 4]
call sym.libcrypto_3.dll_BN_sub
add esp, 0x14
test eax, eax
je 0x1017da19
push dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
push dword [ebx + 4]
push eax
push eax
call sym.libcrypto_3.dll_BN_mul
add esp, 0x10
test eax, eax
je 0x1017da19
inc esi
cmp esi, dword [esp + 0x14]
jl 0x1017d8a0
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x48]
push 4
push esi
call sym.libcrypto_3.dll_BN_set_flags
push ebx
push esi
push dword [edi + 0x18]
push dword [edi + 0x1c]
call sym.libcrypto_3.dll_BN_mod_inverse
add esp, 0x18
test eax, eax
je 0x1017da1d
push dword [esp + 0x30]
mov esi, dword [esp + 0x18]
push dword [esp + 0x38]
push dword [esp + 0x20]
push dword [esp + 0x58]
push esi
push dword [esp + 0x90]
push edi
call fcn.1017c880
add esp, 0x1c
test eax, eax
je 0x1017da1d
mov ebx, dword [esp + 0x18]
push 0
push ebx
call sym.libcrypto_3.dll_OPENSSL_sk_delete
push eax
call sym.libcrypto_3.dll_BN_clear_free
push 0
push ebx
call sym.libcrypto_3.dll_OPENSSL_sk_delete
push eax
call sym.libcrypto_3.dll_BN_clear_free
mov ebx, dword [esp + 0x4c]
push 0
push ebx
call sym.libcrypto_3.dll_OPENSSL_sk_delete
push 0
push ebx
mov dword [edi + 0x28], eax
call sym.libcrypto_3.dll_OPENSSL_sk_delete
push 0
push dword [esp + 0x5c]
mov dword [edi + 0x2c], eax
call sym.libcrypto_3.dll_OPENSSL_sk_delete
mov ebx, 2
mov dword [edi + 0x30], eax
add esp, 0x30
cmp esi, ebx
jle 0x1017da11
lea eax, [ebx - 2]
push eax
push ebp
call sym.libcrypto_3.dll_OPENSSL_sk_value
push 0
push dword [esp + 0x24]
mov ebp, eax
call sym.libcrypto_3.dll_OPENSSL_sk_delete
mov esi, eax
push esi
push dword [ebp]
call sym.libcrypto_3.dll_BN_copy
push esi
call sym.libcrypto_3.dll_BN_clear_free
push 0
push dword [esp + 0x54]
call sym.libcrypto_3.dll_OPENSSL_sk_delete
mov edi, eax
push edi
push dword [ebp + 4]
call sym.libcrypto_3.dll_BN_copy
push edi
mov esi, eax
call sym.libcrypto_3.dll_BN_clear_free
add esp, 0x30
test esi, esi
je 0x1017da19
push 0
push dword [esp + 0x34]
call sym.libcrypto_3.dll_OPENSSL_sk_delete
mov edi, eax
push edi
push dword [ebp + 8]
call sym.libcrypto_3.dll_BN_copy
push edi
mov esi, eax
call sym.libcrypto_3.dll_BN_clear_free
add esp, 0x14
test esi, esi
je 0x1017da19
mov ebp, dword [esp + 0x20]
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x1017d994
mov dword [esp + 0x38], 1
mov ebx, dword [esp + 0x10]
push dword [esp + 0x18]
call sym.libcrypto_3.dll_OPENSSL_sk_free
push dword [esp + 0x38]
call sym.libcrypto_3.dll_OPENSSL_sk_free
push dword [esp + 0x38]
call sym.libcrypto_3.dll_OPENSSL_sk_free
mov esi, dword [esp + 0x44]
add esp, 0xc
cmp esi, 0xffffffff
jne 0x1017da7a
call sym.libcrypto_3.dll_ERR_new
push str.rsa_multiprime_keygen
push 0x253
push str.crypto_rsa_rsa_gen.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x80003
push 4
call sym.libcrypto_3.dll_ERR_set_error
mov dword [esp + 0x50], 0
add esp, 0x18
mov esi, dword [esp + 0x38]
push ebx
call sym.libcrypto_3.dll_BN_CTX_end
push ebx
call sym.libcrypto_3.dll_BN_CTX_free
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1022836f
add esp, 0x64
ret
call sym.libcrypto_3.dll_ERR_new
push str.rsa_multiprime_keygen
push 0x121
push str.crypto_rsa_rsa_gen.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0xa5
push 4
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
mov ecx, dword [esp + 0x70]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1022836f
add esp, 0x64
ret