Function at 0x480270
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4802db
push 0x7be268
call fcn.0046b2e0
pop ecx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0046a8b0
pop ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0046a8b0
pop ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046a8b0
pop ecx
push 2
call fcn.00469190
pop ecx
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 0x10]
and eax, 0x80
je 0x4802db
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 0x18]
jmp 0x480615
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x400
je 0x480319
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0x400
je 0x480319
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004a0be0
add esp, 0xc
test eax, eax
jge 0x480310
mov ebx, 1
jmp 0x480312
xor ebx, ebx
mov eax, ebx
jmp 0x480615
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xa
je 0x480375
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0xa
je 0x480375
mov eax, dword [ebp + 8]
push eax
call fcn.004a1a80
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004a1a80
pop ecx
push dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
pop edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push edx
push eax
call fcn.00531ee0
jae 0x480366
mov dword [ebp - 4], 1
jmp 0x48036d
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x480615
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x480395
and edx, 0x400
je 0x4803ec
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x4803ec
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x4803b1
and edx, 0x400
je 0x4803ec
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x4803ec
mov eax, dword [ebp + 8]
push eax
call fcn.0049fd50
pop ecx
fstp qword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
push eax
call fcn.0049fd50
pop ecx
fst qword [ebp - 0x28]
fcomp qword [ebp - 0x20]
wait
fnstsw ax
sahf
jbe 0x4803dd
mov dword [ebp - 0x14], 1
jmp 0x4803e4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jmp 0x480615
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x20
je 0x48047a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0x20
je 0x48047a
mov eax, dword [ebp + 8]
push eax
call fcn.0049fa20
pop ecx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.0049fa20
pop ecx
mov edx, dword [ebp - 0x30]
cmp edx, eax
jl 0x480462
mov eax, dword [ebp + 8]
push eax
call fcn.0049fa20
pop ecx
mov dword [ebp - 0x34], eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.0049fa20
pop ecx
mov edx, dword [ebp - 0x34]
cmp edx, eax
jne 0x48046b
mov eax, dword [ebp + 8]
push eax
call fcn.0049fa40
pop ecx
mov dword [ebp - 0x38], eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.0049fa40
pop ecx
mov edx, dword [ebp - 0x38]
cmp edx, eax
jge 0x48046b
mov dword [ebp - 0x2c], 1
jmp 0x480472
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
jmp 0x480615
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x80
je 0x4804c8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0x80
je 0x4804c8
mov eax, dword [ebp + 8]
push eax
call fcn.0049fc50
pop ecx
mov dword [ebp - 0x40], eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.0049fc50
pop ecx
mov edx, dword [ebp - 0x40]
cmp edx, eax
jge 0x4804b9
mov dword [ebp - 0x3c], 1
jmp 0x4804c0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
jmp 0x480615
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x8000
je 0x4804e0
mov dword [ebp - 0x44], 1
jmp 0x480561
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x1000
je 0x4804f8
mov dword [ebp - 0x44], 2
jmp 0x480561
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x400
je 0x48050d
mov dword [ebp - 0x44], 3
jmp 0x480561
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x80
je 0x480522
mov dword [ebp - 0x44], 4
jmp 0x480561
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x20
je 0x480535
mov dword [ebp - 0x44], 5
jmp 0x480561
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x480551
and edx, 0x400
je 0x48055a
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x48055a
mov dword [ebp - 0x44], 6
jmp 0x480561
mov dword [ebp - 0x44], 7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0x8000
je 0x480579
mov dword [ebp - 0x48], 1
jmp 0x4805fa
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0x1000
je 0x480591
mov dword [ebp - 0x48], 2
jmp 0x4805fa
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0x400
je 0x4805a6
mov dword [ebp - 0x48], 3
jmp 0x4805fa
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0x80
je 0x4805bb
mov dword [ebp - 0x48], 4
jmp 0x4805fa
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0x20
je 0x4805ce
mov dword [ebp - 0x48], 5
jmp 0x4805fa
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x4805ea
and edx, 0x400
je 0x4805f3
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x4805f3
mov dword [ebp - 0x48], 6
jmp 0x4805fa
mov dword [ebp - 0x48], 7
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x44], eax
jge 0x48060b
mov dword [ebp - 0x4c], 1
jmp 0x480612
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret