Function at 0x10127460
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 [0x101db014]
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 eax, [esp + 0x30]
push eax
push 2
push edx
call fcn.101119e0
add esp, 0xc
xor esi, esi
dec esi
test eax, eax
jne 0x10127a1e
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x40]
jne 0x101279ee
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
test eax, eax
je 0x10127a0c
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push 2
push ecx
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x101279ff
lea eax, [esp + 0x20]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x101279ff
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x30]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.10111980
add esp, 0xc
test eax, eax
jne 0x101279ff
mov eax, dword [esp + 0x28]
mov ecx, 0xfe0a
xor eax, ecx
or eax, dword [esp + 0x2c]
jne 0x101277ef
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 eax, [esp + 0x78]
push eax
push 1
lea eax, [esp + 0x64]
push eax
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x10127771
mov al, byte [esp + 0x78]
mov byte [esp + 0x80], al
lea eax, [esp + 0x78]
push eax
push 2
lea eax, [esp + 0x64]
push eax
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x10127771
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.101119e0
add esp, 0xc
test eax, eax
jne 0x10127771
push dword [esp + 0x6c]
push dword [esp + 0x6c]
lea eax, [esp + 0x90]
push eax
push 0
call fcn.100e1dd0
add esp, 0x10
test eax, eax
jne 0x10127771
lea eax, [esp + 0x68]
push eax
push 2
lea eax, [esp + 0x64]
push eax
call fcn.101119e0
add esp, 0xc
test eax, eax
jne 0x10127771
mov eax, dword [esp + 0x6c]
test al, 1
jne 0x10127762
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0
test eax, eax
je 0x101276b0
mov al, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x78]
push eax
push 2
lea eax, [esp + 0x58]
push eax
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x10127771
lea eax, [esp + 0x70]
push eax
push 2
lea eax, [esp + 0x58]
push eax
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x10127771
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
je 0x101276b8
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x58]
jne 0x10127651
jmp 0x101276d6
mov al, 1
mov dword [esp + 0x10], eax
jmp 0x101276d6
mov eax, dword [esp + 0x78]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x98], eax
mov dword [esp + 0x10], 0
push dword [esp + 0x6c]
push dword [esp + 0x6c]
lea eax, [esp + 0xa4]
push eax
push 0
call fcn.100e1dd0
add esp, 0x10
test eax, eax
jne 0x10127771
lea eax, [esp + 0x78]
push eax
push 2
lea eax, [esp + 0x64]
push eax
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x10127771
movzx eax, word [esp + 0x78]
mov word [esp + 0xa8], ax
lea eax, [esp + 0x68]
push eax
push 2
lea eax, [esp + 0x64]
push eax
call fcn.101119e0
add esp, 0xc
test eax, eax
jne 0x10127771
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x10127762
push eax
push dword [esp + 0x6c]
call fcn.1012a1b0
add esp, 8
test eax, eax
je 0x10127762
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call fcn.1012a020
add esp, 8
test eax, eax
je 0x10127812
push 0
push 0xffffd0b0
call sym.nss3.dll_PR_SetError
add esp, 8
mov eax, dword [esp + 0xac]
test eax, eax
je 0x10127786
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
push edi
lea eax, [esp + 0x8c]
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push edi
lea eax, [esp + 0xa0]
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
xor eax, eax
test al, al
je 0x101279ff
test edi, edi
je 0x101277ef
add ebx, 4
movzx eax, word [esp + 0x28]
mov word [edi + 0x14], ax
lea eax, [edi + 8]
push ebx
push esi
push eax
push 0
call fcn.100e1dd0
add esp, 0x10
test eax, eax
jne 0x101279ff
mov ecx, dword [ebp + 0xc]
mov dword [edi], ecx
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 4]
mov dword [eax], edi
mov dword [ecx + 4], edi
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x18], esi
je 0x10127a36
add esi, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
jmp 0x101274ec
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 0x10127786
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.101119e0
add esp, 0xc
test eax, eax
jne 0x10127771
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], 0
lea eax, [edi + edi]
and eax, 0xfffffffc
push eax
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov dword [esp + 8], eax
test eax, eax
je 0x10127771
test edi, edi
je 0x10127927
mov dword [esp + 0xc], 0
lea eax, [esp + 0x78]
push eax
push 2
lea eax, [esp + 0x4c]
push eax
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x1012798b
mov eax, dword [esp + 0x78]
cmp dword [esp + 0xc], 0
je 0x101278e5
mov ecx, dword [esp + 0x7c]
xor edx, edx
mov edi, dword [esp + 8]
movzx edi, word [edi + edx*2]
xor edi, eax
or edi, ecx
je 0x10127973
inc edx
cmp dword [esp + 0xc], edx
jne 0x101278cc
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov word [ecx + edx*2], ax
cmp word [esp + 0x78], 0
js 0x101279e5
lea eax, [esp + 0x68]
push eax
push 2
lea eax, [esp + 0x4c]
push eax
call fcn.101119e0
add esp, 0xc
test eax, eax
jne 0x1012798b
inc dword [esp + 0xc]
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x4c]
jne 0x1012789f
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x64]
jne 0x1012797c
cmp byte [esp + 0x10], 0
je 0x1012799d
mov eax, dword [esp + 0xac]
test eax, eax
je 0x1012794d
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor edi, edi
push edi
lea eax, [esp + 0x8c]
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push edi
lea eax, [esp + 0xa0]
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
jmp 0x101279d1
push 0
push 0xffffe022
jmp 0x10127983
push 0
push 0xffffd0b0
call sym.nss3.dll_PR_SetError
add esp, 8
push dword [esp + 8]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x10127771
push 0x48
call sym.nss3.dll_PORT_ZAlloc_Util
add esp, 4
test eax, eax
je 0x1012798b
mov edi, 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 + 8]
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov al, 1
jmp 0x101277ac
push 0
push 0xffffe029
jmp 0x10127983
push 0
push 0xffffe002
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10127a1e
push dword [ebp + 0xc]
call fcn.10127280
add esp, 4
jmp 0x10127a1b
push 0
push 0xffffe002
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.1014dc80
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x10127a1e