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

Disassembly:
mov eax, 0x6c
call fcn.100b1990
mov eax, dword [0x100fff44]
push ebx
mov ebx, dword [esp + 0x78]
push ebp
push esi
push edi
mov edi, dword [ebx + 4]
mov ebp, dword [ebx]
test eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x84], 0
jne 0x100368eb
push 0x1c7
push str..crypto_bn_bn_nist.c
push 0x23
push 9
call sym.LIBEAY32_smt.dll_CRYPTO_lock
mov eax, dword [0x100fff44]
add esp, 0x10
test eax, eax
jne 0x100368d5
mov ecx, 8
mov esi, 0x100bbae4
mov edi, 0x100ffd04
mov eax, 0x100ffd04
rep movsd dword es:[edi], dword [esi]
mov esi, 0x100ffd24
mov edi, 5
push 8
push eax
push 0x100bbae4
push esi
call sym.LIBEAY32_smt.dll_bn_add_words
mov eax, esi
add esp, 0x10
add esi, 0x20
dec edi
jne 0x100368ae
mov edi, dword [esp + 0x14]
mov dword [0x100fff44], 1
push 0x1cc
push str..crypto_bn_bn_nist.c
push 0x23
push 0xa
call sym.LIBEAY32_smt.dll_CRYPTO_lock
add esp, 0x10
mov esi, dword [esp + 0x88]
push ebx
push esi
call sym.LIBEAY32_smt.dll_BN_ucmp
add esp, 8
test eax, eax
jne 0x1003691e
push eax
mov eax, dword [esp + 0x84]
push eax
call sym.LIBEAY32_smt.dll_BN_set_word
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
jle 0x10036947
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x10036d26
push ebx
push eax
call sym.LIBEAY32_smt.dll_BN_copy
add esp, 8
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x6c
ret
cmp edi, 8
jne 0x10036966
mov ecx, dword [esp + 0x80]
push esi
push ebx
push ecx
call sym.LIBEAY32_smt.dll_BN_usub
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov esi, dword [esp + 0x80]
cmp esi, ebx
je 0x100369ac
cmp dword [esi + 8], 8
jl 0x1003697b
mov eax, esi
jmp 0x10036986
push 8
push esi
call sym.LIBEAY32_smt.dll_bn_expand2
add esp, 8
test eax, eax
jne 0x10036992
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ebx, dword [esi]
mov ecx, ebp
mov eax, ebx
sub ecx, ebx
mov edx, 8
mov esi, dword [ecx + eax]
mov dword [eax], esi
add eax, 4
dec edx
jne 0x1003699f
jmp 0x100369ae
mov ebx, ebp
lea eax, [edi - 8]
xor edx, edx
cmp eax, edx
lea edi, [esp + 0x3c]
lea esi, [ebp + 0x20]
je 0x100369ca
mov ecx, eax
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + eax*4 + 0x3c]
mov ecx, 8
sub ecx, eax
je 0x100369d7
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x48]
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x78], ecx
lea eax, [esp + 0x5c]
mov dword [esp + 0x28], edx
push 8
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], ebp
call sym.LIBEAY32_smt.dll_bn_add_words
add esp, 0x10
test eax, eax
je 0x10036a5b
mov dword [esp + 0x84], 2
lea edx, [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 8
mov eax, dword [edx]
lea edx, [eax + eax]
or edx, ecx
mov ecx, edx
mov edx, dword [esp + 0x10]
shr eax, 0x1f
mov dword [edx], ecx
mov ecx, eax
mov eax, dword [esp + 0x14]
add edx, 4
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jne 0x10036a6d
test ecx, ecx
je 0x10036a9e
inc dword [esp + 0x84]
lea edx, [esp + 0x1c]
push 8
push edx
push ebx
push ebx
call sym.LIBEAY32_smt.dll_bn_add_words
add esp, 0x10
test eax, eax
je 0x10036aba
inc dword [esp + 0x84]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
xor eax, eax
push 8
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebp
call sym.LIBEAY32_smt.dll_bn_add_words
add esp, 0x10
test eax, eax
je 0x10036b04
inc dword [esp + 0x84]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x1c]
push 8
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x40]
push edx
push ebx
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ecx
call sym.LIBEAY32_smt.dll_bn_add_words
add esp, 0x10
test eax, eax
je 0x10036b50
inc dword [esp + 0x84]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
xor eax, eax
lea ecx, [esp + 0x1c]
push 8
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
push ecx
push ebx
push ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call sym.LIBEAY32_smt.dll_bn_sub_words
add esp, 0x10
test eax, eax
je 0x10036b9e
dec dword [esp + 0x84]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x1c], edx
xor eax, eax
lea edx, [esp + 0x1c]
push 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
push edx
push ebx
push ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
call sym.LIBEAY32_smt.dll_bn_sub_words
add esp, 0x10
test eax, eax
je 0x10036be8
dec dword [esp + 0x84]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x1c]
push 8
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
push ecx
push ebx
push ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], eax
call sym.LIBEAY32_smt.dll_bn_sub_words
add esp, 0x10
test eax, eax
je 0x10036c38
dec dword [esp + 0x84]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x1c]
push 8
mov dword [esp + 0x20], edi
push edx
xor edi, edi
push ebx
push ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call sym.LIBEAY32_smt.dll_bn_sub_words
add esp, 0x10
test eax, eax
mov eax, dword [esp + 0x84]
je 0x10036c83
dec eax
cmp eax, edi
je 0x10036cb4
push 8
jle 0x10036c9e
shl eax, 5
lea eax, [eax + 0x100ffce4]
push eax
push ebx
push ebx
call sym.LIBEAY32_smt.dll_bn_sub_words
jmp 0x10036cb1
inc eax
mov ecx, 0x100ffd04
shl eax, 5
sub ecx, eax
push ecx
push ebx
push ebx
call sym.LIBEAY32_smt.dll_bn_add_words
add esp, 0x10
mov esi, dword [esp + 0x80]
mov eax, dword [esi]
mov dword [esi + 4], 8
add eax, 0x1c
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x10036cdd
mov edx, dword [esi + 4]
dec edx
mov ecx, edx
mov dword [esi + 4], edx
cmp ecx, edi
jg 0x10036cc7
mov eax, dword [esp + 0x88]
push eax
push esi
call sym.LIBEAY32_smt.dll_BN_ucmp
add esp, 8
test eax, eax
jl 0x10036d26
push 8
push 0x100bbae4
push ebx
push ebx
call sym.LIBEAY32_smt.dll_bn_sub_words
mov eax, dword [esi + 4]
add esp, 0x10
cmp eax, edi
jle 0x10036d26
mov ecx, dword [esi]
lea eax, [ecx + eax*4 - 4]
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x10036d26
mov edx, dword [esi + 4]
dec edx
mov ecx, edx
mov dword [esi + 4], edx
cmp ecx, edi
jg 0x10036d10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret