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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov eax, dword [ebp + 8]
mov ecx, dword [0x101ef014]
xor ecx, ebp
mov dword [esp + 0xb8], ecx
mov ecx, dword [eax + 4]
lea edx, [esp + 0x38]
mov dword [edx], ecx
mov eax, dword [eax + 8]
mov dword [edx + 4], eax
mov dword [edx + 8], 0
lea ebx, [esp + 0x30]
push ebx
push 2
push edx
call fcn.1010a9e0
add esp, 0xc
xor esi, esi
dec esi
test eax, eax
jne 0x10121042
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x40]
jne 0x10120fbc
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x10120fcd
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x28]
lea esi, [esp + 0x14]
xor ecx, ecx
add ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
push eax
push 2
push esi
call fcn.1010aab0
add esp, 0xc
test eax, eax
jne 0x10121036
lea eax, [esp + 0x20]
push eax
push 2
push esi
call fcn.1010aab0
add esp, 0xc
test eax, eax
jne 0x10121036
mov eax, dword [esp + 0x20]
push ebx
mov dword [esp + 0xc], eax
push eax
push esi
call fcn.1010a980
add esp, 0xc
test eax, eax
jne 0x10121036
mov eax, dword [esp + 0x28]
mov ecx, 0xfe0d
xor eax, ecx
or eax, dword [esp + 0x2c]
jne 0x10120f9f
xorps xmm0, xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], 0
lea esi, [esp + 0x78]
push esi
push 1
lea eax, [esp + 0x64]
push eax
call fcn.1010aab0
add esp, 0xc
test eax, eax
jne 0x10120ffd
mov al, byte [esp + 0x78]
mov byte [esp + 0x80], al
push esi
push 2
lea eax, [esp + 0x64]
push eax
call fcn.1010aab0
add esp, 0xc
test eax, eax
jne 0x10120ffd
mov eax, dword [esp + 0x78]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x68]
push eax
push 2
lea eax, [esp + 0x64]
push eax
call fcn.1010a9e0
add esp, 0xc
test eax, eax
jne 0x10120ffd
push dword [esp + 0x6c]
push dword [esp + 0x6c]
lea eax, [esp + 0x90]
push eax
push 0
call fcn.100da400
add esp, 0x10
test eax, eax
jne 0x10120ffd
lea eax, [esp + 0x68]
push eax
push 2
lea eax, [esp + 0x64]
push eax
call fcn.1010a9e0
add esp, 0xc
test eax, eax
jne 0x10120ffd
mov eax, dword [esp + 0x6c]
test al, 1
jne 0x1012105a
add dword [esp + 8], 4
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x10120d02
push esi
push 2
lea eax, [esp + 0x58]
push eax
call fcn.1010aab0
add esp, 0xc
test eax, eax
jne 0x10120ffd
lea eax, [esp + 0x70]
push eax
push 2
lea eax, [esp + 0x58]
push eax
call fcn.1010aab0
add esp, 0xc
test eax, eax
jne 0x10120ffd
push dword [esp + 0x70]
push dword [esp + 0x7c]
push dword [esp + 0x8c]
call sym.nss3.dll_PK11_HPKE_ValidateParameters
add esp, 0xc
test eax, eax
jne 0x10120c8d
mov eax, dword [esp + 0x78]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x98], eax
push dword [esp + 0x6c]
push dword [esp + 0x6c]
lea eax, [esp + 0xa4]
push eax
push 0
call fcn.100da400
add esp, 0x10
test eax, eax
jne 0x10120ffd
push esi
push 1
lea eax, [esp + 0x64]
push eax
call fcn.1010aab0
add esp, 0xc
test eax, eax
jne 0x10120ffd
mov al, byte [esp + 0x78]
mov byte [esp + 0xa8], al
lea eax, [esp + 0x68]
push eax
push 1
lea eax, [esp + 0x64]
push eax
call fcn.1010a9e0
add esp, 0xc
test eax, eax
jne 0x10120ffd
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x1012105a
push eax
push dword [esp + 0x6c]
call fcn.10123e60
add esp, 8
test eax, eax
je 0x1012105a
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call fcn.10123cf0
add esp, 8
test eax, eax
jne 0x1012105a
mov eax, dword [esp + 0x6c]
inc eax
push eax
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
mov dword [esp + 0xac], eax
test eax, eax
je 0x10121012
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x68]
push eax
push 2
lea eax, [esp + 0x64]
push eax
call fcn.1010a9e0
add esp, 0xc
test eax, eax
jne 0x10120ffd
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0
add ecx, ecx
and ecx, 0xfffffffc
push ecx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov dword [esp], eax
test eax, eax
je 0x10120ffd
mov dword [esp + 4], 0
xor esi, esi
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x4c]
je 0x10120eb2
lea eax, [esp + 0x78]
push eax
push 2
lea eax, [esp + 0x4c]
push eax
call fcn.1010aab0
add esp, 0xc
test eax, eax
jne 0x10120ff1
mov eax, dword [esp + 0x78]
test esi, esi
je 0x10120e6f
mov ecx, dword [esp + 0x7c]
xor edx, edx
mov edi, dword [esp]
movzx edi, word [edi + edx*2]
xor edi, eax
or edi, ecx
je 0x10120fde
inc edx
cmp esi, edx
jne 0x10120e59
mov ecx, dword [esp]
mov word [ecx + esi*2], ax
inc esi
mov eax, dword [esp + 0x78]
test ax, ax
mov eax, 1
mov ecx, dword [esp + 4]
cmovs ecx, eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x68]
push eax
push 2
lea eax, [esp + 0x4c]
push eax
call fcn.1010a9e0
add esp, 0xc
test eax, eax
mov edi, dword [ebp + 0xc]
je 0x10120e21
jmp 0x10120ff1
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x64]
jne 0x1012106b
cmp dword [esp + 0x10], ebx
je 0x10120f58
cmp dword [esp + 4], 0
jne 0x10120f58
push 0x48
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
test eax, eax
je 0x10120ff1
mov esi, eax
movaps xmm0, xmmword [esp + 0xa0]
movups xmmword [eax + 0x38], xmm0
movaps xmm0, xmmword [esp + 0x80]
movaps xmm1, xmmword [esp + 0x90]
movups xmmword [eax + 0x28], xmm1
movups xmmword [eax + 0x18], xmm0
push dword [esp]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
movzx eax, word [esp + 0x28]
mov word [esi + 0x14], ax
mov eax, esi
add eax, 8
push dword [esp + 8]
push dword [esp + 0x10]
push eax
push 0
call fcn.100da400
add esp, 0x10
test eax, eax
lea ebx, [esp + 0x30]
jne 0x10121036
mov dword [esi], edi
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], esi
mov dword [edi + 4], esi
jmp 0x10120f9f
mov eax, dword [esp + 0xac]
test eax, eax
mov esi, dword [sym.imp.mozglue.dll_free]
je 0x10120f6f
push eax
call esi
add esp, 4
xor ebx, ebx
push ebx
lea eax, [esp + 0x8c]
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push ebx
lea eax, [esp + 0xa0]
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push dword [esp]
call esi
add esp, 4
lea ebx, [esp + 0x30]
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x18], ecx
lea eax, [esp + 0x28]
lea esi, [esp + 0x14]
jne 0x10120b2d
xor esi, esi
jmp 0x10121042
push 0
push 0xffffe002
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10121042
push 0
push 0xffffe002
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1012103f
mov eax, 0xffffe022
mov edi, dword [ebp + 0xc]
push 0
push eax
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [esp]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0xac]
test eax, eax
je 0x10121012
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor esi, esi
push esi
lea eax, [esp + 0x8c]
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push esi
lea eax, [esp + 0xa0]
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push edi
call fcn.10120900
add esp, 4
xor esi, esi
dec esi
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.10156ff0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push 0xffffd0b0
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10120ffd
mov eax, 0xffffd0b0
jmp 0x10120fe6