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

Disassembly:
mov eax, 0xa8
call fcn.10228380
mov eax, dword [0x1033b254]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
push ebx
push ebp
mov ebp, dword [esp + 0xcc]
xor ebx, ebx
push esi
mov dword [esp + 0x2c], eax
xor esi, esi
xor eax, eax
mov dword [esp + 0x14], ecx
push edi
mov edi, dword [esp + 0xd0]
mov dword [esp + 0x44], edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x64], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
cmp dword [esp + 0xc4], eax
jne 0x1012b4c9
mov eax, dword [ecx + 0x28]
mov dword [ebp], ebx
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0x40], eax
test ecx, ecx
jne 0x1012b520
test edi, edi
jne 0x1012b4f1
cmp dword [esp + 0xcc], 0x800
sbb edi, edi
and edi, 0xffffffa0
add edi, 0x100
cmp edi, 0xa0
jne 0x1012b500
mov ecx, 0x10284b98
jmp 0x1012b520
cmp edi, 0xe0
jne 0x1012b50f
mov ecx, str.SHA_224
jmp 0x1012b520
cmp edi, 0x100
jne 0x1012bf35
mov ecx, str.SHA_256
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x30]
push eax
push ecx
push edx
call sym.libcrypto_3.dll_EVP_MD_fetch
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x28], ebx
mov esi, ebx
test ebx, ebx
je 0x1012beb3
push ebx
call sym.libcrypto_3.dll_EVP_MD_get_size
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
jle 0x1012beb3
mov ecx, dword [esp + 0xcc]
lea ebp, [eax*8]
test edi, edi
cmovne ebp, edi
mov ebx, ebp
shr ebx, 3
cmp ecx, ebp
jbe 0x1012bea5
mov eax, dword [esp + 0xc8]
cmp eax, 1
jne 0x1012b5ce
cmp ecx, 0x400
jne 0x1012b595
cmp ebp, 0xa0
jne 0x1012b5ad
jmp 0x1012b60e
cmp ecx, 0x800
jne 0x1012b5ad
cmp ebp, 0xe0
je 0x1012b60e
cmp ebp, 0x100
je 0x1012b60e
call sym.libcrypto_3.dll_ERR_new
push 0x102bed10
push 0x4d
push str.crypto_ffc_ffc_params_generate.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x7f
push 5
jmp 0x1012be9d
test eax, eax
jne 0x1012bea5
cmp ecx, 0xc00
jb 0x1012b5e6
cmp ebp, 0x100
jae 0x1012b60e
cmp ecx, 0x800
jb 0x1012b5f6
cmp ebp, 0xe0
jae 0x1012b60e
cmp ecx, 0x400
jb 0x1012be81
cmp ebp, 0xa0
jb 0x1012be81
call sym.libcrypto_3.dll_EVP_MD_CTX_new
mov edi, dword [esp + 0x28]
mov esi, edi
mov dword [esp + 0x70], eax
test eax, eax
je 0x1012beb3
push dword [esp + 0x44]
call sym.libcrypto_3.dll_BN_CTX_new_ex
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x1012b6cd
mov esi, eax
push esi
call sym.libcrypto_3.dll_BN_CTX_start
push esi
call sym.libcrypto_3.dll_BN_CTX_get
push esi
mov dword [esp + 0x54], eax
call sym.libcrypto_3.dll_BN_CTX_get
push esi
mov dword [esp + 0x54], eax
call sym.libcrypto_3.dll_BN_CTX_get
push esi
mov dword [esp + 0x70], eax
call sym.libcrypto_3.dll_BN_CTX_get
push esi
mov dword [esp + 0x68], eax
call sym.libcrypto_3.dll_BN_CTX_get
add esp, 0x18
mov dword [esp + 0x54], eax
mov esi, edi
test eax, eax
je 0x1012b6cd
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
test eax, eax
cmove eax, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x10]
test eax, eax
cmovne esi, eax
cmp dword [esp + 0xc4], 0
mov dword [esp + 0x24], esi
je 0x1012b6d6
mov esi, dword [esp + 0x18]
xor ecx, ecx
cmp dword [esi + 4], ecx
sete cl
xor eax, eax
cmp dword [esi], eax
sete al
cmp eax, ecx
je 0x1012b71e
mov eax, dword [esp + 0x1c]
mov esi, edi
mov dword [eax], 0x800
mov ebx, dword [esp + 0x10]
jmp 0x1012beb5
mov edx, dword [esp + 0x40]
test dl, 1
je 0x1012b6fe
test esi, esi
je 0x1012b6e9
cmp dword [ecx + 0x18], 0
jge 0x1012b6fe
mov eax, dword [esp + 0x1c]
mov esi, edi
mov ebx, dword [esp + 0x10]
mov dword [eax], 0x200
jmp 0x1012beb5
test dl, 2
je 0x1012b724
cmp dword [ecx + 8], 0
jne 0x1012b724
mov eax, dword [esp + 0x1c]
mov esi, edi
mov ebx, dword [esp + 0x10]
mov dword [eax], 0x400
jmp 0x1012beb5
mov edx, dword [esp + 0x40]
mov ecx, esi
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
test eax, eax
je 0x1012b747
test dl, 1
jne 0x1012b747
mov ebx, dword [ecx + 4]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x2c], ebx
jmp 0x1012bb03
mov esi, dword [esp + 0x10]
push esi
call sym.libcrypto_3.dll_BN_CTX_get
push esi
mov dword [esp + 0x28], eax
call sym.libcrypto_3.dll_BN_CTX_get
add esp, 8
mov dword [esp + 0x2c], eax
mov esi, edi
test eax, eax
je 0x1012b6cd
mov ecx, dword [esp + 0x34]
lea eax, [ecx*8]
cmp eax, ebp
jae 0x1012b78e
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov dword [eax], 0x40000
jmp 0x1012beb5
push 0x283
push str.crypto_ffc_ffc_params_generate.c
push ecx
call sym.libcrypto_3.dll_CRYPTO_malloc
mov ebp, dword [esp + 0x34]
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
mov esi, ebp
test edi, edi
je 0x1012b7cc
cmp dword [esp + 0x24], 0
jne 0x1012b7f7
cmp dword [esp + 0xc4], 0
jne 0x1012b7d5
mov eax, dword [esp + 0x1c]
mov dword [eax], 0x200
mov ebx, dword [esp + 0x10]
jmp 0x1012beb7
push 0x28e
push str.crypto_ffc_ffc_params_generate.c
push dword [esp + 0x3c]
call sym.libcrypto_3.dll_CRYPTO_malloc
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x24], ecx
mov esi, ebp
test ecx, ecx
je 0x1012b7cc
cmp dword [esp + 0xc4], 0
mov edx, dword [esp + 0xcc]
mov edi, dword [esp + 0x18]
lea ecx, [edx*4 - 1]
mov dword [esp + 0x58], ecx
jne 0x1012b83b
mov eax, dword [edi + 0x18]
cmp eax, ecx
jle 0x1012b837
mov eax, dword [esp + 0x1c]
mov dword [eax], 0x1000
mov esi, ebp
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x1012beb7
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x38]
mov esi, ebp
lea ecx, [eax*8]
lea eax, [edx - 1]
xor edx, edx
div ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xcc]
dec eax
push eax
call sym.libcrypto_3.dll_BN_value_one
push eax
push dword [esp + 0x58]
call sym.libcrypto_3.dll_BN_lshift
add esp, 0xc
test eax, eax
je 0x1012b82a
mov eax, dword [edi + 0x10]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
nop dword [eax]
push ebp
call sym.libcrypto_3.dll_EVP_MD_get_size
push dword [esp + 0x14]
mov edi, eax
call fcn.10078bd0
push dword [esp + 0x44]
mov dword [esp + 0x5c], eax
push 0
push dword [esp + 0x40]
call sym.libcrypto_3.dll_BN_GENCB_call
add esp, 0x14
test eax, eax
je 0x1012b828
nop
inc dword [esp + 0x3c]
cmp esi, dword [esp + 0x28]
je 0x1012b8d5
push 0
push dword [esp + 0x38]
push esi
push dword [esp + 0x5c]
call sym.libcrypto_3.dll_RAND_bytes_ex
add esp, 0x10
test eax, eax
jle 0x1012b828
push 0
push ebp
push 0
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x44]
push esi
call sym.libcrypto_3.dll_EVP_Digest
add esp, 0x18
test eax, eax
je 0x1012b828
lea esi, [esp + 0x74]
cmp edi, ebx
jle 0x1012b907
mov eax, edi
sub eax, ebx
add esi, eax
cmp edi, ebx
jge 0x1012b91f
mov eax, ebx
sub eax, edi
push eax
lea eax, [esp + 0x78]
add eax, edi
push 0
push eax
call fcn.1022a0e0
add esp, 0xc
push dword [esp + 0x2c]
or byte [esi], 0x80
or byte [esi + ebx - 1], 1
push ebx
push esi
call sym.libcrypto_3.dll_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x1012b828
push dword [esp + 0x30]
mov esi, dword [esp + 0x30]
push dword [esp + 0x14]
push esi
call sym.libcrypto_3.dll_BN_check_prime
add esp, 0xc
test eax, eax
jg 0x1012b994
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x28]
je 0x1012ba6d
test eax, eax
jne 0x1012b828
push dword [esp + 0x3c]
push eax
push dword [esp + 0x38]
call sym.libcrypto_3.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
jne 0x1012b8b0
mov ebx, dword [esp + 0x10]
mov esi, ebp
mov edi, dword [esp + 0x14]
jmp 0x1012beb7
cmp dword [esp + 0xc4], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
jne 0x1012b9be
mov eax, dword [esp + 0x18]
push dword [eax + 4]
push esi
call sym.libcrypto_3.dll_BN_cmp
add esp, 8
test eax, eax
jne 0x1012ba83
mov esi, dword [esp + 0x30]
push 0
push 2
push esi
call sym.libcrypto_3.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1012b828
push 0
push 3
push esi
call sym.libcrypto_3.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1012b828
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x24]
push edi
push esi
push dword [esp + 0x1c]
call fcn.10229b60
push dword [esp + 0x28]
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x44]
push dword [esp + 0xe4]
push dword [esp + 0x3c]
push dword [esp + 0x4c]
push edi
push dword [esp + 0x3c]
mov edi, dword [esp + 0x3c]
push dword [esp + 0x64]
push dword [esp + 0x88]
push ebp
push edi
call fcn.1012a610
add esp, 0x3c
test eax, eax
jg 0x1012ba9c
js 0x1012b828
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
cmp esi, eax
jne 0x1012b880
mov eax, dword [esp + 0x1c]
mov ebx, edi
mov edi, dword [esp + 0x14]
mov esi, ebp
mov dword [eax], 1
jmp 0x1012beb7
mov eax, dword [esp + 0x1c]
mov esi, ebp
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
or dword [eax], 0x10
jmp 0x1012beb7
mov eax, dword [esp + 0x1c]
mov esi, ebp
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [eax], 0x4000
jmp 0x1012beb7
push 1
push 2
push dword [esp + 0x38]
mov esi, ebp
call sym.libcrypto_3.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1012b82a
cmp dword [esp + 0xc4], 0
jne 0x1012baf1
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x60], eax
jne 0x1012b828
mov eax, dword [esp + 0x18]
push dword [eax]
push dword [esp + 0x24]
call sym.libcrypto_3.dll_BN_cmp
add esp, 8
test eax, eax
je 0x1012baf1
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x1012beb7
mov eax, dword [esp + 0x40]
and al, 3
cmp al, 1
je 0x1012be4b
mov ebx, dword [esp + 0x2c]
call sym.libcrypto_3.dll_BN_MONT_CTX_new
mov dword [esp + 0x4c], eax
mov esi, ebp
test eax, eax
je 0x1012b82a
push edi
push dword [esp + 0x24]
push eax
call sym.libcrypto_3.dll_BN_MONT_CTX_set
add esp, 0xc
test eax, eax
je 0x1012b82a
test byte [esp + 0x40], 2
je 0x1012bb5c
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x58]
push dword [eax + 8]
push ebx
push dword [esp + 0x30]
push dword [esp + 0x60]
push edi
call fcn.1012c3c0
add esp, 0x1c
test eax, eax
je 0x1012b82a
call sym.libcrypto_3.dll_BN_value_one
mov esi, dword [esp + 0x44]
push eax
push dword [esp + 0x24]
push esi
call sym.libcrypto_3.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1012b828
push edi
push ebx
push esi
push 0
push dword [esp + 0x6c]
call sym.libcrypto_3.dll_BN_div
add esp, 0x14
test eax, eax
je 0x1012b828
mov edi, dword [esp + 0x24]
test edi, edi
je 0x1012bd46
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x50], eax
cmp eax, 0xffffffff
je 0x1012bd46
push ebp
mov dword [esp + 0x70], 1
mov dword [esp + 0x3c], 0
call sym.libcrypto_3.dll_EVP_MD_get_size
add esp, 4
mov dword [esp + 0x44], eax
test eax, eax
jle 0x1012bd2d
call sym.libcrypto_3.dll_EVP_MD_CTX_new
mov esi, eax
test esi, esi
je 0x1012bd2d
mov ebx, 1
nop dword [eax]
mov eax, dword [esp + 0x50]
mov byte [esp + 0x74], al
mov eax, ebx
push 0
sar eax, 8
push ebp
push esi
mov byte [esp + 0x81], al
mov byte [esp + 0x82], bl
call sym.libcrypto_3.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x1012bcdf
push dword [esp + 0x34]
push edi
push esi
call sym.libcrypto_3.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x1012bcdf
push 4
push str.ggenffc_validate_LN
push esi
call sym.libcrypto_3.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x1012bcdf
push 3
lea eax, [esp + 0x78]
push eax
push esi
call sym.libcrypto_3.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x1012bcdf
push 0
lea eax, [esp + 0x78]
push eax
push esi
call sym.libcrypto_3.dll_EVP_DigestFinal_ex
add esp, 0xc
test eax, eax
je 0x1012bcdf
push dword [esp + 0x54]
lea eax, [esp + 0x78]
push dword [esp + 0x48]
push eax
call sym.libcrypto_3.dll_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x1012bcdf
push dword [esp + 0x4c]
push dword [esp + 0x14]
push dword [esp + 0x28]
push dword [esp + 0x68]
push dword [esp + 0x64]
push dword [esp + 0x5c]
call sym.libcrypto_3.dll_BN_mod_exp_mont
add esp, 0x18
test eax, eax
je 0x1012bcdf
call sym.libcrypto_3.dll_BN_value_one
push eax
push dword [esp + 0x4c]
call sym.libcrypto_3.dll_BN_cmp
add esp, 8
test eax, eax
jg 0x1012bcd7
inc ebx
cmp ebx, 0xffff
jle 0x1012bbf0
jmp 0x1012bcdf
mov dword [esp + 0x38], 1
push esi
call sym.libcrypto_3.dll_EVP_MD_CTX_free
add esp, 4
cmp dword [esp + 0x38], 0
je 0x1012bd2d
cmp dword [esp + 0xc4], 0
jne 0x1012bd85
mov eax, dword [esp + 0x18]
push dword [eax + 8]
push dword [esp + 0x4c]
call sym.libcrypto_3.dll_BN_cmp
add esp, 8
test eax, eax
je 0x1012bd85
mov eax, dword [esp + 0x1c]
mov esi, ebp
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [eax], 0x8000
jmp 0x1012beb7
mov eax, dword [esp + 0x1c]
mov esi, ebp
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [eax], 0x400
jmp 0x1012beb7
cmp dword [esp + 0xc4], 0
je 0x1012bd89
lea eax, [esp + 0x68]
mov esi, ebp
push eax
push dword [esp + 0x48]
push dword [esp + 0x64]
push dword [esp + 0x2c]
push dword [esp + 0x64]
push dword [esp + 0x5c]
push dword [esp + 0x64]
push dword [esp + 0x2c]
call fcn.1012ace0
add esp, 0x20
test eax, eax
je 0x1012b82a
jmp 0x1012bd89
mov ebx, dword [esp + 0x2c]
push 1
push 3
push dword [esp + 0x38]
mov esi, ebp
call sym.libcrypto_3.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1012b82a
cmp dword [esp + 0xc4], 0
je 0x1012be4b
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
cmp dword [esp + 0x20], eax
je 0x1012bdd1
push eax
call sym.libcrypto_3.dll_BN_free
push dword [esp + 0x24]
call sym.libcrypto_3.dll_BN_dup
add esp, 8
mov dword [esi], eax
mov eax, dword [esi + 4]
cmp ebx, eax
je 0x1012bdea
push eax
call sym.libcrypto_3.dll_BN_free
push ebx
call sym.libcrypto_3.dll_BN_dup
add esp, 8
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
mov ebx, dword [esp + 0x48]
cmp ebx, eax
je 0x1012be07
push eax
call sym.libcrypto_3.dll_BN_free
push ebx
call sym.libcrypto_3.dll_BN_dup
add esp, 8
mov dword [esi + 8], eax
cmp dword [esi], 0
je 0x1012b828
cmp dword [esi + 4], 0
je 0x1012b828
cmp dword [esi + 8], 0
je 0x1012b828
push dword [esp + 0x60]
mov ebx, dword [esp + 0x1c]
mov esi, ebp
push dword [esp + 0x38]
push edi
push ebx
call fcn.1012a0c0
add esp, 0x10
test eax, eax
je 0x1012b82a
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x24], eax
test byte [esp + 0x40], 2
je 0x1012be6d
cmp dword [esp + 0x6c], 0
jne 0x1012be6d
mov ebx, dword [esp + 0x10]
mov esi, ebp
mov edi, dword [esp + 0x14]
mov dword [esp + 0x64], 2
jmp 0x1012beb7
mov ebx, dword [esp + 0x10]
mov esi, ebp
mov edi, dword [esp + 0x14]
mov dword [esp + 0x64], 1
jmp 0x1012beb7
call sym.libcrypto_3.dll_ERR_new
push 0x102bed10
push 0x57
push str.crypto_ffc_ffc_params_generate.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x72
push 0xa
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
mov dword [eax], 0x20000
xor ebx, ebx
xor edi, edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp ecx, dword [eax + 0x10]
je 0x1012bed7
push 0x31a
push str.crypto_ffc_ffc_params_generate.c
push ecx
call sym.libcrypto_3.dll_CRYPTO_free
add esp, 0xc
push 0x31b
push str.crypto_ffc_ffc_params_generate.c
push edi
call sym.libcrypto_3.dll_CRYPTO_free
add esp, 0xc
test ebx, ebx
je 0x1012bef7
push ebx
call sym.libcrypto_3.dll_BN_CTX_end
add esp, 4
push ebx
call sym.libcrypto_3.dll_BN_CTX_free
push dword [esp + 0x50]
call sym.libcrypto_3.dll_BN_MONT_CTX_free
push dword [esp + 0x78]
call sym.libcrypto_3.dll_EVP_MD_CTX_free
push esi
call sym.libcrypto_3.dll_EVP_MD_free
mov ecx, dword [esp + 0xc4]
add esp, 0x10
mov eax, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1022836f
add esp, 0xa8
ret
mov dword [ebp], 0x20
jmp 0x1012beb5