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

Disassembly:
mov eax, 0xc0
call fcn.100d6420
mov eax, dword [0x10151618]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
push ebx
push ebp
mov ebp, dword [esp + 0xe8]
push esi
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xf0]
push edi
xor ebx, ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0xfc]
mov edi, esi
lea eax, [esp + 0x74]
shr edi, 3
push eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x70], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 2
call sym.LIBEAY32.dll_EVP_MD_CTX_init
add esp, 4
cmp dword [esp + 0x18], ebx
jne 0x1003a54d
cmp esi, 0xa0
jne 0x1003a535
call sym.LIBEAY32.dll_EVP_sha1
jmp 0x1003a549
cmp esi, 0xe0
jne 0x1003a544
call sym.LIBEAY32.dll_EVP_sha224
jmp 0x1003a549
call sym.LIBEAY32.dll_EVP_sha256
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push ecx
call sym.LIBEAY32.dll_EVP_MD_size
mov ecx, dword [esp + 0x4c]
add esp, 4
cmp dword [ecx + 0xc], ebx
mov dword [esp + 0x30], eax
je 0x1003a575
cmp dword [ecx + 0x10], ebx
je 0x1003a575
cmp dword [esp + 0xec], ebx
jl 0x1003a5ee
mov esi, dword [esp + 0xe8]
cmp esi, ebx
jne 0x1003a589
mov esi, eax
mov dword [esp + 0xe8], esi
push 0x1be
push 0x100f86b0
push esi
call sym.LIBEAY32.dll_CRYPTO_malloc
add esp, 0xc
cmp ebp, ebx
mov dword [esp + 0x10], eax
je 0x1003a5aa
mov dword [esp + 0x2c], ebp
jmp 0x1003a5c1
push 0x1c3
push 0x100f86b0
push esi
call sym.LIBEAY32.dll_CRYPTO_malloc
add esp, 0xc
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x10], ebx
je 0x1003ad59
cmp dword [esp + 0x2c], ebx
je 0x1003ad48
mov eax, dword [esp + 0x50]
xor ebx, ebx
cmp eax, ebx
je 0x1003a5ee
mov edx, dword [esp + 0x10]
push esi
push eax
push edx
call fcn.100d73f0
add esp, 0xc
call sym.LIBEAY32.dll_BN_CTX_new
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x1003ad48
call sym.LIBEAY32.dll_BN_MONT_CTX_new
test eax, eax
mov dword [esp + 0x40], eax
je 0x1003ad48
mov esi, dword [esp + 0x14]
push esi
call sym.LIBEAY32.dll_BN_CTX_start
push esi
call sym.LIBEAY32.dll_BN_CTX_get
mov ebp, eax
push esi
mov dword [esp + 0x44], ebp
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x64], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x60], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x7c], eax
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x78], eax
call sym.LIBEAY32.dll_BN_CTX_get
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0xc]
add esp, 0x1c
test eax, eax
je 0x1003a6a1
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x1003a6a1
mov ebx, dword [esp + 0xec]
test ebx, ebx
mov esi, eax
mov dword [esp + 0x28], ecx
jl 0x1003aa9c
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call fcn.100d73f0
add esp, 0xc
jmp 0x1003aa9c
push esi
call sym.LIBEAY32.dll_BN_CTX_get
push esi
mov dword [esp + 0x78], eax
call sym.LIBEAY32.dll_BN_CTX_get
add esp, 8
test eax, eax
mov dword [esp + 0x28], eax
je 0x1003ad48
mov eax, dword [esp + 0xd8]
add eax, 0xffffffff
push eax
call sym.LIBEAY32.dll_BN_value_one
push eax
mov eax, dword [esp + 0x24]
push eax
call sym.LIBEAY32.dll_BN_lshift
add esp, 0xc
test eax, eax
je 0x1003ad48
jmp 0x1003a6f0
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0xe8]
push ecx
push 0
push edx
call sym.LIBEAY32.dll_BN_GENCB_call
add dword [esp + 0x50], 1
add esp, 0xc
test eax, eax
je 0x1003ad48
test ebp, ebp
jne 0x1003a73a
mov eax, dword [esp + 0x10]
push esi
push eax
call sym.LIBEAY32.dll_RAND_bytes
add esp, 8
test eax, eax
jle 0x1003ad48
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push 0
push ecx
push 0
lea edx, [esp + 0x98]
push edx
push esi
push eax
call sym.LIBEAY32.dll_EVP_Digest
add esp, 0x18
test eax, eax
je 0x1003ad48
cmp ebx, edi
jle 0x1003a772
mov ecx, ebx
sub ecx, edi
lea esi, [esp + ecx + 0x8c]
jmp 0x1003a779
lea esi, [esp + 0x8c]
cmp ebx, edi
jge 0x1003a794
mov edx, edi
sub edx, ebx
push edx
lea eax, [esp + ebx + 0x90]
push 0
push eax
call fcn.100d7a80
add esp, 0xc
mov ecx, dword [esp + 0x28]
or byte [esi], 0x80
or byte [esi + edi - 1], 1
push ecx
push edi
push esi
call sym.LIBEAY32.dll_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x1003ad48
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
xor edx, edx
test ebp, ebp
setne dl
push esi
push edx
push eax
push 0x32
push ecx
call sym.LIBEAY32.dll_BN_is_prime_fasttest_ex
add esp, 0x14
test eax, eax
jg 0x1003a80b
jne 0x1003ad48
test ebp, ebp
je 0x1003a6f8
push 0x212
push 0x100f86b0
push 0x71
push 0x7e
push 0xa
mov dword [esp + 0x48], 0
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x1003ad48
mov eax, dword [esp + 0x58]
test eax, eax
je 0x1003a829
mov edx, dword [esp + 0xe8]
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
call fcn.100d73f0
add esp, 0xc
push 0
push 2
push esi
call sym.LIBEAY32.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1003ad48
push 0
mov edx, esi
push 3
push edx
call sym.LIBEAY32.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1003ad48
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0xd8]
add esi, esi
add esi, esi
xor ecx, ecx
add esi, esi
add eax, 0xffffffff
xor edx, edx
div esi
mov dword [esp + 0x3c], ecx
mov ebx, eax
test ecx, ecx
je 0x1003a891
mov eax, dword [esp + 0x24]
push ecx
push 0
push eax
call sym.LIBEAY32.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1003ad48
mov ecx, dword [esp + 0x4c]
push 0
push ecx
call sym.LIBEAY32.dll_BN_set_word
add esp, 8
xor esi, esi
test ebx, ebx
jl 0x1003a964
mov ebp, dword [esp + 0xe8]
add ebp, 0xffffffff
xor edi, edi
mov eax, ebp
test eax, eax
jl 0x1003a8cb
mov ecx, dword [esp + 0x10]
add byte [eax + ecx], 1
jne 0x1003a8cb
sub eax, 1
jns 0x1003a8c0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xe8]
push 0
push edx
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x98]
push eax
push ecx
push edx
call sym.LIBEAY32.dll_EVP_Digest
add esp, 0x18
test eax, eax
je 0x1003ad48
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x94]
push edx
call sym.LIBEAY32.dll_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x1003ad48
mov eax, dword [esp + 0x38]
push edi
push eax
push eax
call sym.LIBEAY32.dll_BN_lshift
add esp, 0xc
test eax, eax
je 0x1003ad48
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x50]
push eax
push eax
call sym.LIBEAY32.dll_BN_add
add esp, 0xc
test eax, eax
je 0x1003ad48
mov eax, dword [esp + 0x30]
add eax, eax
add eax, eax
add eax, eax
add esi, 1
add edi, eax
cmp esi, ebx
jle 0x1003a8b6
mov eax, dword [esp + 0xd8]
mov esi, dword [esp + 0x4c]
add eax, 0xffffffff
push eax
push esi
call sym.LIBEAY32.dll_BN_mask_bits
add esp, 8
test eax, eax
je 0x1003ad48
push esi
mov esi, dword [esp + 0x68]
push esi
call sym.LIBEAY32.dll_BN_copy
add esp, 8
test eax, eax
je 0x1003ad48
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push esi
call sym.LIBEAY32.dll_BN_add
add esp, 0xc
test eax, eax
je 0x1003ad48
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
push edx
push ebp
call sym.LIBEAY32.dll_BN_lshift1
add esp, 8
test eax, eax
je 0x1003ad48
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x5c]
push eax
push ebp
push esi
push edi
push 0
call sym.LIBEAY32.dll_BN_div
add esp, 0x14
test eax, eax
je 0x1003ad48
call sym.LIBEAY32.dll_BN_value_one
push eax
push edi
push ebp
call sym.LIBEAY32.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1003ad48
push ebp
push esi
mov esi, dword [esp + 0x78]
push esi
call sym.LIBEAY32.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1003ad48
mov ecx, dword [esp + 0x1c]
push ecx
push esi
call sym.LIBEAY32.dll_BN_cmp
add esp, 8
test eax, eax
jl 0x1003aa4b
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push edi
push 1
push edx
push 0x32
push esi
call sym.LIBEAY32.dll_BN_is_prime_fasttest_ex
add esp, 0x14
test eax, eax
jg 0x1003aa80
jne 0x1003ad48
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0xd8]
add ecx, 1
lea edx, [eax*4]
cmp ecx, edx
mov dword [esp + 0x3c], ecx
jl 0x1003a875
cmp dword [esp + 0x50], 0
jne 0x1003ad0a
mov edi, dword [esp + 0x6c]
jmp 0x1003a6f0
push 1
push 2
push edi
call sym.LIBEAY32.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1003ad48
mov ebx, dword [esp + 0xec]
call sym.LIBEAY32.dll_BN_value_one
mov edi, dword [esp + 0x1c]
push eax
push esi
push edi
call sym.LIBEAY32.dll_BN_sub
add esp, 0xc
test eax, eax
je 0x1003ad48
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push edi
push 0
push ebp
call sym.LIBEAY32.dll_BN_div
add esp, 0x14
test eax, eax
je 0x1003ad48
test ebx, ebx
jge 0x1003aaef
push 2
push edi
call sym.LIBEAY32.dll_BN_set_word
add esp, 8
test eax, eax
je 0x1003ad48
jmp 0x1003aaf7
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
push edx
push esi
push eax
call sym.LIBEAY32.dll_BN_MONT_CTX_set
add esp, 0xc
test eax, eax
je 0x1003ad48
mov edi, dword [esp + 0x54]
test ebx, ebx
jl 0x1003abf6
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, eax
push 0
mov byte [esp + 0x92], al
push edx
lea eax, [esp + 0x7c]
shr ecx, 8
push eax
mov byte [esp + 0x98], bl
mov byte [esp + 0x99], cl
call sym.LIBEAY32.dll_EVP_DigestInit_ex
add esp, 0xc
test eax, eax
je 0x1003ad48
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0x7c]
push eax
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x1003ad48
push 4
lea ecx, [esp + 0x78]
push str.ggen.cryptodsadsa_gen.c
push ecx
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x1003ad48
push 3
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0x7c]
push eax
call sym.LIBEAY32.dll_EVP_DigestUpdate
add esp, 0xc
test eax, eax
je 0x1003ad48
push 0
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x7c]
push edx
call sym.LIBEAY32.dll_EVP_DigestFinal_ex
add esp, 0xc
test eax, eax
je 0x1003ad48
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x94]
push edx
call sym.LIBEAY32.dll_BN_bin2bn
add esp, 0xc
test eax, eax
je 0x1003ad48
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push esi
push ebp
push edx
push edi
call sym.LIBEAY32.dll_BN_mod_exp_mont
add esp, 0x18
test eax, eax
je 0x1003ad48
cmp dword [edi + 4], 1
jne 0x1003ac67
mov eax, dword [edi]
cmp dword [eax], 1
jne 0x1003ac67
cmp dword [edi + 0xc], 0
jne 0x1003ac67
test ebx, ebx
jge 0x1003ac4b
call sym.LIBEAY32.dll_BN_value_one
push eax
mov eax, dword [esp + 0x20]
push eax
push eax
call sym.LIBEAY32.dll_BN_add
add esp, 0xc
test eax, eax
je 0x1003ad48
add dword [esp + 0x20], 1
test ebx, ebx
jl 0x1003abf6
cmp dword [esp + 0x20], 0xffff
jbe 0x1003ab16
jmp 0x1003ad48
mov ecx, dword [esp + 0x24]
push 1
push 3
push ecx
call sym.LIBEAY32.dll_BN_GENCB_call
add esp, 0xc
test eax, eax
je 0x1003ad48
mov edi, dword [esp + 0x48]
mov eax, dword [edi + 0xc]
cmp esi, eax
mov dword [esp + 0x34], 1
je 0x1003acac
test eax, eax
je 0x1003aca0
push eax
call sym.LIBEAY32.dll_BN_free
add esp, 4
push esi
call sym.LIBEAY32.dll_BN_dup
add esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
mov esi, dword [esp + 0x28]
cmp esi, eax
je 0x1003acd0
test eax, eax
je 0x1003acc4
push eax
call sym.LIBEAY32.dll_BN_free
add esp, 4
push esi
call sym.LIBEAY32.dll_BN_dup
add esp, 4
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x1003ace0
push eax
call sym.LIBEAY32.dll_BN_free
add esp, 4
mov edx, dword [esp + 0x54]
push edx
call sym.LIBEAY32.dll_BN_dup
add esp, 4
cmp dword [edi + 0xc], 0
mov dword [edi + 0x14], eax
je 0x1003ad00
cmp dword [edi + 0x10], 0
je 0x1003ad00
test eax, eax
jne 0x1003ad2c
mov dword [esp + 0x34], 0xffffffff
jmp 0x1003ad48
push 0x26b
push 0x100f86b0
push 0x70
push 0x7e
push 0xa
mov dword [esp + 0x48], 0
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
jmp 0x1003ad48
mov eax, dword [esp + 0x60]
test eax, eax
je 0x1003ad3a
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
mov eax, dword [esp + 0x68]
test eax, eax
je 0x1003ad48
mov edx, dword [esp + 0x20]
mov dword [eax], edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1003ad59
push eax
call sym.LIBEAY32.dll_CRYPTO_free
add esp, 4
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x58], eax
je 0x1003ad6c
push eax
call sym.LIBEAY32.dll_CRYPTO_free
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1003ad83
push esi
call sym.LIBEAY32.dll_BN_CTX_end
push esi
call sym.LIBEAY32.dll_BN_CTX_free
add esp, 8
mov eax, dword [esp + 0x40]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x1003ad98
push eax
call sym.LIBEAY32.dll_BN_MONT_CTX_free
add esp, 4
lea eax, [esp + 0x64]
push eax
call sym.LIBEAY32.dll_EVP_MD_CTX_cleanup
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0x28]
add esp, 4
xor ecx, esp
call fcn.100d6528
add esp, 0xc0
ret