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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [0x101d2014]
mov ebx, dword [ebp + 8]
mov edi, 0xffffffff
xor eax, ebp
test ebx, ebx
mov dword [esp + 0x38], eax
je 0x10152637
cmp dword [ebp + 0xc], 0
je 0x10152637
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x10152637
mov edx, dword [eax]
test edx, edx
je 0x10152637
add eax, 4
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax]
cmp dword [edx + 0x18], 1
mov edx, dword [eax]
sbb ecx, 0xffffffff
add eax, 4
test edx, edx
jne 0x10152030
test ecx, ecx
je 0x10152637
mov eax, dword [ebx + 0x38]
mov dword [eax + ecx*4], 0
push dword [ebx]
call sym.nss3.dll_PORT_ArenaMark_Util
add esp, 4
mov dword [esp + 0x10], eax
push 0x40f4
push dword [ebx]
call sym.nss3.dll_PORT_ArenaAlloc_Util
add esp, 8
test eax, eax
je 0x10152277
mov esi, eax
push 0x40f4
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebx]
mov dword [esi], eax
mov dword [esi + 4], ebx
lea eax, [esi + 0x18]
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 3
mov dword [esp + 0x10], eax
push eax
push dword [ebx]
call sym.nss3.dll_SEC_ASN1EncodeInteger_Util
add esp, 0xc
test eax, eax
je 0x1015228b
cmp dword [ebx + 0xc], 0
je 0x10152172
cmp dword [ebx + 0x10], 0
je 0x10152504
call fcn.101543a0
mov dword [esi + 0xc0], eax
cmp dword [ebx + 0xc], 0
je 0x101522ed
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
call fcn.10152d60
test eax, eax
mov dword [esi + 0x84], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xb8], 0
je 0x1015228b
lea ecx, [esi + 0xa8]
mov dword [esp + 4], eax
push eax
push ecx
push dword [ebx]
call sym.nss3.dll_SECITEM_CopyItem_Util
add esp, 0xc
test eax, eax
je 0x10152573
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x101522a2
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10152637
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [esp + 4], 0
xor ecx, ecx
mov ebx, ecx
mov ecx, esi
call fcn.10152bb0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x101522c4
mov edx, dword [esp + 0x10]
push 0
call fcn.10146c70
add esp, 4
mov eax, dword [esp + 4]
test eax, eax
je 0x101522d7
push 1
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
test ebx, ebx
je 0x10152637
push ebx
call fcn.1012fa00
add esp, 4
jmp 0x10152637
xor ecx, ecx
test eax, eax
je 0x1015260f
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push eax
push 0x10152890
push 0x101a6424
push dword [esp + 0x18]
call fcn.101443f0
add esp, 0x10
test eax, eax
mov dword [esi + 8], eax
je 0x1015261c
mov dword [eax + 0xc], 1
mov eax, dword [esi + 8]
mov dword [eax + 0x14], 0x101528c0
mov dword [eax + 0x18], esi
push 0
push 0
push dword [esi + 8]
call fcn.10143ac0
add esp, 0xc
mov edi, 0xffffffff
test eax, eax
jne 0x10152630
push 0
push dword [esi + 8]
push 0x10152900
push dword [esi + 0xc0]
call fcn.10155bb0
add esp, 0x10
test eax, eax
mov dword [esi + 0xc4], eax
je 0x10152630
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], 0
mov dword [esi + 0xdc], 0
mov dword [esi + 0xe0], 0x2000
lea ecx, [esi + 0xd4]
mov eax, dword [esi + 4]
cmp dword [eax + 0xc], 0
je 0x101523c6
cmp dword [eax + 0x10], 0
je 0x101523c6
mov edx, dword [esi + 0xd0]
mov dword [esi + 0xd8], edx
add eax, 0x34
push ecx
push 0x10152920
push 0x101a64cc
push eax
call fcn.101443f0
add esp, 0x10
test eax, eax
mov dword [esi + 0xc8], eax
je 0x10152630
mov dword [eax + 0xc], 1
mov eax, dword [esi + 0xc8]
mov dword [eax + 0x10], 1
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xcc]
cmp ecx, dword [eax + 0x30]
jne 0x101526f1
push dword [esi + 0xc8]
call fcn.10144780
add esp, 4
mov eax, dword [esi + 0xc8]
mov dword [eax + 0xc], 0
push 0
push 0
push dword [esi + 0xc8]
call fcn.10143ac0
add esp, 0xc
mov eax, dword [esi + 0xc8]
push 0
push dword [eax]
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
mov dword [esi + 0xc8], 0
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x1015248a
mov ecx, dword [esi + 0xd4]
mov edi, esi
xor edx, edx
add edi, 0xe4
push 0
push eax
push edi
call fcn.10156040
add esp, 0xc
mov dword [esi + 0xdc], 0
push dword [ebx + 0x28]
push dword [ebx + 0x24]
push dword [esi + 0xc4]
call fcn.101562c0
add esp, 0xc
mov edi, eax
test eax, eax
mov dword [esi + 0xc4], 0
jne 0x10152630
push dword [esi + 8]
call fcn.10144780
add esp, 4
mov eax, dword [esi + 8]
mov ecx, esi
mov dword [eax + 0xc], 0
call fcn.10152a20
mov edi, eax
test eax, eax
jne 0x10152630
push 0
push 0
push dword [esi + 8]
call fcn.10143ac0
add esp, 0xc
mov edi, eax
mov eax, dword [esi + 8]
push 0
push dword [eax]
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
mov dword [esi + 8], 0
jmp 0x10152630
push dword [ebx + 0x28]
push dword [ebx + 0x24]
push 0
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push 4
push dword [ebx + 0x14]
call sym.nss3.dll_SEC_PKCS7CreateSignedData
add esp, 0x1c
test eax, eax
mov dword [esi + 0xc0], eax
mov dword [esp + 4], 0
je 0x101522a2
push 0
push eax
call sym.nss3.dll_SEC_PKCS7IncludeCertChain
add esp, 8
test eax, eax
mov ecx, 0
jne 0x101522a4
lea ebx, [esi + 0xc0]
push dword [ebx]
call sym.nss3.dll_SEC_PKCS7AddSigningTime
mov eax, ebx
add esp, 4
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
jne 0x101522f7
jmp 0x1015260f
lea eax, [esi + 0xb4]
push 0x927c0
push eax
push dword [ebx]
call sym.nss3.dll_SEC_ASN1EncodeInteger_Util
add esp, 0xc
xor ecx, ecx
test eax, eax
je 0x101522a4
lea eax, [esp + 0x18]
push 1
push 1
push 1
push dword [ebx + 0x14]
push eax
push 0
call fcn.10152e80
add esp, 0x18
test eax, eax
je 0x101522a2
push 0x927c0
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0xc]
call fcn.1012f920
add esp, 0xc
mov dword [esp + 8], eax
push 1
push dword [esp + 8]
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
push 0
lea eax, [esp + 0x1c]
push eax
call sym.nss3.dll_SECITEM_FreeItem_Util
add esp, 8
mov eax, dword [ebx + 0x18]
cmp eax, 1
je 0x1015264c
cmp eax, 4
je 0x1015265b
mov ecx, dword [esp + 8]
cmp eax, 3
jne 0x1015260f
mov dword [esp + 4], 0
mov eax, ioctlsocket
jmp 0x1015266c
mov dword [esp + 4], 0
jmp 0x101522a4
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
mov edi, 0xffffffff
mov ecx, esi
call fcn.10152bb0
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.10192ef0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, ioctlsocket
mov dword [esp + 4], 0
jmp 0x10152668
mov dword [esp + 4], 0
mov eax, 0x3c0
mov ecx, dword [esp + 8]
push 0
push 0x14
push ecx
push eax
push 0
call sym.nss3.dll_PK11_KeyGen
add esp, 0x14
mov ebx, eax
push dword [esp + 8]
call fcn.1012fa00
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x101526e8
mov ebx, dword [ebp + 8]
push dword [ebx + 0x18]
call fcn.10152ce0
add esp, 4
lea ecx, [esp + 0x28]
push ecx
push dword [esp + 0x18]
push 0x108
push eax
call sym.nss3.dll_PK11_CreateContextBySymKey
add esp, 0x10
mov dword [esi + 0xd0], eax
push dword [esp + 0x14]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x1015285a
push eax
call sym.nss3.dll_PK11_DigestBegin
add esp, 4
test eax, eax
je 0x10152872
mov ecx, dword [esp + 8]
jmp 0x101522a4
lea edx, [esi + 0x20e4]
lea edi, [esi + 0x20f4]
mov dword [esp + 0x10], edx
mov dword [esp + 8], edi
jmp 0x1015274d
cmp dword [esp + 0xc], 0
mov eax, dword [esi + 4]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [esp + 0xc]
call fcn.101562c0
add esp, 0xc
push 0x2010
push 0
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [esi + 0xcc]
mov eax, dword [esi + 4]
inc ecx
mov dword [esi + 0xcc], ecx
cmp ecx, dword [eax + 0x30]
je 0x10152411
cmp ecx, dword [eax + 0x3c]
jae 0x10152721
mov eax, dword [eax + 0x2c]
mov edi, dword [eax + ecx*4]
cmp dword [edi + 0x18], 0
je 0x10152734
mov eax, dword [edi + 0x1c]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
push eax
call fcn.101539f0
add esp, 4
cmp eax, 0x19
je 0x1015279b
cmp eax, 0x1b
je 0x1015279b
cmp eax, 0x1e
jne 0x10152734
mov ecx, dword [edi + 0x14]
lea eax, [edi + 4]
push 0
push eax
mov dword [esp + 0xc], ecx
push ecx
call fcn.10131710
add esp, 0xc
push dword [esp + 4]
push dword [esi + 0xc8]
push 0x10152900
push dword [esp + 0x18]
call fcn.10155bb0
add esp, 0x10
test eax, eax
je 0x10152721
mov dword [esi + 0x20e4], eax
mov dword [esi + 0x20e8], 0
mov dword [esi + 0x20ec], 0
mov dword [esp + 4], eax
mov dword [esi + 0x20f0], 0x2000
push dword [esp + 0x10]
push 0x10152920
push 0x101a6530
push dword [edi + 0x20]
call fcn.101443f0
add esp, 0x10
test eax, eax
je 0x1015270c
mov edi, eax
push 0
push 0
push eax
call fcn.10143ac0
add esp, 0xc
mov dword [esp + 0xc], eax
push 0
push dword [edi]
call sym.nss3.dll_PORT_FreeArena_Util
add esp, 8
mov eax, dword [esi + 0x20ec]
test eax, eax
je 0x10152707
mov ecx, dword [esi + 0x20e4]
xor edx, edx
push 0
push eax
push dword [esp + 0x10]
call fcn.10156040
add esp, 0xc
mov dword [esi + 0x20ec], 0
jmp 0x10152707
push 0
push 0xffffe013
call sym.nss3.dll_PR_SetError
add esp, 8
mov ecx, dword [esp + 8]
jmp 0x101522a4
mov ecx, dword [esp + 8]
lea eax, [esi + 0xc0]
jmp 0x10152564