Function at 0x40ca60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 0x1c], 0x31
mov dword [ebp - 0x30], 0x43
mov dword [ebp - 8], 0x3c
mov dword [ebp - 0x24], 0x1b
mov dword [ebp - 4], 7
mov dword [ebp - 0x14], 0x5d
mov dword [ebp - 0x54], 0x1a
mov dword [ebp - 0x58], 0x64
mov dword [ebp - 0xc], 0x3e
mov dword [ebp - 0x5c], 0x5e
mov dword [ebp - 0x34], 0x45
mov dword [ebp - 0x60], 0x2e
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x28], 0x30
mov dword [ebp - 0x40], 0x1a
mov dword [ebp - 0x64], 0x60
mov dword [ebp - 0x48], 8
mov dword [ebp - 0x3c], 6
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x44], 0x21
mov dword [ebp - 0x68], 0x5f
mov dword [ebp - 0x6c], 0x34
mov dword [ebp - 0x50], 0x21
mov dword [ebp - 0x70], 0x3e
mov dword [ebp - 0x38], 0x64
mov dword [ebp - 0x18], 0x4a
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp + 0x28]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x30]
or ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x30]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x24]
or eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
and ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x14]
or edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x54]
and eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 8]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0xc]
and edx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x5c]
or eax, dword [ebp - 4]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x34]
and ecx, dword [ebp - 8]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x20]
and eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x40]
xor edx, dword [ebp - 0x34]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x48]
xor ecx, dword [ebp - 8]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x10]
and eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x44]
and ecx, dword [ebp - 0x30]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x68]
sub edx, dword [ebp - 0x28]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x6c]
xor eax, dword [ebp - 0x20]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x50]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x70]
and edx, dword [ebp - 4]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x2c]
and edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x38], 0x4a
je 0x40cc25
mov eax, dword [ebp + 0x24]
sub eax, 1
mov dword [ebp + 0x24], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x34], 0x4b
jle 0x40cc96
push 0x121ca
push 0x157b0
push 0x166aa
push 0xac22
push 0x99b5
push 0x2c58
push 0x174b1
call dword [sym.imp.KERNEL32.dll_SetEvent]
add esp, 0x1c
cmp dword [ebp - 0x38], 0x24
jne 0x40cc6f
mov edx, dword [ebp - 0xc]
sub edx, 0x48
mov dword [ebp - 0xc], edx
push 0xdee0
push 0x17553
push 0xe494
push 0x91eb
push 0xc522
push 0x173ca
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add esp, 0x18
cmp dword [ebp - 0x18], 0x6c
jl 0x40cc16
cmp dword [ebp - 0x24], 0x44
jge 0x40ccaf
mov eax, dword [ebp + 0xc]
xor eax, 0x4a
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x18]
add ecx, 1
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp - 0x10]
and edx, 0x2f
mov dword [ebp - 0x10], edx
cmp dword [ebp + 0x18], 0x63
jl 0x40cca0
cmp dword [ebp + 0x20], 0x3a
jge 0x40cd94
cmp dword [ebp - 0x44], 0x62
jle 0x40cd22
push 0x155cf
push 0x11187
push 0x76ac
push 0x17eba
push 0x1756d
push 0x180b6
push 0x180d5
push 0x63e3
push 0x1f4b
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
add esp, 0x24
cmp dword [ebp - 0x14], 5
jge 0x40cd22
cmp dword [ebp + 0x10], 0x51
je 0x40cd22
mov eax, dword [ebp - 0xc]
xor eax, 0x2b
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x20]
add ecx, 1
mov dword [ebp + 0x20], ecx
cmp dword [ebp + 0x24], 4
jge 0x40cd8f
cmp dword [ebp - 4], 0x52
jle 0x40cd68
push 0x1e30
push 0xf42c
push 0x969e
push 0x4485
push 0x522b
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add esp, 0x14
cmp dword [ebp - 0x48], 0x61
je 0x40cd68
mov edx, dword [ebp - 0x14]
or edx, 0x1b
mov dword [ebp - 0x14], edx
push 0x630d
push 0xd919
push 0x12db6
push 0x1ed6
push 0xec9b
push 0x11095
call dword [sym.imp.KERNEL32.dll_UnregisterWait]
add esp, 0x18
jmp 0x40ccc7
mov dword [ebp - 0x4c], 0
jmp 0x40cda6
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x28]
sub ecx, 0x2f
cmp dword [ebp - 0x4c], ecx
jge 0x40cdfa
cmp dword [ebp - 0x10], 0x4e
jge 0x40cdf8
cmp dword [ebp + 0x24], 0x58
je 0x40cdf8
cmp dword [ebp - 0x3c], 0x2f
jne 0x40cdf8
push 0x13020
push 0xb564
push 0x13308
push 0x1fb1
push 0x16bee
push 0x13605
push 0x5448
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
add esp, 0x1c
mov edx, dword [ebp - 0x10]
and edx, 0x44
mov dword [ebp - 0x10], edx
jmp 0x40cd9d
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x15
push ecx
mov edx, dword [ebp - 4]
sub edx, 3
push edx
mov eax, dword [ebp - 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0x7f
push ecx
mov edx, dword [ebp - 0x54]
add edx, 0xf
push edx
mov eax, dword [ebp - 8]
sub eax, 0x11
push eax
call fcn.00423eb0
add esp, 0x1c
mov ecx, dword [ebp - 0x14]
add ecx, 0x15
push ecx
mov edx, dword [ebp - 4]
add edx, 0x40
push edx
call fcn.00428650
add esp, 8
cmp dword [ebp + 8], 0x52
jge 0x40ce5b
cmp dword [ebp - 0x18], 5
jle 0x40ce5b
mov eax, dword [ebp - 0x2c]
sub eax, 0x12
mov dword [ebp - 0x2c], eax
mov esp, ebp
pop ebp
ret