Function at 0x10122060
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 [0x101f1014]
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.1010bfa0
add esp, 0xc
xor esi, esi
dec esi
test eax, eax
jne 0x10122602
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x40]
jne 0x1012257c
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 0x1012258d
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.1010c070
add esp, 0xc
test eax, eax
jne 0x101225f6
lea eax, [esp + 0x20]
push eax
push 2
push esi
call fcn.1010c070
add esp, 0xc
test eax, eax
jne 0x101225f6
mov eax, dword [esp + 0x20]
push ebx
mov dword [esp + 0xc], eax
push eax
push esi
call fcn.1010bf40
add esp, 0xc
test eax, eax
jne 0x101225f6
mov eax, dword [esp + 0x28]
mov ecx, 0xfe0d
xor eax, ecx
or eax, dword [esp + 0x2c]
jne 0x1012255f
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.1010c070
add esp, 0xc
test eax, eax
jne 0x101225bd
mov al, byte [esp + 0x78]
mov byte [esp + 0x80], al
push esi
push 2
lea eax, [esp + 0x64]
push eax
call fcn.1010c070
add esp, 0xc
test eax, eax
jne 0x101225bd
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.1010bfa0
add esp, 0xc
test eax, eax
jne 0x101225bd
push dword [esp + 0x6c]
push dword [esp + 0x6c]
lea eax, [esp + 0x90]
push eax
push 0
call fcn.100db9c0
add esp, 0x10
test eax, eax
jne 0x101225bd
lea eax, [esp + 0x68]
push eax
push 2
lea eax, [esp + 0x64]
push eax
call fcn.1010bfa0
add esp, 0xc
test eax, eax
jne 0x101225bd
mov eax, dword [esp + 0x6c]
test al, 1
jne 0x1012261a
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 0x101222c2
push esi
push 2
lea eax, [esp + 0x58]
push eax
call fcn.1010c070
add esp, 0xc
test eax, eax
jne 0x101225bd
lea eax, [esp + 0x70]
push eax
push 2
lea eax, [esp + 0x58]
push eax
call fcn.1010c070
add esp, 0xc
test eax, eax
jne 0x101225bd
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 0x1012224d
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.100db9c0
add esp, 0x10
test eax, eax
jne 0x101225bd
push esi
push 1
lea eax, [esp + 0x64]
push eax
call fcn.1010c070
add esp, 0xc
test eax, eax
jne 0x101225bd
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.1010bfa0
add esp, 0xc
test eax, eax
jne 0x101225bd
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x1012261a
push eax
push dword [esp + 0x6c]
call fcn.10125420
add esp, 8
test eax, eax
je 0x1012261a
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call fcn.101252b0
add esp, 8
test eax, eax
jne 0x1012261a
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 0x101225d2
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.1010bfa0
add esp, 0xc
test eax, eax
jne 0x101225bd
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 0x101225bd
mov dword [esp + 4], 0
xor esi, esi
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x4c]
je 0x10122472
lea eax, [esp + 0x78]
push eax
push 2
lea eax, [esp + 0x4c]
push eax
call fcn.1010c070
add esp, 0xc
test eax, eax
jne 0x101225b1
mov eax, dword [esp + 0x78]
test esi, esi
je 0x1012242f
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 0x1012259e
inc edx
cmp esi, edx
jne 0x10122419
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.1010bfa0
add esp, 0xc
test eax, eax
mov edi, dword [ebp + 0xc]
je 0x101223e1
jmp 0x101225b1
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x64]
jne 0x1012262b
cmp dword [esp + 0x10], ebx
je 0x10122518
cmp dword [esp + 4], 0
jne 0x10122518
push 0x48
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
test eax, eax
je 0x101225b1
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.100db9c0
add esp, 0x10
test eax, eax
lea ebx, [esp + 0x30]
jne 0x101225f6
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 0x1012255f
mov eax, dword [esp + 0xac]
test eax, eax
mov esi, dword [sym.imp.mozglue.dll_free]
je 0x1012252f
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 0x101220ed
xor esi, esi
jmp 0x10122602
push 0
push 0xffffe002
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10122602
push 0
push 0xffffe002
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x101225ff
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 0x101225d2
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.10121ec0
add esp, 4
xor esi, esi
dec esi
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.10157a00
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 0x101225bd
mov eax, 0xffffd0b0
jmp 0x101225a6