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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov eax, dword [0x101ef014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [ebx + 0xc4]
test esi, esi
je 0x1010c9a9
cmp byte [esi + 0xce], 0
je 0x1010c9c8
cmp dword [ebx + 0x60], 0
je 0x1010c9da
push ebx
call fcn.10115610
add esp, 4
push edx
push eax
push dword [ebx + 0xc4]
call fcn.1010f790
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10156ff0
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebx + 0x138], 0
je 0x1010cb49
cmp dword [esi + 0x134], 0
je 0x1010c9c8
cmp byte [esi + 0xeb], 0
jne 0x1010c9c8
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov ecx, eax
or ecx, edx
jne 0x1010ca1a
push ebx
call fcn.10115610
add esp, 4
mov dword [esi + 0x54], edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x58]
or ecx, dword [esi + 0x5c]
jne 0x1010ca47
mov ecx, dword [esi + 0x120]
imul edi, ecx, 0xf4240
cmp ecx, 0x2a301
mov ecx, 0x3baec000
cmovb ecx, edi
add eax, ecx
adc edx, 0
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
cmp dword [esi + 0x138], 0
je 0x1010cb35
cmp byte [esi + 0xce], 0
je 0x1010cb35
cmp dword [esi + 0x28], 0
je 0x1010cb35
lea edi, [ebp - 0x20]
push 1
push 0
push 2
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010c9c8
push 8
push dword [esi + 0x14]
push dword [esi + 0x10]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 8
push dword [esi + 0x5c]
push dword [esi + 0x58]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 8
push dword [esi + 0x11c]
push dword [esi + 0x118]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 4
push 0
push dword [esi + 0x120]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 4
push 0
push dword [esi + 0x124]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 4
push 0
push dword [esi + 0x128]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 4
push 0
push dword [esi + 0x12c]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
je 0x1010cc6d
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1010c9c8
push ebx
call fcn.10115610
add esp, 4
mov ebx, dword [ebx + 0xc4]
cmp dword [ebx + 0x28], 0
je 0x1010c9c8
mov esi, eax
mov edi, edx
cmp byte [ebx + 0x78], 0
je 0x1010cc41
xor eax, eax
push eax
push eax
call sym.nss3.dll_PR_NewRWLock
add esp, 8
mov dword [ebx + 0x110], eax
test eax, eax
je 0x1010c9c8
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x54]
mov edx, eax
or edx, ecx
jne 0x1010cba6
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x54], edi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], edi
mov eax, esi
mov ecx, edi
mov edx, dword [ebx + 0x58]
or edx, dword [ebx + 0x5c]
jne 0x1010cbd3
mov edx, dword [ebx + 0x120]
imul esi, edx, 0xf4240
cmp edx, 0x2a301
mov edx, 0x3baec000
cmovb edx, esi
add eax, edx
adc ecx, 0
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], ecx
cmp byte [0x101f3eac], 0
jne 0x1010cbee
push 0x1010bd20
push 0x101f3eb0
call sym.nss3.dll_PR_CallOnce
add esp, 8
mov edi, dword [0x101f3ebc]
push dword [0x101f25a4]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x1010cce9
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
inc dword [ebx + 8]
mov dword [ebx + 4], 1
mov eax, dword [0x101f3ec0]
mov dword [ebx], eax
mov dword [0x101f3ec0], ebx
push dword [0x101f3ebc]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1010c9c8
cmp dword [ebx + 0x134], 0
je 0x1010c9c8
lea eax, [ebx + 0x79]
push 0x20
push eax
call sym.nss3.dll_PK11_GenerateRandom
add esp, 8
test eax, eax
jne 0x1010c9c8
mov byte [ebx + 0x78], 0x20
jmp 0x1010cb70
mov eax, dword [esi + 0x18]
push 3
push dword [eax + 0x44]
push dword [eax + 0x40]
push edi
call fcn.1010a5a0
add esp, 0x10
test eax, eax
jne 0x1010c9c8
mov eax, dword [esi + 0x20]
cmp eax, 2
jb 0x1010cc9d
push 0
push 0xffffe001
jmp 0x1010cb3c
cmp eax, 1
jne 0x1010ccb4
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1010ccb4
push 2
push ecx
push dword [eax + 4]
jmp 0x1010ccba
xor eax, eax
push 2
push eax
push eax
push edi
call fcn.1010a5a0
add esp, 0x10
test eax, eax
jne 0x1010c9c8
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1010cd06
push dword [ebp - 0x24]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0x100
jae 0x1010cc91
jmp 0x1010cd08
sub esp, 0x10
movaps xmm0, xmmword [0x101af1a0]
movups xmmword [esp], xmm0
call fcn.1006d800
add esp, 0x10
mov esi, eax
jmp 0x1010cc0a
xor eax, eax
push 1
push eax
push dword [ebp - 0x24]
push edi
call fcn.1010a5a0
add esp, 0x10
test eax, eax
jne 0x1010c9c8
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1010cb35
push dword [ebp - 0x24]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x1010cb35
cmp eax, 0x100
jae 0x1010cc91
push 1
push eax
push dword [ebp - 0x24]
push edi
call fcn.1010a5a0
add esp, 0x10
test eax, eax
jne 0x1010c9c8
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1010cd73
push 3
push dword [eax + 0x44]
push dword [eax + 0x40]
jmp 0x1010cd79
xor eax, eax
push 3
push eax
push eax
push edi
call fcn.1010a5a0
add esp, 0x10
test eax, eax
jne 0x1010c9c8
push 8
push dword [esi + 0x3c]
push dword [esi + 0x38]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 8
push dword [esi + 0x44]
push dword [esi + 0x40]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
movzx eax, word [esi + 0x48]
push 2
push 0
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
movzx eax, word [esi + 0x4a]
push 2
push 0
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 8
push dword [esi + 0x54]
push dword [esi + 0x50]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
mov eax, dword [esi + 0x60]
mov ecx, eax
sar ecx, 0x1f
push 2
push ecx
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 4
push 0
push dword [esi + 0x64]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
mov eax, dword [esi + 0x68]
mov ecx, eax
sar ecx, 0x1f
push 2
push ecx
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 4
push 0
push dword [esi + 0x6c]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
mov eax, dword [esi + 0x70]
mov ecx, eax
sar ecx, 0x1f
push 3
push ecx
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
mov eax, dword [esi + 0x74]
mov ecx, eax
sar ecx, 0x1f
push 3
push ecx
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
movzx eax, byte [esi + 0x78]
push 1
push 0
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
lea eax, [esi + 0x79]
push 1
push 0x20
push eax
push edi
call fcn.1010a5a0
add esp, 0x10
test eax, eax
jne 0x1010c9c8
movzx eax, word [esi + 0x9a]
push 2
push 0
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
movzx eax, byte [esi + 0x9c]
push 1
push 0
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
lea eax, [esi + 0x9d]
push 1
push 0x30
push eax
push edi
call fcn.1010a5a0
add esp, 0x10
test eax, eax
jne 0x1010c9c8
movzx eax, byte [esi + 0xcd]
push 1
push 0
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
movzx eax, byte [esi + 0xcf]
push 1
push 0
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 8
push 0
push dword [esi + 0xd0]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 8
push 0
push dword [esi + 0xd4]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 8
push 0
push dword [esi + 0xd8]
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
movzx eax, word [esi + 0xdc]
push 4
push 0
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
movzx eax, word [esi + 0xde]
push 2
push 0
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
movsx eax, byte [esi + 0xea]
mov ecx, eax
sar ecx, 0x1f
push 1
push ecx
push eax
push edi
call fcn.1010a4c0
add esp, 0x10
test eax, eax
jne 0x1010cb35
push 1
push dword [esi + 0xf4]
push dword [esi + 0xf0]
push edi
call fcn.1010a5a0
add esp, 0x10
test eax, eax
jne 0x1010c9c8
push 2
push dword [esi + 0x100]
push dword [esi + 0xfc]
push edi
call fcn.1010a5a0
add esp, 0x10
test eax, eax
jne 0x1010c9c8
push 1
push dword [esi + 0x10c]
push dword [esi + 0x108]
push edi
call fcn.1010a5a0
add esp, 0x10
test eax, eax
jne 0x1010c9c8
push 2
push dword [esi + 0x138]
push dword [esi + 0x134]
push edi
call fcn.1010a5a0
add esp, 0x10
test eax, eax
jne 0x1010c9c8
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebx + 0x138]
mov eax, dword [ebx + 0x13c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x1c]
call dword [section..00cfg]
push dword [ebp - 0x28]
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call ecx
add esp, 0x10
test eax, eax
jne 0x1010d0d5
mov dword [esi + 4], 4
push edi
call fcn.1010a940
jmp 0x1010cc39