Function at 0x416540
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62ac8b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ecx]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x416796
cmp byte [ebx + 4], 0
je 0x416632
push 0x50
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.005fc2a0
mov eax, dword [edi]
lea esi, [edi + 8]
add esp, 0xc
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x64]
push esi
call fcn.0041d900
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x30], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x48]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 1
push eax
push eax
call fcn.004149b0
mov edi, dword [ebp - 0x30]
add esp, 8
test edi, edi
je 0x416611
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x416611
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x416611
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x416778
mov edx, dword [ecx]
lea eax, [ebp - 0x5c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x416778
mov eax, dword [ebx]
lea ecx, [ebp - 0xc4]
push edi
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x74], eax
call fcn.0041bd30
push dword [0x6b1224]
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x416665
mov eax, dword [eax + 4]
jmp 0x416667
xor eax, eax
push 0x60
push eax
push dword [ebp - 0x74]
call fcn.004148f0
mov edi, eax
mov dword [ebp - 0x14], 0
add esp, 0xc
mov dword [ebp - 0x18], edi
mov dword [edi], 0x4339c0
lea eax, [ebp - 0xbc]
mov ecx, dword [ebp - 0xc4]
mov dword [edi + 8], ecx
lea ecx, [edi + 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.0041d900
mov dword [edi + 0x40], 0
lea ecx, [ebp - 0x1c]
mov dword [edi + 0x44], 0
mov eax, dword [ebp - 0x8c]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x88]
mov dword [edi + 0x44], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x7c]
mov dword [edi + 0x50], eax
mov eax, dword [ebp - 0x78]
mov dword [edi + 0x54], eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x18], 0
call fcn.0044cf00
mov edi, dword [ebp - 0x88]
test edi, edi
je 0x416729
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x416729
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x416729
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x416750
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xb4]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x90], 0
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 4
push eax
mov ecx, ebx
call dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 4], 5
test eax, eax
je 0x416778
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x1c]
call fcn.0041e770
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
call fcn.0041ab00
int3