Function at 0x1012bd80
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x490
mov edi, dword [ebp + 0xc]
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0x488], eax
xor eax, eax
lea ecx, [esp + 0x84]
mov dword [ecx], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
lea esi, [esp + 0x88]
push 0x400
push ecx
push esi
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.100f9d50
add esp, 0x18
test eax, eax
jne 0x1012be8e
lea ebx, [esp + 0x3c]
mov dword [ebx], esi
mov eax, dword [esp + 0x84]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 0
lea eax, [esp + 0x60]
push eax
push 1
push ebx
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x1012be64
mov eax, dword [esp + 0x60]
xor eax, 0xff
or eax, dword [esp + 0x64]
jne 0x1012be64
lea eax, [esp + 0x58]
push eax
push 2
push ebx
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x1012be64
lea eax, [esp + 0x50]
push eax
push 2
push ebx
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x1012be64
push dword [esp + 0x50]
call fcn.1011a470
add esp, 4
mov esi, eax
lea eax, [esp + 0x48]
push eax
push 1
push ebx
call fcn.10111ab0
add esp, 0xc
test eax, eax
je 0x1012bea9
xor esi, esi
mov edi, 0xffffd01c
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
push 0x2f
push 2
push dword [ebp + 8]
call fcn.100fa900
add esp, 0xc
push esi
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
xor ebx, ebx
dec ebx
mov ecx, dword [esp + 0x488]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
xor ecx, 1
mov eax, ecx
or eax, edx
mov esi, dword [ebp + 0x2c]
sete al
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0xb], al
jne 0x1012bf88
mov dword [esp + 0xc], 0
lea esi, [esp + 0x48]
push esi
push 1
push ebx
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x1012be64
mov al, byte [esp + 0x48]
mov dword [esp + 0x18], eax
push esi
push 2
push ebx
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x1012be64
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
push esi
push 2
push ebx
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x1012be64
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x68]
push eax
push 2
push ebx
call fcn.101119e0
add esp, 0xc
test eax, eax
jne 0x1012be64
mov esi, dword [ebp + 0x2c]
test esi, esi
je 0x1012bfa8
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x1012bf83
xor ecx, ecx
lea edx, [esp + 0x30]
mov dword [edx], ecx
mov esi, dword [esp + 0x68]
mov dword [edx + 4], esi
mov dword [edx + 8], eax
push ecx
push edx
call fcn.100b18c0
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
je 0x1012c1ee
mov esi, dword [ebp + 0x2c]
jmp 0x1012bfa8
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [esp + 0x30]
push eax
push 2
push ebx
call fcn.10111ab0
add esp, 0xc
test eax, eax
jne 0x1012be64
xor ecx, ecx
lea eax, [esp + 0x28]
mov dword [eax + 4], ecx
mov dword [eax], ecx
push eax
push dword [esp + 0x34]
push ebx
call fcn.10111980
add esp, 0xc
test eax, eax
je 0x1012c004
mov esi, 0xffffd01c
xor edi, edi
push edi
push esi
call sym.nss3.dll_PR_SetError
add esp, 8
push 0x2f
push 2
push dword [ebp + 8]
call fcn.100fa900
add esp, 0xc
push edi
push esi
jmp 0x1012be86
cmp dword [ebp + 0x30], 0
mov ebx, dword [ebp + 8]
je 0x1012c0ed
lea eax, [ebx + 0x9d4]
push dword [esp + 0x30]
push eax
push 0
call sym.nss3.dll_SECITEM_AllocItem_Util
add esp, 0xc
test eax, eax
je 0x1012c164
push dword [esp + 0x30]
push dword [esp + 0x2c]
push dword [ebx + 0x9d8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x9dc], eax
mov esi, ebx
mov ebx, dword [esp + 0x40]
sub ebx, dword [esp + 0x44]
push esi
call fcn.1011fa00
add esp, 4
cmp ebx, eax
jne 0x1012c1ca
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x44]
push 0x100fd150
push ebx
push eax
push 0
push 0xfe
push esi
call fcn.10102f30
add esp, 0x18
xor ebx, ebx
dec ebx
test eax, eax
jne 0x1012be91
movzx eax, word [esp + 0x58]
lea ecx, [esp + 0x70]
push ecx
push dword [ebp + 0x10]
push edi
push dword [esp + 0x28]
push eax
push esi
call fcn.10123ec0
add esp, 0x18
test eax, eax
jne 0x1012be91
push 0x100fd150
push dword [esp + 0x78]
push dword [esp + 0x78]
push 0
push 2
push dword [ebp + 8]
call fcn.10102f30
add esp, 0x18
mov esi, eax
lea eax, [esp + 0x70]
push eax
call fcn.10111940
add esp, 4
test esi, esi
mov esi, dword [ebp + 0x2c]
jne 0x1012be91
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1012c0ff
movzx edx, word [esp + 0x58]
mov word [ecx], dx
mov ecx, dword [ebp + 0x1c]
test eax, eax
je 0x1012c10c
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
test ecx, ecx
je 0x1012c11a
xor eax, eax
mov dl, byte [esp + 0xb]
mov al, dl
mov dword [ecx], eax
xor ebx, ebx
mov eax, dword [esp + 0x20]
or dword [esp + 0x24], eax
jne 0x1012be91
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x20]
test ecx, ecx
je 0x1012c13a
mov edx, dword [esp + 0x18]
mov byte [ecx], dl
mov ecx, dword [ebp + 0x24]
test eax, eax
je 0x1012c147
mov edx, dword [esp + 0x14]
mov dword [eax], edx
test ecx, ecx
je 0x1012c151
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
test esi, esi
je 0x1012be91
mov eax, dword [esp + 0xc]
mov dword [esi], eax
jmp 0x1012be91
cmp dword [0x101de200], 0
je 0x1012c2ad
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1012c244
push 0
push dword [eax + 0x28]
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [0x101de200], 0
je 0x1012c2b7
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1012c25f
mov esi, dword [eax + 0x28]
push 0x50
push 2
push ebx
call fcn.100fa900
add esp, 0xc
push 0
jmp 0x1012bffe
xor ebx, ebx
mov edi, 0xffffd01c
push ebx
push edi
call sym.nss3.dll_PR_SetError
add esp, 8
push 0x2f
push 2
push esi
call fcn.100fa900
add esp, 0xc
push ebx
jmp 0x1012be85
cmp dword [0x101de200], 0
je 0x1012c2c1
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1012c27a
push 0
push dword [eax + 0x28]
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [0x101de200], 0
je 0x1012c2cb
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1012c295
mov esi, dword [eax + 0x28]
push 0x2f
push 2
push dword [ebp + 8]
jmp 0x1012c1bb
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1012c185
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1012c1b3
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1012c20b
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
jmp 0x1012c235
call fcn.100745e0
jmp 0x1012c171
call fcn.100745e0
jmp 0x1012c19f
call fcn.100745e0
jmp 0x1012c1fb
call fcn.100745e0
jmp 0x1012c225