Function at 0x4055e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7a78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov dword [ebp - 0x10], esi
movzx eax, word [esi]
test ax, ax
je 0x405648
jmp 0x405620
movzx eax, ax
push eax
call fcn.00490e58
add esp, 4
test eax, eax
jne 0x405639
mov bx, word [ebp + 0xc]
cmp word [esi], bx
jne 0x40565e
movzx eax, word [esi + 2]
add esi, 2
mov dword [ebp - 0x10], esi
test ax, ax
jne 0x405620
mov dword [edi], esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
test ax, ax
je 0x405648
cmp ax, bx
je 0x405648
cmp eax, 0x22
jne 0x4056db
movzx eax, word [esi + 2]
add esi, 2
mov dword [ebp - 0x10], esi
mov edi, esi
test ax, ax
je 0x405695
cmp ax, 0x22
je 0x405695
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405681
jmp 0x40569e
cmp word [edi], 0
lea eax, [edi + 2]
jne 0x4056a0
mov eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test bx, bx
je 0x4058cf
cmp word [eax], 0
je 0x4058cf
jmp 0x4056c0
mov eax, dword [ecx]
cmp word [eax], bx
je 0x4058cf
add eax, 2
mov dword [ecx], eax
cmp word [eax], 0
jne 0x4056c0
jmp 0x4058cf
mov edi, esi
lea ecx, [ecx]
movzx eax, word [edi]
test ax, ax
je 0x4056ff
cmp ax, bx
je 0x4056ff
cmp ax, 0x20
je 0x4056ff
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4056e8
cmp byte [ebp + 0x14], 0
je 0x4058ca
movzx eax, word [esi]
cmp eax, 0x25
je 0x405721
cmp eax, 0x5c
je 0x405721
cmp word [esi + 2], 0x3a
jne 0x4058ca
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x10]
push ebx
mov esi, dword [eax]
call fcn.0048faa4
mov ecx, dword [ebp + 0x10]
push esi
mov dword [ecx], eax
call fcn.0048faf7
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, dword [eax]
mov eax, edi
sub eax, ebx
mov ebx, dword [ebp + 0x10]
sar eax, 1
mov word [ecx + eax*2], dx
push dword [ebx]
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x1c], esi
push esi
mov dword [ebp - 4], 0
call fcn.00491d2a
add esp, 0x10
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0x100
jne 0x4057f0
push 0x4affd0
push esi
call fcn.004913b3
add esp, 8
test eax, eax
je 0x4057f0
push 0x4affd0
push esi
call fcn.004913b3
mov ecx, dword [ebx]
mov edx, eax
movdqu xmm0, xmmword [0x4afe64]
sub edx, esi
add esp, 8
sar edx, 1
movdqu xmmword [ecx + edx*2], xmm0
movq xmm0, qword [0x4afe74]
movq qword [ecx + edx*2 + 0x10], xmm0
mov eax, dword [0x4afe7c]
mov dword [ecx + edx*2 + 0x18], eax
lea eax, [edx*2 + 0x1c]
mov ecx, dword [ebx]
lea edx, [eax + ecx]
sub eax, edx
add ecx, eax
lea esp, [esp]
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x4057e0
push dword [ebx]
lea eax, [ebp - 0x14]
push eax
call fcn.00410090
mov ebx, dword [ebx]
push dword [eax]
call fcn.0048faa4
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ecx], eax
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.00410170
add esp, 0x18
cmp eax, 0xffffffff
je 0x405831
test al, 0x10
je 0x4058c1
push 0x4b00cc
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00418660
mov ebx, dword [ebx]
push dword [eax]
call fcn.0048faa4
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ecx], eax
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.00410170
add esp, 0x1c
cmp eax, 0xffffffff
je 0x405872
test al, 0x10
je 0x4058c1
movzx eax, word [edi]
mov bx, word [ebp + 0xc]
cmp ax, bx
je 0x40589c
mov edi, edi
movzx eax, ax
push eax
call fcn.00490e58
add esp, 4
test eax, eax
je 0x40589c
movzx eax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x405880
movzx eax, word [edi]
test ax, ax
je 0x40590e
cmp ax, bx
je 0x40590e
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0048faf7
mov esi, dword [ebp - 0x10]
add esp, 4
jmp 0x4056e0
push esi
call fcn.0048faf7
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x10]
push ebx
mov esi, dword [eax]
call fcn.0048faa4
mov ecx, dword [ebp + 0x10]
push esi
mov dword [ecx], eax
call fcn.0048faf7
mov eax, dword [ebp + 0x10]
sub edi, ebx
sar edi, 1
add esp, 8
xor ecx, ecx
mov eax, dword [eax]
mov word [eax + edi*2], cx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0048faf7
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret