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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x454
mov esi, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x3dc]
test eax, eax
je 0x10102a57
xor ebx, ebx
jmp 0x10102a6a
cmp dword [esi + 0x3d8], 0
je 0x10102a53
cmp dword [esi + 0x3d4], 0
setne bl
cmp dword [esi + 0x544], 0
je 0x10102a7c
push 0
push 0xffffe001
jmp 0x10102a96
cmp dword [esi + 0x534], 0
je 0x10102ab8
mov dword [esi + 0x544], fcn.10102a30
push 0
push 0xffffe892
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
mov eax, ebx
add esp, 0x454
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esi + 0x540], 0
je 0x10102ad0
test eax, eax
setne cl
or cl, bl
jne 0x10102a85
cmp dword [esi + 0x38], 0
jne 0x10102a85
test byte [esi + 0x1d], 4
jne 0x10102aea
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
mov eax, dword [esi + 0x3dc]
test eax, eax
mov dword [ebp - 0x45c], ebx
je 0x10102b18
mov dword [esi + 0x3dc], 0
movzx eax, word [esi + 0x58]
cmp eax, 0x303
ja 0x10102b25
push 3
push 0xb
push esi
call fcn.100f5860
add esp, 0xc
jmp 0x10102b5b
test bl, bl
je 0x10102b7e
mov ecx, esi
call fcn.10102450
jmp 0x10102b74
mov eax, dword [esi + 0x9a4]
add eax, 4
push eax
push 0xb
push esi
call fcn.100f5860
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x101033a9
push 1
push dword [esi + 0x9a4]
push dword [esi + 0x9a0]
push esi
call fcn.1010ad70
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x101033a9
xor eax, eax
push 3
push eax
push eax
push esi
call fcn.1010acf0
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x101033a9
mov edi, dword [esi + 0x7c]
test edi, edi
je 0x10102b8e
mov dword [esi + 0x7c], 0
jmp 0x10102ba5
mov ecx, 0xd4
add ecx, dword [esi + 0x78]
call fcn.1008d0f0
mov edi, eax
test eax, eax
je 0x10102d8c
mov eax, dword [esi + 0x48c]
mov eax, dword [eax + 4]
mov dword [esi + 0x8c], eax
push edi
call fcn.1008d800
add esp, 4
mov dword [esi + 0x90], eax
mov eax, dword [esi + 0x48c]
mov eax, dword [eax + 4]
cmp eax, 4
je 0x10102cbf
cmp eax, 2
je 0x10102cd0
cmp eax, 1
jne 0x10102d75
mov dword [ebp - 0x450], edi
xor ebx, ebx
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x44c], ebx
mov dword [ebp - 0x444], ebx
test byte [esi + 0x1d], 4
jne 0x10102c15
push dword [esi + 0x174]
call fcn.100d31d0
add esp, 4
movzx eax, word [esi + 0x58]
mov word [ebp - 0x458], ax
mov eax, dword [esi + 0x3bc]
mov ecx, dword [esi + 0x11c]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 4]
lea edi, [ebp - 0x2c]
mov dword [edi], 0x370
mov dword [edi + 4], 1
mov eax, dword [eax*8 + 0x101c3584]
mov dword [edi + 8], eax
mov dword [ebp - 0x454], ecx
push ecx
push 3
push ebx
push ebx
push edi
call fcn.100cdc10
add esp, 0x14
mov ebx, eax
test eax, eax
jne 0x10102c85
xor eax, eax
push dword [ebp - 0x454]
push 2
push eax
push eax
push edi
call fcn.100cdc10
add esp, 0x14
mov ebx, eax
test eax, eax
je 0x10102fc7
mov edx, dword [ebp - 0x454]
cmp dword [esi + 0xa24], 1
movzx eax, word [esi + 0x5a]
jne 0x10102db5
add eax, 0xfffffcfe
cmp ax, 2
mov edi, dword [ebp - 0x450]
ja 0x10102dbd
cwde
movzx eax, word [eax + eax + 0x101c3ea4]
jmp 0x10102dc0
push edi
push esi
call fcn.10103590
add esp, 8
mov ebx, eax
jmp 0x1010315a
xor eax, eax
mov dword [ebp - 0x43c], eax
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], 0x402
mov dword [ebp - 0x440], 1
cmp dword [edi + 4], 4
jne 0x10102da1
movzx eax, word [esi + 0x58]
mov word [ebp - 0x450], ax
lea eax, [edi + 0x20]
lea ecx, [edi + 0x14]
lea edx, [ebp - 0x434]
lea ebx, [ebp - 0x438]
push edx
push ebx
push eax
push ecx
push esi
call fcn.101136c0
add esp, 0x14
test eax, eax
je 0x10102e1c
lea eax, [ebp - 0x2c]
mov dword [eax], 0x10002
mov ecx, dword [edi + 0x18]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [edi + 0x24]
mov dword [eax + 0x14], ecx
mov ecx, dword [edi + 0x28]
mov dword [eax + 0x18], ecx
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x438], 0x101c3e1c
mov ecx, 0x101c3e1c
jmp 0x10102e28
push 0
push 0xffffe001
call sym.nss3.dll_PR_SetError
add esp, 8
push edi
call sym.nss3.dll_SECKEY_DestroyPublicKey
jmp 0x10102d96
push 0xffffd043
call fcn.1010aec0
add esp, 4
xor ebx, ebx
dec ebx
jmp 0x101033a9
push 0
push 0xffffe00e
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x10103157
mov edi, dword [ebp - 0x450]
jmp 0x10102dc0
xor eax, eax
dec eax
rol ax, 8
lea ecx, [ebp - 0x434]
mov word [ecx], ax
lea eax, [ebp - 0x430]
mov dword [eax + 4], ecx
mov dword [eax + 8], 2
push edx
push 0
push eax
push 0x370
push ebx
call sym.nss3.dll_PK11_KeyGen
add esp, 0x14
lock dec dword [ebx + 0x48]
jne 0x10102e02
push ebx
mov ebx, eax
call fcn.100c9d60
mov eax, ebx
add esp, 4
test eax, eax
jne 0x10102fde
push 0xffffd045
call fcn.1010aec0
add esp, 4
jmp 0x10102fdc
mov ecx, dword [ebp - 0x438]
mov eax, dword [ebp - 0x434]
mov dword [esi + 0x94], ecx
lea edx, [ebp - 0x43c]
push edx
push eax
push ecx
call fcn.100fa570
add esp, 0xc
test eax, eax
je 0x10102e5b
push 0xffffe064
call fcn.1010aec0
add esp, 4
mov ebx, dword [ebp - 0x43c]
jmp 0x10102fba
movzx eax, word [ebp - 0x450]
xor ecx, ecx
cmp eax, 0x301
setae cl
mov ebx, dword [ebp - 0x43c]
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0x454], edx
lea ecx, [ecx*4 + 0x373]
sub esp, 0x28
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edx
movaps xmm0, xmmword [0x101c3550]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x10c
call fcn.100c7750
add esp, 0x28
test eax, eax
je 0x10103132
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x450], edi
mov eax, dword [ebp - 0x434]
mov eax, dword [eax + 0xc]
add eax, 2
push eax
push 0x10
push esi
call fcn.100f5860
add esp, 0xc
test eax, eax
jne 0x10102fa0
mov eax, dword [ebp - 0x454]
mov edi, dword [eax + 0x1c]
mov ebx, dword [eax + 0x34]
lea eax, [ebp - 0x44c]
push 2
push 0
push edi
push eax
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x10102fa0
cmp edi, ebx
je 0x10102f3f
sub ebx, edi
xor edi, edi
push 1
push edi
push edi
lea eax, [ebp - 0x44c]
push eax
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x10102fa0
inc ebx
jne 0x10102f25
mov eax, dword [ebp - 0x454]
push dword [eax + 0x34]
push dword [eax + 0x30]
lea eax, [ebp - 0x44c]
push eax
call fcn.1010a420
add esp, 0xc
test eax, eax
jne 0x10102fa0
mov edx, dword [ebp - 0x44c]
mov ecx, esi
push 0
push dword [ebp - 0x448]
call fcn.1010ab50
add esp, 8
test eax, eax
jne 0x10102fa0
push 1
push dword [ebp - 0x458]
push esi
call fcn.100f3b30
add esp, 0xc
test eax, eax
je 0x101034ae
push 0xffffd045
call fcn.1010aec0
add esp, 4
push dword [ebp - 0x458]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov edi, dword [ebp - 0x450]
mov ebx, dword [ebp - 0x460]
test ebx, ebx
jne 0x1010313f
jmp 0x10103148
push 0
push 0xffffd054
call sym.nss3.dll_PR_SetError
add esp, 8
mov edi, dword [ebp - 0x450]
xor eax, eax
test byte [esi + 0x1d], 4
jne 0x10102ff6
push dword [esi + 0x174]
mov ebx, eax
call fcn.100d32c0
mov eax, ebx
add esp, 4
test eax, eax
je 0x10103038
mov dword [ebp - 0x454], eax
push edi
call fcn.1008d800
add esp, 4
lea ecx, [eax + 7]
shr ecx, 3
mov dword [ebp - 0x444], ecx
cmp eax, 0x2001
jb 0x10103082
push 0x2f
push 2
push esi
call fcn.100f2eb0
add esp, 0xc
push 0xffffd045
call fcn.1010aec0
add esp, 4
jmp 0x1010304f
push 0xffffd045
call fcn.1010aec0
add esp, 4
mov dword [ebp - 0x454], 0
xor ebx, ebx
dec ebx
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x10103066
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x454]
test eax, eax
je 0x1010315a
push eax
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
jmp 0x1010315a
push ecx
call sym.nss3.dll_PORT_Alloc_Util
add esp, 4
mov dword [ebp - 0x448], eax
xor ebx, ebx
dec ebx
test eax, eax
je 0x10103052
xor eax, eax
cmp dword [edi + 4], 1
sete al
lea eax, [eax + eax - 1]
lea ecx, [ebp - 0x44c]
push ecx
push dword [ebp - 0x454]
push 0
push eax
push edi
call fcn.100c68f0
add esp, 0x14
test eax, eax
je 0x101030d6
push 0xffffd045
mov ebx, eax
call fcn.1010aec0
add esp, 4
jmp 0x10103052
movzx edi, word [ebp - 0x458]
mov ecx, dword [ebp - 0x444]
lea eax, [ecx + 2]
cmp edi, 0x301
mov dword [ebp - 0x458], ecx
cmovb eax, ecx
push eax
push 0x10
push esi
call fcn.100f5860
add esp, 0xc
test eax, eax
jne 0x1010345a
mov edx, dword [ebp - 0x448]
cmp edi, 0x301
jb 0x10103444
push 2
push dword [ebp - 0x458]
push edx
push esi
call fcn.1010ad70
add esp, 0x10
jmp 0x10103456
push 0xffffd045
call fcn.1010aec0
add esp, 4
push ebx
call fcn.10115550
add esp, 4
lea eax, [ebp - 0x44c]
push eax
call fcn.1010a940
add esp, 4
xor ebx, ebx
dec ebx
push edi
call sym.nss3.dll_SECKEY_DestroyPublicKey
add esp, 4
test ebx, ebx
jne 0x101033a9
cmp byte [ebp - 0x45c], 0
je 0x1010336e
mov edi, dword [esi + 0x3d4]
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
test byte [esi + 0x1d], 4
jne 0x1010319d
push dword [esi + 0x174]
call fcn.100d3060
add esp, 4
cmp dword [esi + 0x454], 3
jne 0x101031cb
push dword [esi + 0x488]
call fcn.100f5b00
add esp, 4
mov ecx, dword [esi + 0x494]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
mov edx, 4
cmovne edx, ecx
cmp eax, edx
jne 0x1010323f
mov edx, dword [esi + 0x3bc]
lea eax, [ebp - 0x430]
mov ecx, esi
push 0
push eax
call fcn.100f6140
add esp, 8
mov ebx, eax
test byte [esi + 0x1d], 4
jne 0x101031fa
push dword [esi + 0x174]
call fcn.100d3140
add esp, 4
test ebx, ebx
jne 0x10103341
movzx ecx, word [esi + 0x58]
xor eax, eax
mov dword [ebp - 0x45c], ecx
cmp ecx, 0x301
setae al
mov ebx, dword [esi + 0x488]
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x430]
push ecx
push eax
push ebx
push edi
push edx
call fcn.100f30e0
add esp, 0x14
test eax, eax
je 0x10103273
xor ebx, ebx
dec ebx
jmp 0x10103341
mov ecx, dword [esi + 0x458]
mov edx, dword [esi + 0x45c]
lea ebx, [ebp - 0x430]
push ebx
push eax
call fcn.100f66d0
add esp, 8
test eax, eax
je 0x10103290
mov ebx, eax
push 0xffffd07f
call fcn.1010aec0
add esp, 4
jmp 0x101031e6
cmp dword [esi + 0x60], 0
je 0x10103297
mov dword [esi + 0x88], ebx
push ebx
call fcn.100f33b0
add esp, 4
mov dword [esi + 0x80], eax
jmp 0x101032dd
xor ebx, ebx
jmp 0x101031e6
mov ecx, dword [esi + 0xc4]
mov eax, dword [edi + 8]
lock inc dword [eax + 0x48]
movzx edx, word [eax + 0x80]
mov word [ecx + 0xe8], dx
mov edx, dword [eax + 0x40]
mov dword [ecx + 0xe4], edx
mov edx, dword [eax + 4]
mov edx, dword [edx + 0x38]
mov dword [ecx + 0xe0], edx
mov byte [ecx + 0xeb], 1
lock dec dword [eax + 0x48]
jne 0x101032dd
push eax
call fcn.100c9d60
add esp, 4
movzx edi, word [ebp - 0x45c]
xor eax, eax
cmp edi, 0x303
sete al
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + eax*2 + 2]
push eax
push 0xf
push esi
call fcn.100f5860
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x10103341
cmp edi, 0x303
jne 0x1010332e
mov eax, dword [esi + 0x488]
mov ecx, eax
sar ecx, 0x1f
push 2
push ecx
push eax
push esi
call fcn.1010acf0
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x10103341
push 2
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push esi
call fcn.1010ad70
add esp, 0x10
mov ebx, eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10103352
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push dword [esi + 0x3d4]
call sym.nss3.dll_SECKEY_DestroyPrivateKey
add esp, 4
mov dword [esi + 0x3d4], 0
test ebx, ebx
jne 0x101033a9
mov ecx, esi
call fcn.101026d0
mov ebx, eax
test eax, eax
jne 0x101033a9
mov dword [esi + 0x3c], 1
cmp dword [esi + 0x38], 0
jne 0x1010339a
mov eax, dword [esi + 0x1c]
bt eax, 0x10
jae 0x1010339a
cmp dword [esi + 0x540], 0
je 0x10103406
mov ecx, esi
xor edx, edx
call fcn.10102770
mov ebx, eax
test eax, eax
je 0x101033c6
test byte [esi + 0x1d], 4
jne 0x10102aa1
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
jmp 0x10102aa1
test byte [esi + 0x1d], 4
jne 0x101033da
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
push 0x23
push esi
call fcn.10104970
add esp, 8
test eax, eax
je 0x101033f5
mov dword [esi + 0x450], 0xe
jmp 0x101033ff
mov dword [esi + 0x450], 6
xor ebx, ebx
jmp 0x10102aa1
bt eax, 0xa
jb 0x1010341a
push dword [esi + 0x168]
call sym.nss3.dll_PR_ExitMonitor
add esp, 4
mov ecx, esi
call fcn.100fb300
mov ebx, eax
test byte [esi + 0x1d], 4
jne 0x10103437
push dword [esi + 0x168]
call sym.nss3.dll_PR_EnterMonitor
add esp, 4
test ebx, ebx
jne 0x101033a9
jmp 0x1010339a
mov ecx, esi
push 0
push dword [ebp - 0x458]
call fcn.1010ab50
add esp, 8
test eax, eax
je 0x10103467
mov ebx, eax
mov edi, dword [ebp - 0x450]
jmp 0x10103052
push 1
mov edi, dword [ebp - 0x454]
push edi
push esi
call fcn.100f3b30
add esp, 0xc
mov dword [ebp - 0x458], eax
push edi
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
mov dword [ebp - 0x454], 0
cmp dword [ebp - 0x458], 0
je 0x101034aa
push 0xffffd045
call fcn.1010aec0
add esp, 4
jmp 0x1010345c
xor ebx, ebx
jmp 0x1010345c
lea eax, [ebp - 0x44c]
push eax
call fcn.1010a940
add esp, 4
push dword [ebp - 0x458]
call sym.nss3.dll_PK11_FreeSymKey
add esp, 4
push dword [ebp - 0x460]
call fcn.10115550
add esp, 4
xor ebx, ebx
mov edi, dword [ebp - 0x450]
jmp 0x1010315a