Function at 0x421188
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax - 4]
mov ebp, dword [eax - 8]
test byte [ebp + 1], 0x20
je 0x4211b3
push ebp
call fcn.0043f598
pop ecx
mov ebx, eax
jmp 0x4211b5
mov ebx, ebp
test byte [ebx], 4
je 0x421255
test dword [esi], 0x47b
je 0x421255
push esi
push ebx
call fcn.0043ccd8
add esp, 8
test eax, eax
je 0x4211f4
push eax
push esi
call fcn.0043ee8c
add esp, 8
push esi
push ebp
call fcn.0043f03c
add esp, 8
sub dword [edi], 4
jmp 0x421443
push 0x15
push ebx
call fcn.0042d58c
add esp, 8
test eax, eax
je 0x42122d
push esi
push ebx
push ebp
call fcn.00425148
add esp, 0xc
sub dword [edi], 4
mov eax, dword [edi]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x421443
push eax
call fcn.0043edc0
pop ecx
jmp 0x421443
push esi
push ebx
push 2
push 0x2e
call fcn.0046bdb8
pop ecx
push eax
push 0
push 0x46c
push 2
call fcn.00456f18
add esp, 0x1c
jmp 0x421443
mov eax, dword [esi]
test al, 2
je 0x421266
mov edx, dword [esi + 8]
mov dword [esp], edx
jmp 0x421316
test al, 8
je 0x421275
mov eax, dword [esi + 8]
mov dword [esp], eax
jmp 0x421316
test al, 0x10
je 0x421289
fld qword [esi + 8]
call fcn.004afaa8
mov dword [esp], eax
jmp 0x421316
push 0x15
push ebx
call fcn.0042d58c
add esp, 8
test eax, eax
je 0x4212c2
push esi
push ebx
push ebp
call fcn.00425148
add esp, 0xc
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x421443
push eax
call fcn.0043edc0
pop ecx
jmp 0x421443
push esi
push ebx
push 2
push 0x2e
call fcn.0046bdb8
pop ecx
push eax
push 0
push 0x42c
push 1
call fcn.004570b8
add esp, 0x1c
mov ebx, eax
test ebx, ebx
je 0x421443
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x421300
push eax
call fcn.0043edc0
pop ecx
push ebx
push ebp
call fcn.0043f03c
add esp, 8
push ebx
call fcn.0043d978
pop ecx
jmp 0x421443
test byte [ebx + 1], 0x80
je 0x4213f3
test byte [ebx + 1], 0x80
je 0x421369
mov edx, dword [ebx + 8]
cmp word [edx + 0xc], 0
je 0x421369
push 0x15
push ebx
call fcn.0042d58c
add esp, 8
test eax, eax
je 0x421369
push esi
push ebx
push ebp
call fcn.00425148
add esp, 0xc
sub dword [edi], 4
mov ecx, dword [edi]
mov eax, dword [ecx]
test dword [eax], 0xb405
je 0x421443
push eax
call fcn.0043edc0
pop ecx
jmp 0x421443
cmp dword [esp], 0
jbe 0x421391
mov edx, dword [ebx + 8]
mov ecx, dword [edx + 4]
cmp ecx, dword [esp]
jb 0x421391
push ebp
mov eax, dword [esp + 4]
push eax
push ebx
call fcn.00429ee0
add esp, 0xc
sub dword [edi], 4
jmp 0x421443
test byte [ebx + 1], 0x80
je 0x4213a1
mov edx, dword [ebx + 8]
cmp word [edx + 0xc], 0
jne 0x4213d3
push 0x15
push ebx
call fcn.0042d58c
add esp, 8
test eax, eax
je 0x4213d3
push esi
push ebx
push ebp
call fcn.00425148
add esp, 0xc
sub dword [edi], 4
mov ecx, dword [edi]
mov eax, dword [ecx]
test dword [eax], 0xb405
je 0x421443
push eax
call fcn.0043edc0
pop ecx
jmp 0x421443
push esi
push ebx
push 2
push 0x2e
call fcn.0046bdb8
pop ecx
push eax
push 0
push 0x46c
push 2
call fcn.00456f18
add esp, 0x1c
jmp 0x421443
push 0x15
push ebx
call fcn.0042d58c
add esp, 8
test eax, eax
je 0x421425
push esi
push ebx
push ebp
call fcn.00425148
add esp, 0xc
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x421443
push eax
call fcn.0043edc0
pop ecx
jmp 0x421443
push esi
push ebx
push 2
push 0x2e
call fcn.0046bdb8
pop ecx
push eax
push 0
push 0x42c
push 1
call fcn.00456f18
add esp, 0x1c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret