Function at 0x4207cc
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov dword [ebp - 4], 1
mov edi, eax
mov eax, dword [ebp + 8]
add eax, eax
mov dword [ebp - 8], eax
jmp 0x420a0f
mov ebx, dword [ebp - 8]
mov eax, dword [edi]
neg ebx
mov edx, dword [eax + ebx*4]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00420790
mov edx, dword [edi]
pop ecx
mov eax, dword [ebp - 8]
neg eax
mov ecx, dword [edx + ebx*4 + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 8]
add ecx, 0x30
push ecx
call fcn.0043f0d4
add esp, 8
mov eax, dword [ebp - 0x10]
push eax
call fcn.0043f498
pop ecx
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 8]
add edx, 0x18
push edx
call fcn.0043f284
add esp, 8
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + 8]
test byte [ebx + 1], 0x20
je 0x420865
push ebx
call fcn.0043f7e0
pop ecx
mov ebx, eax
test dword [esi], 0xb405
je 0x420874
push esi
call fcn.0043f008
pop ecx
mov dword [esi], 0x12000
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
test byte [ebx + 1], 0x80
je 0x420947
mov eax, dword [ebx + 8]
cmp word [eax + 0xc], 0
je 0x420947
push 0x19
push ebx
call fcn.0042d7d4
add esp, 8
test eax, eax
je 0x420947
xor edx, edx
mov dword [esi + 0x10], edx
push 0
call fcn.0043da24
pop ecx
mov dword [esi + 0xc], eax
call fcn.00422df0
cmp dword [ebp + 0xc], 0
sete cl
and ecx, 1
push ecx
call fcn.00422e18
pop ecx
mov eax, dword [edi]
mov edx, dword [eax - 4]
push edx
mov ecx, dword [ebp - 0x10]
push ecx
push ebx
mov eax, dword [eax - 8]
push eax
push 0x19
call fcn.0042d818
add esp, 0x14
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x420908
push eax
call fcn.0043f008
pop ecx
call fcn.0042557c
test ax, ax
jne 0x42091b
call fcn.00423ba8
test eax, eax
jne 0x420925
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x420a1f
push 0x1a
push ebx
call fcn.0042d7d4
add esp, 8
test eax, eax
jne 0x420a0b
mov ecx, dword [esi + 0xc]
push ecx
call fcn.0043dbc0
pop ecx
xor eax, eax
mov dword [esi + 0xc], eax
test byte [ebx + 1], 0x80
je 0x42097a
cmp dword [ebp + 0xc], 0
jle 0x42095a
mov edx, 1
jmp 0x420960
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 4]
mov dword [esi + 0x10], edx
mov eax, dword [ebx + 8]
cmp dword [eax + 4], 0
jne 0x420a0b
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x420a0b
test byte [ebx], 4
je 0x4209a3
push ebx
call fcn.0043ccbc
cmp dword [ebp + 0xc], 0
pop ecx
jle 0x420993
mov edx, 1
jmp 0x420995
mov edx, eax
mov dword [esi + 0x10], edx
test eax, eax
jne 0x420a0b
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x420a0b
test byte [ebx + 1], 4
je 0x4209e2
cmp dword [ebp + 0xc], 0
jle 0x4209b6
mov ecx, 1
jmp 0x4209b9
mov ecx, dword [ebx + 8]
mov dword [esi + 0x10], ecx
cmp dword [ebx + 8], 0
je 0x4209db
push 1
mov eax, dword [ebx + 0x10]
add eax, dword [esi + 0x10]
dec eax
push eax
push 0
call fcn.0043dce8
add esp, 0xc
mov dword [esi + 0xc], eax
jmp 0x420a0b
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x420a0b
call fcn.0042557c
test ax, ax
jne 0x420a0b
push ebx
push 1
push 0x2e
call fcn.0046c000
pop ecx
push eax
push 0
push 0x42c
push 1
call fcn.00457160
add esp, 0x18
jmp 0x420a33
sub dword [ebp - 8], 2
cmp dword [ebp - 8], 0
jle 0x420a1f
cmp dword [ebp - 4], 0
jne 0x4207f6
mov eax, dword [ebp + 8]
push eax
call fcn.00422f60
pop ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00422e18
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret