Function at 0x40c180
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429379
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4360e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 8
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x5c]
push eax
call fcn.00409af0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0xc8]
call fcn.004093f0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x4c], 0
je 0x40c1eb
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
call eax
add esp, 4
mov dword [ebp - 0x28], 3
sub esp, 8
mov dword [ebp - 4], 2
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0xc8]
push eax
call fcn.00409b80
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0xac]
call fcn.004093f0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x4c], 0
je 0x40c232
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
call eax
add esp, 4
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x78]
call fcn.004093f0
mov dword [ebp - 0x28], 0x3b
mov byte [ebp - 4], 4
cmp dword [ebp - 0x9c], 0
je 0x40c269
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x68], 0
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov bl, byte [eax + 8]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x84], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], edi
mov byte [ebp - 0x88], bl
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], eax
je 0x40c3c4
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40c2d6
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x78]
push fcn.0040c460
push ecx
call eax
add esp, 0xc
jmp 0x40c36a
push dword [0x43872c]
lea eax, [ebp - 0x21]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40c2f1
mov ecx, dword [eax + 4]
jmp 0x40c2f3
xor ecx, ecx
push ecx
push dword [ebp - 0x30]
mov edx, 0x20
call fcn.0040ca00
mov ecx, dword [ebp - 0x34]
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [eax + 4], esi
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 8], edi
mov byte [eax + 0xc], bl
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x18], ecx
lea ecx, [ebp - 0x20]
mov dword [eax], 0x40cab0
mov dword [ebp - 0x2c], eax
call fcn.0040c7e0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 8]
call eax
add esp, 8
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40c36a
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov byte [ebp - 4], 8
cmp dword [ebp - 0x68], 0
je 0x40c382
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
call eax
add esp, 4
mov dword [ebp - 4], 9
cmp dword [ebp - 0xb8], 0
je 0x40c3a6
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
call eax
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f853
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x20]
call fcn.00402660
mov byte [ebp - 4], 7
call fcn.00409a90
int3