Function at 0x10177fd0
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, 0x30
mov eax, dword [0x101d2014]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0x28], eax
mov esi, dword [ebx + 0xc4]
test esi, esi
je 0x10177ffd
cmp byte [esi + 0xce], 0
je 0x1017801c
cmp dword [ebx + 0x60], 0
je 0x1017802f
push ebx
call fcn.10180820
add esp, 4
push edx
push eax
push dword [ebx + 0xc4]
call fcn.1017ab50
add esp, 0xc
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.10192ef0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebx + 0x138], 0
je 0x101781a0
cmp dword [esi + 0x134], 0
je 0x1017801c
cmp byte [esi + 0xeb], 0
jne 0x1017801c
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov ecx, eax
or ecx, edx
jne 0x1017806f
push ebx
call fcn.10180820
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 0x1017809c
mov ecx, dword [esi + 0x120]
imul edi, ecx, 0xf4240
cmp ecx, 0x2a300
mov ecx, 0x3baec000
cmovbe ecx, edi
add eax, ecx
adc edx, 0
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
cmp dword [esi + 0x138], 0
je 0x1017818c
cmp byte [esi + 0xce], 0
je 0x1017818c
cmp dword [esi + 0x28], 0
je 0x1017818c
lea edi, [esp + 0x10]
push 1
push 0
push 2
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017801c
push 8
push dword [esi + 0x14]
push dword [esi + 0x10]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 8
push dword [esi + 0x5c]
push dword [esi + 0x58]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 8
push dword [esi + 0x11c]
push dword [esi + 0x118]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 4
push 0
push dword [esi + 0x120]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 4
push 0
push dword [esi + 0x124]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 4
push 0
push dword [esi + 0x128]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 4
push 0
push dword [esi + 0x12c]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
je 0x101782c4
push 0
push 0xffffe005
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1017801c
push ebx
call fcn.10180820
add esp, 4
mov ebx, dword [ebx + 0xc4]
cmp dword [ebx + 0x28], 0
je 0x1017801c
cmp byte [ebx + 0x78], 0
mov esi, eax
mov edi, edx
je 0x10178298
xor eax, eax
push eax
push eax
call sym.nss3.dll_PR_NewRWLock
add esp, 8
test eax, eax
mov dword [ebx + 0x110], eax
je 0x1017801c
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x54]
mov edx, eax
or edx, ecx
jne 0x101781fd
mov eax, esi
mov ecx, edi
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x54], edi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], edi
mov edx, dword [ebx + 0x58]
or edx, dword [ebx + 0x5c]
jne 0x1017822a
mov edx, dword [ebx + 0x120]
mov edi, 0x3baec000
imul esi, edx, 0xf4240
cmp edx, 0x2a300
cmovbe edi, esi
add eax, edi
adc ecx, 0
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], ecx
cmp byte [0x101d6624], 0
jne 0x10178245
push 0x10177400
push 0x101d6628
call sym.nss3.dll_PR_CallOnce
add esp, 8
mov edi, dword [0x101d6634]
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x101782f4
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 [0x101d6638]
mov dword [ebx], eax
mov dword [0x101d6638], ebx
push dword [0x101d6634]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1017801c
cmp dword [ebx + 0x134], 0
je 0x1017801c
lea eax, [ebx + 0x79]
push 0x20
push eax
call sym.nss3.dll_PK11_GenerateRandom
add esp, 8
test eax, eax
jne 0x1017801c
mov byte [ebx + 0x78], 0x20
jmp 0x101781c7
mov eax, dword [esi + 0x18]
push 3
push dword [eax + 0x44]
push dword [eax + 0x40]
push edi
call fcn.10175c30
add esp, 0x10
test eax, eax
jne 0x1017801c
mov eax, dword [esi + 0x20]
cmp eax, 2
jb 0x1017830a
push 0
push 0xffffe001
jmp 0x10178193
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x10178261
cmp eax, 1
jne 0x10178321
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10178321
push 2
push ecx
push dword [eax + 4]
jmp 0x10178327
xor eax, eax
push 2
push eax
push eax
push edi
call fcn.10175c30
add esp, 0x10
test eax, eax
jne 0x1017801c
mov eax, dword [esi + 0x24]
test eax, eax
mov dword [esp + 4], eax
je 0x10178358
push dword [esp + 4]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0x100
jae 0x101782e8
jmp 0x1017835a
xor eax, eax
push 1
push eax
push dword [esp + 0xc]
push edi
call fcn.10175c30
add esp, 0x10
test eax, eax
jne 0x1017801c
mov eax, dword [esi + 0x28]
test eax, eax
mov dword [esp + 4], eax
je 0x1017818c
push dword [esp + 4]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x1017818c
cmp eax, 0x100
jae 0x101782e8
push 1
push eax
push dword [esp + 0xc]
push edi
call fcn.10175c30
add esp, 0x10
test eax, eax
jne 0x1017801c
mov eax, dword [esi + 0x30]
test eax, eax
je 0x101783c9
push 3
push dword [eax + 0x44]
push dword [eax + 0x40]
jmp 0x101783cf
xor eax, eax
push 3
push eax
push eax
push edi
call fcn.10175c30
add esp, 0x10
test eax, eax
jne 0x1017801c
push 8
push dword [esi + 0x3c]
push dword [esi + 0x38]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 8
push dword [esi + 0x44]
push dword [esi + 0x40]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
movzx eax, word [esi + 0x48]
push 2
push 0
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
movzx eax, word [esi + 0x4a]
push 2
push 0
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 8
push dword [esi + 0x54]
push dword [esi + 0x50]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
mov eax, dword [esi + 0x60]
mov ecx, eax
sar ecx, 0x1f
push 2
push ecx
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 4
push 0
push dword [esi + 0x64]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
mov eax, dword [esi + 0x68]
mov ecx, eax
sar ecx, 0x1f
push 2
push ecx
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 4
push 0
push dword [esi + 0x6c]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
mov eax, dword [esi + 0x70]
mov ecx, eax
sar ecx, 0x1f
push 3
push ecx
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
mov eax, dword [esi + 0x74]
mov ecx, eax
sar ecx, 0x1f
push 3
push ecx
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
movzx eax, byte [esi + 0x78]
push 1
push 0
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
lea eax, [esi + 0x79]
push 1
push 0x20
push eax
push edi
call fcn.10175c30
add esp, 0x10
test eax, eax
jne 0x1017801c
movzx eax, word [esi + 0x9a]
push 2
push 0
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
movzx eax, byte [esi + 0x9c]
push 1
push 0
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
lea eax, [esi + 0x9d]
push 1
push 0x30
push eax
push edi
call fcn.10175c30
add esp, 0x10
test eax, eax
jne 0x1017801c
movzx eax, byte [esi + 0xcd]
push 1
push 0
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
movzx eax, byte [esi + 0xcf]
push 1
push 0
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 8
push 0
push dword [esi + 0xd0]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 8
push 0
push dword [esi + 0xd4]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 8
push 0
push dword [esi + 0xd8]
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
movzx eax, word [esi + 0xdc]
push 4
push 0
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
movzx eax, word [esi + 0xde]
push 2
push 0
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
movsx eax, byte [esi + 0xea]
mov ecx, eax
sar ecx, 0x1f
push 1
push ecx
push eax
push edi
call fcn.10175b50
add esp, 0x10
test eax, eax
jne 0x1017818c
push 1
push dword [esi + 0xf4]
push dword [esi + 0xf0]
push edi
call fcn.10175c30
add esp, 0x10
test eax, eax
jne 0x1017801c
push 2
push dword [esi + 0x100]
push dword [esi + 0xfc]
push edi
call fcn.10175c30
add esp, 0x10
test eax, eax
jne 0x1017801c
push 1
push dword [esi + 0x10c]
push dword [esi + 0x108]
push edi
call fcn.10175c30
add esp, 0x10
test eax, eax
jne 0x1017801c
push 2
push dword [esi + 0x138]
push dword [esi + 0x134]
push edi
call fcn.10175c30
add esp, 0x10
test eax, eax
jne 0x1017801c
mov eax, dword [ebx]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x13c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
call dword [section..00cfg]
push dword [esp + 8]
push ebx
push dword [esp + 0x14]
push dword [esp + 0x10]
call ecx
add esp, 0x10
test eax, eax
jne 0x10178733
mov dword [esi + 4], 4
push edi
call fcn.10175fe0
jmp 0x10178290