Function at 0x4b9560
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eba1b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [0x52ead0]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
cmp eax, 0xffffffff
je 0x4b95d1
mov ecx, dword [0x52ead0]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
mov dword [esp + 0x14], esi
cmp esi, ebx
je 0x4b95d3
jmp 0x4b9612
xor ebx, ebx
push 0x2c
call fcn.004c958c
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x90], ebx
cmp eax, ebx
je 0x4b95f4
push eax
call fcn.004b94a0
jmp 0x4b95f6
xor eax, eax
push eax
mov dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x18], eax
call fcn.004b9b40
mov esi, dword [esp + 0x18]
add esp, 4
cmp byte [esi + 0x28], bl
jne 0x4b9748
mov eax, 1
mov byte [esi + 0x28], al
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov dword [esp + 0x90], eax
mov edx, dword [esi + 0x18]
cmp edx, dword [esi + 0x1c]
jne 0x4b9648
mov dword [esp + 0x20], ebx
jmp 0x4b9652
mov eax, dword [esi + 0x1c]
mov eax, dword [eax - 4]
mov dword [esp + 0x20], eax
lea ecx, [esi + 8]
lea ebx, [esp + 0x20]
lea eax, [esp + 0x28]
call fcn.004b9ae0
mov eax, dword [eax]
mov ebx, 0x10
cmp eax, dword [esi + 0xc]
je 0x4b9769
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push ecx
push edx
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, edi
call fcn.004b9870
mov edi, eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x90], 2
call fcn.00408810
mov byte [esp + 0x90], 1
cmp dword [esp + 0x78], ebx
jb 0x4b96be
mov eax, dword [esp + 0x64]
push eax
call fcn.004c9387
add esp, 4
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4b96f2
mov edx, dword [ecx]
cmp edx, dword [ecx + 4]
je 0x4b96f2
mov eax, edx
cmp eax, dword [ecx + 4]
je 0x4b96f2
mov ecx, dword [eax]
test ecx, ecx
je 0x4b96e7
cmp dword [ecx + 4], 0
jne 0x4b977c
mov ecx, dword [esi + 4]
add eax, 4
cmp eax, dword [ecx + 4]
jne 0x4b96d7
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], ebx
jae 0x4b9700
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
push str._s:_d:__s_n
call fcn.004dce9f
call fcn.004ca330
add eax, 0x20
push eax
call fcn.004ca727
add esp, 0x14
mov byte [esi + 0x28], 0
mov dword [esp + 0x90], 0xffffffff
cmp dword [esp + 0x40], ebx
jb 0x4b9748
mov eax, dword [esp + 0x2c]
push eax
call fcn.004c9387
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004c9392
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push 0
push edi
lea ecx, [esp + 0x38]
call fcn.00406140
jmp 0x4b96c2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x50]
push edx
push esi
lea edx, [esp + 0x3c]
call fcn.004b9870
cmp dword [esp + 0x5c], ebx
jb 0x4b97ac
mov eax, dword [esp + 0x48]
push eax
call fcn.004c9387
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
jmp 0x4b9726