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

Disassembly:
sub esp, 0xb4
push ebx
mov ebx, dword [esp + 0xc0]
mov eax, ebx
push edi
shr eax, 3
or edi, 0xffffffff
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x14], 0
cmp dword [esp + 0xcc], eax
jb 0x1001c489
cmp dword [esp + 0xd0], 0
je 0x1001c489
cmp dword [esp + 0xd4], 0
je 0x1001c489
push esi
push 0x800
call sub.nssutil3.dll_PORT_NewArena_Util
mov esi, eax
add esp, 4
test esi, esi
jne 0x1001bc75
push 0xffffe013
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
or eax, edi
pop esi
pop edi
pop ebx
add esp, 0xb4
ret
push ebp
push 0x28
push esi
call sub.nssutil3.dll_PORT_ArenaZAlloc_Util
mov ebp, eax
add esp, 8
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x1001bcae
push 0xffffe013
call sub.nssutil3.dll_PORT_SetError_Util
push 1
push esi
call sub.nssutil3.dll_PORT_FreeArena_Util
add esp, 0xc
or eax, 0xffffffff
pop ebp
pop esi
pop edi
pop ebx
add esp, 0xb4
ret
push 0x800
mov dword [ebp], esi
call sub.nssutil3.dll_PORT_NewArena_Util
mov esi, eax
add esp, 4
test esi, esi
jne 0x1001bcd5
push 0xffffe013
call sub.nssutil3.dll_PORT_SetError_Util
push 1
push dword [ebp]
jmp 0x1001bc98
push 0x20
push esi
call sub.nssutil3.dll_PORT_ArenaZAlloc_Util
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1001bd15
push 0xffffe013
call sub.nssutil3.dll_PORT_SetError_Util
push 1
push esi
call sub.nssutil3.dll_PORT_FreeArena_Util
push 1
push dword [ebp]
call sub.nssutil3.dll_PORT_FreeArena_Util
add esp, 0x14
or eax, 0xffffffff
pop ebp
pop esi
pop edi
pop ebx
add esp, 0xb4
ret
mov dword [eax], esi
lea ebp, [eax + 8]
lea eax, [esp + 0x64]
mov dword [esp + 0x20], ebp
push eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xc4], 0
call fcn.100299e0
mov esi, eax
add esp, 4
test esi, esi
js 0x1001c37d
lea eax, [esp + 0x48]
push eax
call fcn.100299e0
mov esi, eax
add esp, 4
test esi, esi
js 0x1001c37d
lea eax, [esp + 0x94]
push eax
call fcn.100299e0
mov esi, eax
add esp, 4
test esi, esi
js 0x1001c37d
lea eax, [esp + 0x84]
push eax
call fcn.100299e0
mov esi, eax
add esp, 4
test esi, esi
js 0x1001c37d
lea eax, [esp + 0xa4]
push eax
call fcn.100299e0
mov esi, eax
add esp, 4
test esi, esi
js 0x1001c37d
lea eax, [esp + 0xb4]
push eax
call fcn.100299e0
mov esi, eax
add esp, 4
test esi, esi
js 0x1001c37d
push ebx
mov ebx, dword [esp + 0xcc]
push ebx
call fcn.1001a470
lea ecx, [ebx - 1]
mov dword [esp + 0x20], eax
push eax
mov dword [esp + 0x8c], ecx
call fcn.10019200
mov ecx, eax
xor edx, edx
shl ecx, 3
lea eax, [ebx - 1]
add esp, 0xc
div ecx
mov dword [esp + 0x30], eax
jmp 0x1001be30
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xd4]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 0x3e8
jg 0x1001c370
mov eax, dword [esp + 0x14]
mov dword [ebp + 8], ecx
push dword [eax]
push ebp
call fcn.1001a4b0
mov edi, eax
add esp, 8
test edi, edi
jne 0x1001c37d
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x1001be91
mov ecx, dword [esp + 0xd4]
lea eax, [esp + 0x48]
push eax
push ebp
lea eax, [ecx*8]
push eax
call fcn.1001b9e0
add esp, 0xc
jmp 0x1001beb3
cmp eax, 1
jne 0x1001bff9
lea eax, [esp + 0x48]
push eax
push ebp
push dword [esp + 0xd4]
push dword [esp + 0x24]
call fcn.1001b880
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x1001c37d
push dword [esp + 0xcc]
push ebx
call fcn.1001c510
push eax
lea eax, [esp + 0x54]
push eax
call fcn.10026960
add esp, 0x10
mov esi, eax
neg eax
sbb eax, eax
mov dword [esp + 0x38], eax
jne 0x1001be30
mov ebx, dword [esp + 0xd0]
mov eax, dword [esp + 0xc8]
neg ebx
sbb ebx, ebx
add ebx, 2
cmp eax, 0x400
jb 0x1001bf11
lea ecx, [eax*4 - 1]
mov dword [esp + 0x34], ecx
jmp 0x1001bf19
mov dword [esp + 0x34], 0xfff
xor ebp, ebp
jmp 0x1001bf20
mov edx, dword [esp + 0xd4]
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x4c]
push ecx
push dword [esp + 0x28]
lea ecx, [edx*8]
push ecx
push ebx
push dword [esp + 0xe0]
push eax
push dword [esp + 0x34]
call fcn.1001a950
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x1001c37d
push 1
push dword [esp + 0x84]
lea eax, [esp + 0xac]
push eax
call fcn.10028d80
mov esi, eax
add esp, 0xc
test esi, esi
js 0x1001c37d
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.10029080
add esp, 8
test eax, eax
js 0x1001bfc5
push dword [esp + 0xcc]
push dword [esp + 0xcc]
call fcn.1001c510
push eax
lea eax, [esp + 0x70]
push eax
call fcn.10026960
add esp, 0x10
mov esi, eax
neg eax
sbb eax, eax
mov dword [esp + 0x38], eax
je 0x1001bfdf
mov eax, dword [esp + 0x30]
inc ebp
inc eax
add ebx, eax
cmp ebp, dword [esp + 0x34]
ja 0x1001bfe9
mov eax, dword [esp + 0xc8]
jmp 0x1001bf20
cmp ebp, dword [esp + 0x34]
jbe 0x1001c120
mov ebx, dword [esp + 0xc8]
mov ebp, dword [esp + 0x20]
jmp 0x1001be30
mov eax, dword [ebp]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0xdc]
push dword [esp + 0x2c]
call fcn.1001b4f0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1001c37d
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [ebx + 1]
shr eax, 1
inc eax
push eax
push dword [esp + 0x2c]
call fcn.1001b4f0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1001c37d
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0xc4]
push eax
push ebx
push dword [esp + 0x30]
call fcn.1001ada0
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x1001c37d
mov ecx, dword [esp + 0x60]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
add eax, ecx
mov dword [ebp + 8], eax
push eax
mov eax, dword [esp + 0x18]
push dword [eax]
call sub.nssutil3.dll_PORT_ArenaZAlloc_Util
add esp, 8
mov dword [ebp + 4], eax
test eax, eax
je 0x1001c37d
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push eax
call fcn.1003cf40
push dword [esp + 0x50]
mov eax, dword [ebp + 4]
push dword [esp + 0x50]
add eax, dword [esp + 0x40]
push eax
call fcn.1003cf40
push dword [esp + 0x78]
mov eax, dword [ebp + 4]
add eax, dword [esp + 0x60]
push dword [esp + 0x78]
add eax, dword [esp + 0x4c]
push eax
call fcn.1003cf40
add esp, 0x24
xor ebp, ebp
jmp 0x1001c127
mov ebx, dword [esp + 0xc8]
cmp dword [esp + 0xd0], 0
jne 0x1001c208
shr ebx, 3
lea eax, [esp + 0x74]
push ebx
push eax
push 0
call sub.nssutil3.dll_SECITEM_AllocItem_Util
add esp, 0xc
cmp dword [esp + 0x78], 0
je 0x1001c37d
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.1001a3e0
mov edi, eax
add esp, 8
test edi, edi
jne 0x1001c37d
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x74]
push eax
call fcn.1001a500
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1001c37d
cmp dword [esp + 0x38], 1
jne 0x1001c153
lea eax, [esp + 0x84]
push eax
call fcn.1002aa80
add esp, 4
test eax, eax
jg 0x1001c1c6
lea esi, [edi - 3]
jmp 0x1001c37d
mov ebx, dword [esp + 0x14]
push eax
lea eax, [ebx + 0x14]
push eax
push dword [ebx]
call sub.nssutil3.dll_SECITEM_AllocItem_Util
mov eax, dword [ebx + 0x18]
add esp, 0xc
test eax, eax
jne 0x1001c1e8
lea esi, [eax - 2]
jmp 0x1001c37d
push dword [ebx + 0x1c]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.1002a950
mov esi, eax
add esp, 0xc
test esi, esi
js 0x1001c37d
jmp 0x1001c25b
mov ebx, dword [esp + 0x14]
push 1
push dword [ebx]
call sub.nssutil3.dll_PORT_ArenaZAlloc_Util
add esp, 8
mov dword [ebx + 0x18], eax
test eax, eax
je 0x1001c37d
mov dword [ebx + 0x1c], 1
mov byte [eax], 1
lea eax, [esp + 0x94]
push eax
push 1
push dword [esp + 0x28]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x2c]
call fcn.1001a690
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1001c37d
lea eax, [esp + 0x64]
push eax
call fcn.1002aa80
mov ebx, dword [esp + 0x14]
add esp, 4
test eax, eax
jg 0x1001c27a
mov esi, 0xfffffffd
jmp 0x1001c381
push eax
lea eax, [ebx + 4]
push eax
push dword [ebx]
call sub.nssutil3.dll_SECITEM_AllocItem_Util
mov eax, dword [ebx + 8]
add esp, 0xc
test eax, eax
jne 0x1001c298
lea esi, [eax - 2]
jmp 0x1001c381
push dword [ebx + 0xc]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.1002a950
mov esi, eax
add esp, 0xc
test esi, esi
js 0x1001c381
lea eax, [esp + 0x48]
push eax
call fcn.1002aa80
add esp, 4
test eax, eax
jg 0x1001c2ce
mov esi, 0xfffffffd
jmp 0x1001c381
push eax
lea eax, [ebx + 0x10]
push eax
push dword [ebx]
call sub.nssutil3.dll_SECITEM_AllocItem_Util
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
jne 0x1001c2ec
lea esi, [eax - 2]
jmp 0x1001c381
push dword [ebx + 0x18]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.1002a950
mov esi, eax
add esp, 0xc
test esi, esi
js 0x1001c381
lea eax, [esp + 0x94]
push eax
call fcn.1002aa80
add esp, 4
test eax, eax
jg 0x1001c31e
mov esi, 0xfffffffd
jmp 0x1001c381
push eax
lea eax, [ebx + 0x1c]
push eax
push dword [ebx]
call sub.nssutil3.dll_SECITEM_AllocItem_Util
mov eax, dword [ebx + 0x20]
add esp, 0xc
test eax, eax
jne 0x1001c339
lea esi, [eax - 2]
jmp 0x1001c381
push dword [ebx + 0x24]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.1002a950
mov esi, eax
add esp, 0xc
test esi, esi
js 0x1001c381
mov eax, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [esp + 0xd8]
mov dword [eax + 4], ebp
mov dword [ecx], ebx
mov ecx, dword [esp + 0xdc]
mov dword [ecx], eax
jmp 0x1001c381
push 0xffffe03f
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1001c392
push eax
call sub.nssutil3.dll_PORT_Free_Util
add esp, 4
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x1001c3a3
push eax
call sub.nssutil3.dll_PORT_Free_Util
add esp, 4
lea eax, [esp + 0x64]
push eax
call fcn.10029030
lea eax, [esp + 0x4c]
push eax
call fcn.10029030
lea eax, [esp + 0x9c]
push eax
call fcn.10029030
lea eax, [esp + 0x90]
push eax
call fcn.10029030
lea eax, [esp + 0xb4]
push eax
call fcn.10029030
lea eax, [esp + 0xc8]
push eax
call fcn.10029030
add esp, 0x18
test esi, esi
je 0x1001c449
cmp esi, 0xfffffffc
je 0x1001c437
cmp esi, 0xfffffffd
je 0x1001c425
cmp esi, 0xfffffffe
je 0x1001c413
push 0xffffe001
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
or edi, 0xffffffff
jmp 0x1001c44d
push 0xffffe013
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
or edi, 0xffffffff
jmp 0x1001c44d
push 0xffffe002
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
or edi, 0xffffffff
jmp 0x1001c44d
push 0xffffe005
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
or edi, 0xffffffff
jmp 0x1001c44d
test edi, edi
je 0x1001c466
push 1
push dword [ebx]
call sub.nssutil3.dll_PORT_FreeArena_Util
mov eax, dword [esp + 0x1c]
push 1
push dword [eax]
call sub.nssutil3.dll_PORT_FreeArena_Util
add esp, 0x10
cmp dword [esp + 0x78], 0
je 0x1001c47c
lea eax, [esp + 0x74]
push 0
push eax
call sub.nssutil3.dll_SECITEM_FreeItem_Util
add esp, 8
pop ebp
pop esi
mov eax, edi
pop edi
pop ebx
add esp, 0xb4
ret
push 0xffffe005
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
or eax, 0xffffffff
pop edi
pop ebx
add esp, 0xb4
ret