Function at 0x4288e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov esi, eax
mov eax, dword [esi]
mov ebx, dword [eax - 4]
test byte [ebx + 1], 0x80
je 0x428a3a
test byte [ebx + 1], 0x80
je 0x428966
mov eax, dword [ebx + 8]
cmp word [eax + 0xc], 0
je 0x428966
push 0x15
push ebx
call fcn.0042d58c
add esp, 8
test eax, eax
je 0x428966
mov eax, edi
xor edx, edx
push edx
push eax
call fcn.00422edc
add esp, 8
push 0
mov ecx, dword [esi]
mov eax, dword [ecx - 4]
push eax
push ebx
push ebx
push 0x15
call fcn.0042d5d0
add esp, 0x14
sub dword [esi], 4
mov edx, dword [esi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x428b35
push eax
call fcn.0043edc0
pop ecx
jmp 0x428b35
test edi, edi
jbe 0x4289bd
mov edx, dword [ebx + 8]
cmp edi, dword [edx + 4]
ja 0x4289bd
add dword [esi], 4
mov ecx, dword [esi]
cmp ecx, dword [esi + 4]
jne 0x428981
call fcn.00432adc
mov eax, dword [esi]
mov edx, dword [eax - 4]
mov dword [ebp - 4], edx
mov edx, edi
shl edx, 3
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
lea edx, [edx + edx*2]
add eax, edx
add eax, 0xffffffe8
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0043ee8c
add esp, 8
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.0043f03c
add esp, 8
sub dword [esi], 4
jmp 0x428b35
mov eax, edi
xor edx, edx
push edx
push eax
call fcn.00422edc
add esp, 8
test byte [ebx + 1], 0x80
je 0x4289db
mov ecx, dword [ebx + 8]
cmp word [ecx + 0xc], 0
jne 0x428a12
push 0
mov eax, dword [esi]
mov edx, dword [eax - 4]
push edx
push ebx
push ebx
push 0x15
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x428a12
sub dword [esi], 4
mov ecx, dword [esi]
mov eax, dword [ecx]
test dword [eax], 0xb405
je 0x428b35
push eax
call fcn.0043edc0
pop ecx
jmp 0x428b35
mov edx, dword [esi]
mov ecx, dword [edx - 4]
push ecx
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 0x428b35
test byte [ebx], 4
je 0x428ad4
mov eax, edi
xor edx, edx
push edx
push eax
call fcn.00422edc
add esp, 8
mov ecx, dword [esi]
mov edi, dword [ecx - 4]
push 1
push edi
push ebx
call fcn.0043caf8
add esp, 0xc
test eax, eax
je 0x428a82
push eax
push edi
call fcn.0043ee8c
add esp, 8
push edi
push ebx
call fcn.0043f03c
add esp, 8
sub dword [esi], 4
jmp 0x428b35
push 0
push edi
push ebx
push ebx
push 0x15
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x428ab4
sub dword [esi], 4
mov eax, dword [esi]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x428b35
push eax
call fcn.0043edc0
pop ecx
jmp 0x428b35
push edi
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 0x428b35
mov eax, edi
xor edx, edx
push edx
push eax
call fcn.00422edc
add esp, 8
push 0
mov ecx, dword [esi]
mov eax, dword [ecx - 4]
push eax
push ebx
push ebx
push 0x15
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x428b12
sub dword [esi], 4
mov edx, dword [esi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x428b35
push eax
call fcn.0043edc0
pop ecx
jmp 0x428b35
mov edx, dword [esi]
mov ecx, dword [edx - 4]
push ecx
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 edi
pop esi
pop ebx
pop ecx
pop ebp
ret