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

Disassembly:
mov eax, 0x64
call fcn.100a1060
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
mov eax, dword [esi + 4]
mov ebp, dword [esi]
push edi
mov dword [esp + 0x7c], eax
mov eax, dword [0x100ed07c]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
jne 0x10031374
push 0x262
push str..crypto_bn_bn_nist.c
push 0x23
push 9
call sym.LIBEAY32.dll_CRYPTO_lock
mov eax, dword [0x100ed07c]
add esp, 0x10
cmp eax, edi
jne 0x1003135e
call fcn.100312c0
push 0x267
push str..crypto_bn_bn_nist.c
push 0x23
push 0xa
call sym.LIBEAY32.dll_CRYPTO_lock
add esp, 0x10
mov ebx, dword [esp + 0x80]
push esi
push ebx
call sym.LIBEAY32.dll_BN_ucmp
add esp, 8
cmp eax, edi
jne 0x100313a4
mov ecx, dword [esp + 0x78]
push edi
push ecx
call sym.LIBEAY32.dll_BN_set_word
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x64
ret
jle 0x100313ca
mov eax, dword [esp + 0x78]
cmp eax, esi
je 0x10031816
push esi
push eax
call sym.LIBEAY32.dll_BN_copy
add esp, 8
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x64
ret
mov ecx, dword [esp + 0x7c]
mov eax, 0xc
cmp ecx, eax
jne 0x100313ee
mov edx, dword [esp + 0x78]
push ebx
push esi
push edx
call sym.LIBEAY32.dll_BN_usub
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov ebx, dword [esp + 0x78]
cmp ebx, esi
je 0x10031431
cmp dword [ebx + 8], eax
jl 0x100313ff
mov eax, ebx
jmp 0x10031409
push eax
push ebx
call sym.LIBEAY32.dll_bn_expand2
add esp, 8
cmp eax, edi
jne 0x10031417
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret
mov esi, dword [ebx]
mov ecx, ebp
mov eax, esi
sub ecx, esi
mov edx, 0xc
mov ebx, dword [ecx + eax]
mov dword [eax], ebx
add eax, 4
dec edx
jne 0x10031424
jmp 0x10031433
mov esi, ebp
mov edx, dword [esp + 0x7c]
add ebp, 0x30
lea eax, [esp + 0x44]
push ebp
add edx, 0xfffffff4
push eax
mov ecx, 0xc
call fcn.10030870
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
add esp, 8
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x14]
xor edx, edx
mov ebx, 8
mov eax, dword [ecx]
lea ebp, [eax + eax]
or ebp, edx
mov dword [ecx], ebp
shr eax, 0x1f
add ecx, 4
dec ebx
mov edx, eax
jne 0x10031487
push 8
lea ecx, [esp + 0x18]
push ecx
lea ebp, [esi + 0x10]
push ebp
push ebp
call sym.LIBEAY32.dll_bn_add_words
add esp, 0x10
test eax, eax
mov ebx, 1
jne 0x100314bc
mov ebx, dword [esp + 0x10]
push 0xc
lea edx, [esp + 0x48]
push edx
push esi
push esi
call sym.LIBEAY32.dll_bn_add_words
add esp, 0x10
test eax, eax
je 0x100314d2
inc ebx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
push 0xc
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x6c]
push esi
push esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
call sym.LIBEAY32.dll_bn_add_words
add esp, 0x10
test eax, eax
je 0x10031548
inc ebx
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x38], edx
push 0xc
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x68]
push esi
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
call sym.LIBEAY32.dll_bn_add_words
add esp, 0x10
test eax, eax
je 0x100315b6
inc ebx
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
push 8
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x78]
push ebp
push ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call sym.LIBEAY32.dll_bn_add_words
add esp, 0x10
test eax, eax
je 0x100315fc
inc ebx
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
push 0xc
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x78]
push esi
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call sym.LIBEAY32.dll_bn_add_words
add esp, 0x10
test eax, eax
je 0x10031652
inc ebx
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x38], ecx
push 0xc
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
push esi
push esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
call sym.LIBEAY32.dll_bn_sub_words
add esp, 0x10
test eax, eax
je 0x100316c8
dec ebx
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
push 0xc
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x78]
push esi
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call sym.LIBEAY32.dll_bn_sub_words
add esp, 0x10
test eax, eax
je 0x1003171e
dec ebx
mov eax, dword [esp + 0x70]
push 0xc
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call sym.LIBEAY32.dll_bn_sub_words
add esp, 0x10
test eax, eax
je 0x10031768
dec ebx
cmp ebx, edi
je 0x1003179f
push 0xc
jle 0x10031786
lea edx, [ebx + ebx*2]
shl edx, 4
lea eax, [edx + 0x100ecec8]
push eax
push esi
push esi
call sym.LIBEAY32.dll_bn_sub_words
jmp 0x1003179c
lea ecx, [ebx + ebx*2 + 3]
shl ecx, 4
mov edx, 0x100ecef8
sub edx, ecx
push edx
push esi
push esi
call sym.LIBEAY32.dll_bn_add_words
add esp, 0x10
mov ebx, dword [esp + 0x78]
mov eax, dword [ebx]
mov dword [ebx + 4], 0xc
add eax, 0x2c
nop
mov ecx, dword [eax]
sub eax, 4
test ecx, ecx
jne 0x100317c6
mov edx, dword [ebx + 4]
dec edx
mov ecx, edx
cmp ecx, edi
mov dword [ebx + 4], edx
jg 0x100317b0
mov edx, dword [esp + 0x80]
push edx
push ebx
call sym.LIBEAY32.dll_BN_ucmp
add esp, 8
test eax, eax
jl 0x10031816
push 0xc
push 0x100a8b64
push esi
push esi
call sym.LIBEAY32.dll_bn_sub_words
mov eax, dword [ebx + 4]
add esp, 0x10
cmp eax, edi
jle 0x10031816
mov ecx, dword [ebx]
lea eax, [ecx + eax*4 - 4]
lea esp, [esp]
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x10031816
mov edx, dword [ebx + 4]
dec edx
mov ecx, edx
cmp ecx, edi
mov dword [ebx + 4], edx
jg 0x10031800
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x64
ret