Function at 0x484f90
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xb828]
push ebx
push esi
mov esi, dword [ecx + 0x3c]
and esi, 0xfffff
push edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x20], esi
je 0x48525a
mov eax, dword [ecx]
xor edx, edx
div esi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x40], eax
cmp eax, edx
jbe 0x48525a
xor esi, esi
mov dword [ebp - 0x24], edx
or eax, 0xffffffff
jmp 0x484fe8
mov ecx, dword [ebp - 0x38]
or eax, 0xffffffff
xor esi, esi
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], eax
cmp edx, esi
jbe 0x485143
mov ecx, dword [ecx + 4]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x34], ecx
mov edi, dword [ecx]
mov ecx, dword [edi + 0x2c]
cmp ecx, 3
ja case.default.0x48502f
jmp dword [ecx*4 + 0x48560c]
mov ecx, dword [edi + 0x64]
cmp ecx, 0xffffffff
je case.default.0x48502f
cmp dword [ebp - 0x2c], 0
jne case.default.0x48502f
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp + ebx*4 - 0x50], ecx
mov dword [ebp + ebx*4 - 0x60], edi
mov dword [ebp + ebx*4 - 0x70], eax
jmp 0x48512a
mov ecx, dword [edi + 0x64]
cmp ecx, 0xffffffff
je case.default.0x48502f
test esi, esi
jne case.default.0x48502f
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp + ebx*4 - 0x50], esi
mov dword [ebp + ebx*4 - 0x60], edi
mov dword [ebp + ebx*4 - 0x70], eax
jmp 0x48512a
or edx, 0xffffffff
cmp dword [ebp - 0xc], edx
jne case.default.0x48502f
mov ecx, dword [edi + 0x64]
mov dword [ebp - 0xc], edi
mov dword [ebp + ebx*4 - 0x50], edx
mov dword [ebp + ebx*4 - 0x60], edi
mov dword [ebp + ebx*4 - 0x70], eax
cmp ecx, edx
je 0x48512a
mov dword [ebp - 0x18], ecx
mov ecx, dword [ecx + 0x3c]
and ecx, 0xfff00000
cmp ecx, 0x10000000
jne 0x4850d6
mov esi, dword [ebp - 0x18]
call fcn.00467010
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
jmp 0x48512a
mov dword [ebp - 0x18], 0
jmp 0x48512a
or edx, 0xffffffff
cmp dword [ebp - 0x14], edx
jne case.default.0x48502f
mov ecx, dword [edi + 0x64]
mov dword [ebp - 0x14], edi
mov dword [ebp + ebx*4 - 0x50], edx
mov dword [ebp + ebx*4 - 0x60], edi
mov dword [ebp + ebx*4 - 0x70], eax
cmp ecx, edx
je 0x48512a
mov edx, dword [ecx + 0x3c]
and edx, 0xfff00000
mov dword [ebp - 0x1c], ecx
cmp edx, 0x10000000
jne 0x485123
mov esi, ecx
call fcn.00467010
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
jmp 0x48512a
mov dword [ebp - 0x1c], 0
inc ebx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x20]
inc eax
add ecx, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], ecx
cmp eax, edx
jb 0x485021
cmp ebx, edx
jne 0x485240
cmp ebx, 1
jbe 0x485240
xor dl, dl
test esi, esi
je 0x4851a8
cmp dword [esi + 0x3c], 0x20500001
jne 0x4851a6
mov edi, dword [ebp - 0xc]
cmp edi, 0xffffffff
je 0x485179
mov eax, dword [esi + 4]
cmp edi, dword [eax]
je 0x485179
cmp edi, dword [eax + 4]
je 0x485179
mov dl, 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xffffffff
je 0x4851a8
mov eax, dword [esi + 4]
cmp ecx, dword [eax]
je 0x48518f
cmp ecx, dword [eax + 4]
je 0x48518f
mov dl, 1
cmp edi, 0xffffffff
je 0x4851a8
cmp ecx, edi
mov ecx, dword [eax]
je 0x4851a1
cmp ecx, dword [eax + 4]
jne 0x4851a8
jmp 0x4851a6
cmp ecx, dword [eax + 4]
je 0x4851a8
mov dl, 1
cmp dword [ebp - 0x2c], 0
je 0x4851d0
mov eax, dword [ebp - 0x3c]
fld qword [eax + 0xa8]
mov eax, dword [eax + 8]
and eax, 0x800
xor ecx, ecx
or eax, ecx
je 0x48523e
fld1
fucompp
fnstsw ax
test ah, 0x44
jp 0x485240
test dl, dl
jne 0x485240
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 5], dl
test esi, esi
jbe 0x485224
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
add eax, dword [ebp - 0x24]
mov edi, esi
lea esp, [esp]
cmp dword [ebp - 0x18], 0
mov ecx, dword [eax]
jne 0x4851fe
cmp dword [ecx + 0x2c], 2
je 0x48520a
cmp dword [ebp - 0x1c], 0
jne 0x48520d
cmp dword [ecx + 0x2c], 3
jne 0x48520d
dec esi
jmp 0x485219
mov ecx, dword [ecx + 0x74]
cmp ecx, dword [edx + 0x10]
je 0x485219
mov byte [ebp - 5], 1
add eax, 4
sub edi, 1
jne 0x4851f0
mov dword [ebp - 0x2c], esi
cmp esi, 2
jb 0x485240
cmp byte [ebp - 5], 0
jne 0x485240
mov eax, dword [0x551d48]
xor edx, edx
cmp eax, edx
jge 0x485268
xor eax, eax
jmp 0x485271
fstp st(0)
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
add eax, eax
add eax, eax
add dword [ebp - 0x24], eax
inc ecx
mov dword [ebp - 0x30], ecx
cmp ecx, dword [ebp - 0x40]
jb 0x484fe0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
cmp dword [eax + 0x14], edx
je 0x48529b
mov ecx, dword [eax + 0x14]
cmp ecx, edx
jne 0x485283
xor ecx, ecx
mov edi, ecx
jmp 0x4852ab
mov edx, dword [ecx]
mov dword [eax + 0x14], edx
test edx, edx
jne 0x48528f
mov dword [eax + 0x18], edx
mov dword [ecx], 0xfefefefe
xor edx, edx
mov edi, ecx
jmp 0x4852ab
mov ecx, dword [eax + 0x10]
push 0x10
push 0x44
call fcn.00547721
mov edi, eax
xor edx, edx
cmp edi, edx
je 0x485319
or eax, 0xffffffff
mov dword [edi + 0x10], eax
xor ecx, ecx
mov dword [edi + 0x20], eax
push ecx
mov eax, esi
and eax, 0xfffff
mov dword [edi], edx
mov dword [edi + 8], edx
mov dword [edi + 0x3c], edx
mov dword [edi + 4], edx
mov word [edi + 0x40], cx
mov dword [edi + 0xc], edx
mov word [edi + 0x42], cx
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], edx
mov dword [edi + 0x24], edx
mov dword [edi + 0x34], edx
mov dword [edi + 0x38], edx
lea ecx, [esi + esi]
or eax, 0x70900000
push edi
mov edx, esi
call fcn.0050a980
mov dword [ebp - 0x40], eax
test eax, eax
jge 0x485327
mov esi, edi
call fcn.0050a890
call fcn.0050cb90
mov eax, dword [ebp - 0x40]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb828]
mov ecx, dword [eax + 0x34]
mov dword [edi + 0x34], ecx
mov edx, dword [eax + 0x38]
xor eax, eax
mov dword [edi + 0x38], edx
test esi, esi
jbe 0x4853b4
mov edx, dword [ebp - 0xc]
lea ecx, [esi*4]
lea esp, [esp]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x485373
mov edx, dword [esi + 4]
mov edx, dword [edx]
mov esi, dword [edi + 4]
mov dword [esi + eax*4], edx
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 4]
mov esi, dword [edi + 4]
mov edx, dword [edx + 4]
mov dword [ecx + esi], edx
jmp 0x4853a6
mov esi, dword [ebp - 0x14]
cmp esi, 0xffffffff
jne 0x485391
cmp edx, esi
je 0x48525a
mov esi, dword [edi + 4]
mov dword [esi + eax*4], edx
mov esi, dword [edi + 4]
mov dword [ecx + esi], edx
jmp 0x4853a9
cmp edx, 0xffffffff
jne 0x48525a
mov edx, dword [edi + 4]
mov dword [edx + eax*4], esi
mov edx, dword [edi + 4]
mov dword [ecx + edx], esi
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x2c]
inc eax
add ecx, 4
cmp eax, esi
jb 0x485350
xor edx, edx
xor ecx, ecx
test ebx, ebx
jbe 0x48540f
lea esp, [esp]
cmp dword [ebp - 0x18], 0
mov eax, dword [ebp + ecx*4 - 0x60]
jne 0x4853d0
cmp dword [eax + 0x2c], 2
je 0x485406
cmp dword [ebp - 0x1c], 0
jne 0x4853dc
cmp dword [eax + 0x2c], 3
je 0x485406
mov esi, dword [edi + 0xc]
mov dword [esi + edx*4], eax
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0xb828]
mov esi, dword [esi + 4]
inc edx
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x30]
imul edx, dword [ebp - 0x20]
add edx, dword [ebp + ecx*4 - 0x70]
mov dword [esi + edx*4], eax
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x40]
cmp edx, esi
ja 0x485458
inc ecx
cmp ecx, ebx
jb 0x4853c0
xor edx, edx
mov dword [ebp - 0x30], edx
cmp dword [edi + 8], edx
jbe 0x4854cd
mov ecx, 1
mov dword [ebp - 0x34], ecx
cmp ecx, dword [edi + 8]
jae 0x4854bc
mov edi, edi
mov eax, dword [edi + 0xc]
mov edx, dword [eax + edx*4]
mov esi, dword [eax + ecx*4]
mov dword [ebp - 0x38], edx
mov edx, dword [edx + 0x2c]
mov dword [ebp - 0x40], esi
cmp edx, dword [esi + 0x2c]
jbe 0x4854a1
mov edx, dword [ebp - 0x38]
mov dword [eax + ecx*4], edx
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x30]
mov dword [eax + edx*4], esi
jmp 0x4854a4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xb828]
test eax, eax
je 0x485470
mov eax, dword [eax + 0x38]
test eax, eax
je 0x485470
mov edx, eax
jmp 0x485472
xor edx, edx
mov esi, dword [ebp + 8]
push 0x43f01c
mov ecx, 0x12da
call fcn.004f47c0
add esp, 4
mov esi, edi
call fcn.0050a890
call fcn.0050cb90
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x2c]
cmp eax, dword [esi + 0x2c]
je 0x4854e4
inc ecx
cmp ecx, dword [edi + 8]
jb 0x485430
mov ecx, dword [ebp - 0x34]
inc edx
inc ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
cmp edx, dword [edi + 8]
jb 0x485425
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jbe 0x485574
mov edx, dword [eax + 0x14]
mov edx, dword [edx]
jmp 0x485576
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xb828]
test eax, eax
je 0x4854fc
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4854fc
mov edx, eax
jmp 0x4854fe
xor edx, edx
mov esi, dword [ebp + 8]
push 0x43e2bc
mov ecx, 0x12db
call fcn.004f47c0
add esp, 4
mov esi, edi
call fcn.0050a890
mov eax, dword [0x551d48]
test eax, eax
jl 0x485566
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x485566
push 0x44
push 0xfe
push edi
call sub.msvcrt.dll_memset
mov dword [edi], 0
mov eax, dword [esi + 0x18]
add esp, 0xc
test eax, eax
je 0x485560
mov dword [eax], edi
mov dword [esi + 0x18], edi
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edx, edx
xor ecx, ecx
test ebx, ebx
jbe 0x4855a2
lea esp, [esp]
mov eax, dword [ebp + ecx*4 - 0x50]
cmp eax, 0xffffffff
je 0x48559d
mov esi, dword [edx + 0x10]
cmp esi, dword [eax + 0x10]
jae 0x485593
mov edx, eax
xor esi, esi
mov dword [eax + 0x3c], esi
mov dword [eax], esi
mov dword [eax + 8], esi
inc ecx
cmp ecx, ebx
jb 0x485580
push edi
push edx
call fcn.0050b3a0
test eax, eax
jl 0x48525f
mov esi, edi
call fcn.0050a890
mov eax, dword [0x551d48]
test eax, eax
jl 0x485601
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x485601
push 0x44
push 0xfe
push edi
call sub.msvcrt.dll_memset
mov dword [edi], 0
mov eax, dword [esi + 0x18]
add esp, 0xc
test eax, eax
je 0x4855fb
mov dword [eax], edi
mov dword [esi + 0x18], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4