Function at 0x41ba30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f24e5
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x53ba20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
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 - 0x40], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x14], eax
add esp, 0x14
mov word [eax], cx
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 4
push eax
push dword [0x540000]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x41be81
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x38], eax
mov word [eax], cx
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 5
push eax
push ecx
push ecx
push dword [ebp + 0x14]
push dword [ebp - 0x54]
call fcn.004151a0
add esp, 0x18
test eax, eax
jne 0x41be6d
mov eax, dword [ebp - 0x38]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x41bb12
sub edx, esi
sar edx, 1
je 0x41be6d
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
push 0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
push ecx
push 0x2c
push eax
call fcn.00408b80
mov edi, dword [ebp - 0x74]
add esp, 0x10
mov esi, dword [ebp - 0x78]
mov eax, edi
sub eax, esi
mov dword [ebp - 0x4c], 0
sar eax, 4
test eax, eax
je 0x41be1d
mov eax, dword [ebp + 0x14]
mov ebx, 0x4fbd20
mov ecx, dword [ebp + 0x10]
test eax, eax
cmovne ebx, eax
test ecx, ecx
mov eax, 0x4fbd20
mov dword [ebp - 0x48], ebx
cmovne eax, ecx
xor edx, edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x50], edx
mov eax, dword [edx + esi + 4]
lea edi, [edx + esi]
mov esi, dword [ebp - 0x14]
mov ecx, 0x4fbd20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push esi
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
push 0
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.004069a0
mov esi, dword [ebp - 0x10]
mov ecx, 0x4fbd20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push esi
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push dword [ebp - 0x58]
call fcn.004c8c7f
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.00406990
push ebx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x28], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8c7f
mov ebx, dword [ebp - 0x44]
push ebx
mov dword [ebp - 0x24], 0
call fcn.004c8c20
add esp, 0x40
mov dword [ebp - 0x24], eax
push 0
call fcn.004c8c7f
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x60]
push eax
call fcn.00409d10
mov esi, eax
push 0x4fbd20
mov dword [ebp - 0x20], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x20], eax
call fcn.004c8c7f
push ebx
mov dword [ebp - 0x1c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push eax
call fcn.00409d10
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xc
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push edi
push esi
push eax
push dword [ebp + 8]
call fcn.00405200
add esp, 0x54
mov bl, al
push dword [ebp - 0x5c]
call fcn.004c8c7f
push dword [ebp - 0x1c]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
push dword [ebp - 0x60]
call fcn.004c8c7f
push dword [ebp - 0x24]
call fcn.004c8c7f
push dword [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.004c8c7f
add esp, 0x18
test bl, bl
mov ebx, dword [ebp - 0x48]
je 0x41bdf8
push ebx
mov dword [ebp - 0x28], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8c7f
mov edi, dword [ebp - 0x64]
push ebx
mov dword [ebp - 0x34], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x34], eax
call fcn.004c8c7f
mov eax, dword [ebp - 0x44]
push eax
mov dword [ebp - 0x30], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x30], eax
call fcn.004c8c7f
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
push eax
call fcn.00409d10
mov esi, eax
mov eax, dword [ebp + 0x18]
mov ecx, 0x4fbd20
test eax, eax
mov dword [ebp - 0x2c], 0
cmovne ecx, eax
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x2c], eax
call fcn.004c8c7f
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x11
push eax
movzx eax, byte [ebp + 0x24]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [ebp + 0x20]
push dword [ebp - 0x68]
push dword [ebp + 8]
call fcn.00405510
add esp, 0x74
push dword [ebp - 0x2c]
call fcn.004c8c7f
push dword [ebp - 0x6c]
call fcn.004c8c7f
push dword [ebp - 0x30]
call fcn.004c8c7f
push dword [ebp - 0x34]
call fcn.004c8c7f
push dword [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.004c8c7f
add esp, 0x14
mov edi, dword [ebp - 0x74]
mov eax, edi
mov ecx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x78]
inc ecx
mov edx, dword [ebp - 0x50]
sub eax, esi
add edx, 0x10
sar eax, 4
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
cmp ecx, eax
jb 0x41bb92
test esi, esi
je 0x41be6d
cmp esi, edi
je 0x41be41
lea ecx, [esi + 4]
call fcn.004028a0
push dword [esi]
call fcn.004c8c7f
add esi, 0x10
add esp, 4
cmp esi, edi
jne 0x41be25
mov esi, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x70]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x41be63
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bec1
push ecx
push esi
call fcn.004c3279
add esp, 8
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x38]
call fcn.004c8c7f
add esp, 4
push dword [ebp - 0x14]
call fcn.004c8c7f
push dword [ebp - 0x3c]
call fcn.004c8c7f
push dword [ebp - 0x40]
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
mov eax, dword [ebp + 0x20]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
call fcn.004c8bcf
int3