Function at 0x40cfa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cea1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x46d45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
test eax, eax
je 0x40d004
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
push edx
call fcn.0043926d
add esp, 4
test eax, eax
jne 0x40cff9
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
movzx edx, word [ebp + 0xc]
cmp ecx, edx
jne 0x40d004
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
jmp 0x40cfce
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
test edx, edx
je 0x40d01c
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
movzx edx, word [ebp + 0xc]
cmp ecx, edx
jne 0x40d02b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
xor al, al
jmp 0x40d340
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
cmp eax, 0x22
jne 0x40d0c4
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
test ecx, ecx
je 0x40d069
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x22
je 0x40d069
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
jmp 0x40d049
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
test eax, eax
je 0x40d07e
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x2c], ecx
jmp 0x40d084
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
movzx edx, word [ebp + 0xc]
test edx, edx
je 0x40d0bf
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx edx, word [ecx]
test edx, edx
je 0x40d0bf
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx edx, word [ecx]
movzx eax, word [ebp + 0xc]
cmp edx, eax
je 0x40d0bf
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add edx, 2
mov eax, dword [ebp + 8]
mov dword [eax], edx
jmp 0x40d094
jmp 0x40d31c
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
test eax, eax
je 0x40d100
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
movzx eax, word [ebp + 0xc]
cmp edx, eax
je 0x40d100
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
cmp edx, 0x20
jne 0x40d0f5
movzx eax, word [ebp + 0xc]
test eax, eax
je 0x40d100
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
jmp 0x40d0ca
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x40d314
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
cmp ecx, 0x25
je 0x40d132
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
cmp eax, 0x5c
je 0x40d132
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 2]
cmp edx, 0x3a
jne 0x40d314
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004021e0
mov ecx, dword [ebp + 0x10]
call fcn.00402270
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402280
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402270
push eax
call fcn.004397e3
add esp, 4
mov ecx, dword [0x46f464]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0x100
jne 0x40d239
push 0x455764
lea ecx, [ebp - 0x18]
call fcn.00402270
push eax
call fcn.00416750
add esp, 8
test eax, eax
je 0x40d239
push 0x455784
lea ecx, [ebp - 0x18]
call fcn.00402270
push eax
call fcn.00416750
add esp, 8
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.00402270
sub esi, eax
sar esi, 1
mov dword [ebp - 0x20], esi
push 0x1c
push 0x4557a4
mov ecx, dword [ebp + 0x10]
call fcn.00402270
mov edx, dword [ebp - 0x20]
lea eax, [eax + edx*2]
push eax
call fcn.00437b50
add esp, 0xc
mov ecx, dword [ebp + 0x10]
call fcn.00402270
mov ecx, dword [ebp - 0x20]
lea esi, [eax + ecx*2]
push 0x4557c4
call fcn.00438225
add esp, 4
lea edx, [esi + eax*2]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00402270
mov ecx, dword [ebp - 0x20]
lea esi, [eax + ecx*2]
push str._ProgramW6432_
call fcn.00438225
add esp, 4
lea edx, [esi + eax*2]
push edx
call fcn.004387e0
add esp, 8
mov ecx, dword [ebp + 0x10]
call fcn.00402270
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041d6a0
add esp, 8
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00402240
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004021c0
mov ecx, dword [ebp + 0x10]
call fcn.00402270
push eax
call fcn.0041d990
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40d295
mov eax, dword [ebp - 0x1c]
and eax, 0x10
je 0x40d305
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
movzx eax, word [ebp + 0xc]
cmp edx, eax
je 0x40d2c1
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
push edx
call fcn.0043926d
add esp, 4
test eax, eax
je 0x40d2c1
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
jmp 0x40d295
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
test edx, edx
je 0x40d2ed
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
movzx edx, word [ebp + 0xc]
cmp ecx, edx
je 0x40d2ed
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004021c0
jmp 0x40d0ca
mov byte [ebp - 0x25], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004021c0
mov al, byte [ebp - 0x25]
jmp 0x40d340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004021c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.004021e0
mov ecx, dword [ebp + 0x10]
call fcn.00402270
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret