Function at 0x40c3d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0b9e
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push esi
push edi
mov eax, dword [0x53ba20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
xor eax, eax
push 2
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0xf8], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0xa8], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0xc0], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0xa4], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
mov esi, eax
add esp, 0x14
xor eax, eax
mov dword [ebp - 0x34], esi
mov word [esi], ax
cmp dword [ebp + 0x1c], 0xffffffff
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 4], 4
jne 0x40c621
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x3c], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x44], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x50], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x54], eax
call fcn.004c8c7f
test edi, edi
mov esi, 0x4fbd20
cmovne esi, edi
push esi
call fcn.004c8c20
push 0
mov dword [ebp - 0x58], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.00409d10
mov ebx, eax
push 0x4fbd20
call fcn.004c8c20
mov edi, eax
push 0
mov dword [ebp + 0x1c], edi
call fcn.004c8c7f
push esi
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x38], esi
call fcn.004c8c7f
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00409d10
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x10
push ecx
movzx ecx, byte [ebp + 0x20]
push ecx
push 0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405510
add esp, 0x74
mov dword [ebp + 0x1c], eax
push dword [ebp - 0xac]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x4c]
call fcn.004c8c7f
push dword [ebp - 0x58]
call fcn.004c8c7f
push dword [ebp - 0x54]
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
push dword [ebp - 0x50]
call fcn.004c8c7f
push dword [ebp - 0x44]
call fcn.004c8c7f
push dword [ebp - 0x3c]
call fcn.004c8c7f
push dword [ebp - 0x28]
call fcn.004c8c7f
push dword [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.004c8c7f
mov esi, dword [ebp - 0x34]
add esp, 0x30
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0xa0]
push eax
push 0x20119
push 0
push edi
push ebx
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x40de04
push 2
mov dword [ebp - 0x44], eax
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
mov edi, eax
xor eax, eax
mov dword [ebp - 0x58], edi
mov word [edi], ax
push 2
call fcn.004c8c9a
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x40], ebx
mov word [ebx], ax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x50]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0xa0]
call fcn.004150d0
add esp, 0x30
test eax, eax
jne 0x40ddc9
mov eax, dword [ebp - 0x50]
cmp eax, 1
je 0x40c71a
cmp eax, 2
je 0x40c71a
cmp eax, 7
je 0x40c71a
cmp eax, 3
je 0x40c71a
push ebx
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
jmp 0x40dd33
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c722
sub ecx, edx
sar ecx, 1
jne 0x40c751
cmp byte [ebp + 0x24], al
je 0x40c79a
push 0x4fca0c
call fcn.004c8c20
push ebx
mov dword [ebp - 0x18], eax
call fcn.004c8c7f
mov ebx, dword [ebp - 0x18]
add esp, 8
test ebx, ebx
mov eax, 0x4fbd20
cmovne eax, ebx
push eax
call fcn.004c8c20
push dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], eax
call fcn.004c8c7f
add esp, 8
cmp byte [ebp + 0x18], 0
je 0x40cdde
push dword [0x540000]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
mov esi, dword [ebp - 0x10]
cmp eax, 0x200
jne 0x40c7a2
push 0x4fca20
jmp 0x40c7a7
push dword [ebp - 0x24]
jmp 0x40c6ea
push 0x4fbd20
call fcn.004c8c20
add esp, 4
mov dword [ebp - 0x10], eax
push esi
call fcn.004c8c7f
push 0x4fbe8c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
test esi, esi
mov ecx, 0x4fbd20
cmovne ecx, esi
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0x14
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00405090
push esi
call fcn.004c8c7f
push 0x4fca3c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
mov ebx, dword [ebp - 0x14]
mov eax, 0x4fbd20
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0x14
lea ecx, [ebp - 0x14]
push esi
call fcn.00405090
push esi
call fcn.004c8c7f
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
add esp, 4
push esi
call fcn.00405090
push esi
call fcn.004c8c7f
push ebx
call fcn.004c8c7f
push 0x4fca5c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
test esi, esi
mov ecx, 0x4fbd20
cmovne ecx, esi
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0x18
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00405090
push esi
call fcn.004c8c7f
mov ebx, dword [ebp - 0x14]
mov eax, 0x4fbd20
mov esi, dword [ebp - 0x34]
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.004c8c20
mov dword [ebp - 0x34], eax
push esi
call fcn.004c8c7f
push ebx
invalid