Function at 0x5c5400
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x24]
cmp byte [ebp + 0x19], 0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 8], ecx
jne 0x5c5473
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp eax, edx
je 0x5c5466
test eax, eax
je 0x5c5432
test ecx, ecx
js 0x5c5432
mov eax, dword [eax + 8]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 8], ecx
cmp ecx, 0xffffffff
je 0x5c5462
test edx, edx
je 0x5c5462
test ecx, ecx
js 0x5c5466
lea eax, [ecx + 1]
push 0xffffffffffffffff
push eax
lea ecx, [edx + 0x14]
call fcn.0046b890
mov edx, dword [esi]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x18]
jmp 0x5c54c0
mov dword [esp + 8], ecx
mov eax, dword [ebp + 0x14]
mov edx, dword [esi]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x18]
jmp 0x5c54c0
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
cmp eax, edx
je 0x5c54b4
test eax, eax
je 0x5c548b
test ecx, ecx
js 0x5c548b
mov eax, dword [eax + 8]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 8], ecx
cmp ecx, 0xffffffff
je 0x5c54b0
test edx, edx
je 0x5c54b0
test ecx, ecx
js 0x5c54b4
lea eax, [ecx + 1]
push 0xffffffffffffffff
push eax
lea ecx, [edx + 0x14]
call fcn.0046b890
mov dword [esp + 8], eax
jmp 0x5c54b4
mov dword [esp + 8], ecx
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 4]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x1c]
cmp dword [esi + 0x30], 0
movsx eax, byte [eax + ecx*2 + 4]
setg byte [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edx
cmp eax, 5
jne 0x5c54e2
cmp byte [esp + 0x34], 0
jmp 0x5c54eb
mov al, byte [ebp + 0x1c]
and al, 1
cmp byte [esp + 0x34], al
jne 0x5c57a9
push ebx
mov ebx, dword [esp + 0xc]
cmp ebx, 0xffffffff
je 0x5c57a8
test edx, edx
je 0x5c57a8
mov eax, dword [edx + 8]
lea ecx, [ebx*4]
push edi
push dword [esp + 0x38]
add eax, ecx
mov dword [esp + 0x28], ecx
push ebp
mov dword [esp + 0x34], eax
call fcn.005c57e0
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
cmp eax, 8
ja case.default.0x5c553c
jmp dword [eax*4 + 0x5c57b0]
mov al, byte [ebp + 0x18]
cmp al, 0xff
jne 0x5c556d
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
push 0
push dword [esp + 0x3c]
push edi
push ebx
push ecx
push ebp
push esi
call fcn.005c5e70
add esp, 0x20
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x18
ret
movzx esi, byte [ebp + 0x1a]
mov ebx, 1
movsx eax, al
mov ecx, eax
mov dword [esp + 0x30], eax
shl ebx, cl
xor eax, eax
mov ecx, esi
sub ecx, 3
je 0x5c559d
sub ecx, 2
je 0x5c5598
sub ecx, 2
jne 0x5c55a0
mov eax, dword [edi]
jmp 0x5c55a0
movsx eax, word [edi]
jmp 0x5c55a0
movsx eax, byte [edi]
cmp byte [esp + 0x3c], 0
mov ecx, dword [esp + 0x2c]
je 0x5c55bd
and eax, ebx
neg eax
pop edi
pop ebx
sbb eax, eax
neg eax
pop esi
mov dword [ecx], eax
pop ebp
add esp, 0x18
ret
xor edx, edx
not ebx
cmp dword [ecx], edx
mov ecx, dword [esp + 0x30]
setne dl
and ebx, eax
shl edx, cl
or edx, ebx
sub esi, 3
je 0x5c55f8
sub esi, 2
je 0x5c55ed
sub esi, 2
jne case.default.0x5c553c
mov dword [edi], edx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x18
ret
mov word [edi], dx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x18
ret
mov byte [edi], dl
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x18
ret
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
push dword [esp + 0x1c]
push dword [esp + 0x3c]
push edi
push ebx
push ecx
push ebp
push esi
call fcn.005c5800
add esp, 0x20
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x18
ret
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
push dword [esp + 0x1c]
push dword [esp + 0x3c]
push edi
push ebx
push ecx
push ebp
push esi
call fcn.005c59a0
add esp, 0x20
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x18
ret
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
push dword [esp + 0x1c]
push dword [esp + 0x3c]
push edi
push ebx
push ecx
push ebp
push esi
call fcn.005c5b10
add esp, 0x20
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x18
ret
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
push dword [esp + 0x1c]
push dword [esp + 0x3c]
push edi
push ebx
push ecx
push ebp
push esi
call fcn.005c5c70
add esp, 0x20
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x18
ret
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx]
mov eax, dword [edx + 0x20]
cmp dword [eax + ecx*4], 0
jne 0x5c5719
mov ebp, dword [ebp + 4]
mov ecx, ebp
call fcn.0045e050
push dword [0x884adc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx]
call dword [edx + 4]
push esi
mov ebx, eax
push 0
push ebx
call fcn.0045d830
mov eax, 1
mov word [ebx + 4], si
mov word [ebx + 6], ax
add esp, 0xc
mov esi, dword [0x8d7194]
mov ecx, ebp
mov edi, dword [esi]
call fcn.0045dc70
push eax
push ebx
mov ecx, esi
call dword [edi + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebx
push eax
call fcn.005d2910
mov ecx, ebx
call fcn.0045c160
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov esi, dword [0x8d718c]
mov eax, dword [ecx + 8]
mov edx, dword [edx + eax]
mov eax, dword [ecx + 0x20]
mov ecx, dword [ebp + 4]
mov ebx, dword [eax + edx*4]
call fcn.0045dc70
push eax
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x10]
mov ecx, eax
call fcn.0045dc70
push eax
call fcn.0045d370
add esp, 8
test eax, eax
jne case.default.0x5c553c
cmp dword [edi], ebx
je 0x5c5772
test ebx, ebx
je 0x5c5767
mov ecx, ebx
call fcn.0045c230
mov ecx, dword [edi]
test ecx, ecx
je 0x5c5772
call fcn.0045c240
mov dword [edi], ebx
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x18
ret
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
shl eax, 4
add eax, dword [edx + 0x14]
cmp byte [esp + 0x3c], 0
je 0x5c57a1
movaps xmm0, xmmword [edi]
pop edi
pop ebx
pop esi
movaps xmmword [eax], xmm0
pop ebp
add esp, 0x18
ret
movaps xmm0, xmmword [eax]
movaps xmmword [edi], xmm0
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x18
ret