Function at 0x4e37b0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push esi
push edi
or eax, 0xffffffff
xor esi, esi
push 0x438ff4
push esi
mov edi, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.004e5690
test eax, eax
jne 0x4e37fe
mov eax, 0x8007000e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x551d48]
cmp eax, esi
jge 0x4e380b
xor eax, eax
jmp 0x4e3812
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
push 0x10
push 0x14
call fcn.00547721
cmp eax, esi
je 0x4e3839
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax], 0x441a40
mov dword [eax + 4], 1
jmp 0x4e383b
xor eax, eax
mov dword [ebx + 0x34], eax
cmp eax, esi
je 0x4e37f3
mov edi, 0x54f844
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
nop
cmp byte [edi + 0x14], 0
je 0x4e38ca
mov eax, dword [edi]
cmp eax, 0xe
mov dword [esp + 0x10], eax
jge 0x4e388f
mov ecx, dword [ebx + eax*4 + 0x38]
mov dword [esp + 0xc], ecx
cmp ecx, esi
jne 0x4e3a23
push eax
push ebx
call fcn.004aa0d0
mov dword [esp + 0xc], eax
cmp eax, esi
je 0x4e37f3
mov ecx, dword [edi]
mov dword [ebx + ecx*4 + 0x38], eax
jmp 0x4e3a23
cmp dword [ebx + eax*4 + 0x70], esi
jne 0x4e38af
push esi
push esi
push esi
push eax
push ebx
xor edi, edi
call fcn.004aa2f0
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [ebx + edx*4 + 0x70], eax
mov eax, edx
mov eax, dword [ebx + eax*4 + 0x70]
mov dword [esp + 0xc], eax
cmp eax, esi
je 0x4e37f3
mov ecx, dword [edi]
mov dword [ebx + ecx*4 + 0x70], eax
jmp 0x4e3a23
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 4]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov eax, dword [ebx + eax*4 + 0x38]
mov dword [esp + 0x10], edx
mov edx, dword [edi + 8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
cmp eax, dword [ebx + 0x44]
jne 0x4e3943
mov edx, ecx
or edx, dword [esp + 0x24]
jne 0x4e3943
cmp dword [ebx + 0x140], esi
je 0x4e391e
cmp dword [esp + 0xc], 1
jne 0x4e391e
cmp dword [esp + 0x10], 4
jne 0x4e391e
mov eax, dword [ebx + 0x140]
mov dword [esp + 0xc], eax
jmp 0x4e3a19
cmp dword [ebx + 0x144], esi
je 0x4e3943
cmp dword [esp + 0xc], 4
jne 0x4e3943
cmp dword [esp + 0x10], 4
jne 0x4e3943
mov eax, dword [ebx + 0x144]
mov dword [esp + 0xc], eax
jmp 0x4e3a19
mov edx, dword [esp + 0x24]
push eax
push edx
and ecx, 0xfffff3ff
push ecx
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.004aa560
mov edi, eax
cmp edi, esi
je 0x4e3a08
mov eax, dword [esp + 0xc]
cmp eax, 1
ja 0x4e39b0
cmp dword [esp + 0x10], 1
jbe 0x4e3a11
cmp eax, 1
jne 0x4e39b0
mov eax, dword [0x551d48]
cmp eax, esi
jge 0x4e398b
xor eax, eax
jmp 0x4e3992
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
push 0x10
push 0x20
call fcn.00547721
cmp eax, esi
je 0x4e3a08
mov dword [eax], 0x441b60
mov dword [eax + 4], 9
jmp 0x4e39c8
push 0x20
call fcn.0049cdd0
cmp eax, esi
je 0x4e3a08
mov dword [eax], 0x441b30
mov dword [eax + 4], 8
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x1c], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], esi
mov dword [eax + 8], esi
push eax
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x24]
push esi
and eax, 0xc00
push eax
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.004aa560
mov edi, eax
cmp edi, esi
jne 0x4e3a11
mov byte [ebx + 0x188], 1
xor edi, edi
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x14]
cmp dword [esp + 0xc], esi
je 0x4e37f3
mov ecx, dword [edi - 4]
cmp ecx, esi
je 0x4e3a7f
mov edi, dword [ebx + 0x24]
mov eax, ecx
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4e3a36
sub eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push ecx
lea ecx, [edi + 0x30]
push ecx
add edi, 0x48
push edi
mov edi, eax
call fcn.00533790
cmp eax, esi
jl 0x4e3c0b
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
call fcn.004e5180
test eax, eax
je 0x4e37f3
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc eax
add edi, 0x20
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
cmp eax, 0x19
jb 0x4e3850
mov eax, dword [ebx + 0x44]
push eax
push esi
push esi
lea edx, [esp + 0x34]
push edx
push ebx
call fcn.004aa560
mov edi, eax
cmp edi, esi
je 0x4e3b0b
mov eax, dword [0x551d48]
cmp eax, esi
jge 0x4e3abc
xor eax, eax
jmp 0x4e3ac3
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
push 0x10
push 0x20
call fcn.00547721
cmp eax, esi
je 0x4e3b0b
push eax
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax], 0x441b60
mov dword [eax + 4], 9
push esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], 1
mov dword [eax + 0x1c], 4
push esi
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.004aa560
cmp eax, esi
jne 0x4e3b14
mov byte [ebx + 0x188], 1
xor eax, eax
mov dword [ebx + 0x140], eax
cmp eax, esi
je 0x4e37f3
mov eax, dword [ebx + 0x44]
push eax
push esi
push esi
lea ecx, [esp + 0x34]
push ecx
push ebx
call fcn.004aa560
mov edi, eax
cmp edi, esi
je 0x4e3b7a
push 0x20
call fcn.0049cdd0
cmp eax, esi
je 0x4e3b7a
push eax
push esi
push esi
lea edx, [esp + 0x34]
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax], 0x441b30
mov dword [eax + 4], 8
mov ecx, 4
push edx
push ebx
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
call fcn.004aa560
cmp eax, esi
jne 0x4e3b83
mov byte [ebx + 0x188], 1
xor eax, eax
mov dword [ebx + 0x144], eax
cmp eax, esi
je 0x4e37f3
mov eax, dword [ebx + 0x64]
push eax
push esi
push 0x400000
lea ecx, [esp + 0x34]
push ecx
push ebx
call fcn.004aa560
mov dword [ebx + 0x13c], eax
cmp eax, esi
je 0x4e37f3
mov eax, dword [ebx + 0x24]
lea edx, [ebx + 0x148]
push edx
push 0x440dc0
lea ecx, [eax + 0x30]
push ecx
add eax, 0x48
push eax
mov edi, 4
call fcn.00533790
cmp eax, esi
jl 0x4e3c0b
lea edx, [ebx + 0x14c]
push edx
mov edx, dword [ebx + 0x24]
mov esi, 0x4439b4
call fcn.00450e70
test eax, eax
jl 0x4e3c0b
mov edx, dword [ebx + 0x24]
lea eax, [ebx + 0x150]
push eax
mov esi, 0x438ff4
call fcn.00450e70
test eax, eax
jl 0x4e3c0b
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret