Function at 0x41e630
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2bcf
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push esi
push edi
mov eax, dword [0x53ba20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 2
mov dword [ebp - 0x80], ebx
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x4c], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x68], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x64], eax
add esp, 0x14
mov word [eax], cx
cmp dword [ebp + 0x14], 0xffffffff
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 4
jne 0x41e87d
push 0x4fbd20
mov dword [ebp - 0x24], ecx
call fcn.004c8c20
push ebx
mov dword [ebp - 0x24], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x20], ebx
call fcn.004c8c20
push ebx
mov dword [ebp - 0x20], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x10], ebx
call fcn.004c8c20
push ebx
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x40], ebx
call fcn.004c8c20
push ebx
mov dword [ebp - 0x40], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x3c], ebx
call fcn.004c8c20
push ebx
mov dword [ebp - 0x3c], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x38], ebx
call fcn.004c8c20
push ebx
mov dword [ebp - 0x38], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x34], ebx
call fcn.004c8c20
push ebx
mov dword [ebp - 0x34], eax
call fcn.004c8c7f
test edi, edi
mov dword [ebp - 0x30], ebx
mov esi, 0x4fbd20
cmovne esi, edi
push esi
call fcn.004c8c20
push ebx
mov dword [ebp - 0x30], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.00409d10
mov edi, eax
push 0x4fbd20
mov dword [ebp - 0x2c], ebx
call fcn.004c8c20
push ebx
mov dword [ebp - 0x2c], eax
call fcn.004c8c7f
push esi
mov dword [ebp - 0x28], ebx
call fcn.004c8c20
push ebx
mov dword [ebp - 0x28], eax
call fcn.004c8c7f
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x50]
push eax
call fcn.00409d10
movzx ecx, byte [ebp + 0x18]
lea edx, [ebp - 0x24]
push 0xffffffffffffffff
push ebx
push ebx
push edx
push ecx
push ebx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x10
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push edi
push eax
push ebx
push 0xffffffffffffffff
push ebx
push esi
call fcn.00405510
add esp, 0x74
mov dword [ebp + 0x14], eax
push dword [ebp - 0x50]
call fcn.004c8c7f
push dword [ebp - 0x28]
call fcn.004c8c7f
push dword [ebp - 0x2c]
call fcn.004c8c7f
push dword [ebp - 0x44]
call fcn.004c8c7f
push dword [ebp - 0x30]
call fcn.004c8c7f
push dword [ebp - 0x34]
call fcn.004c8c7f
push dword [ebp - 0x38]
call fcn.004c8c7f
push dword [ebp - 0x3c]
call fcn.004c8c7f
push dword [ebp - 0x40]
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
push dword [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.004c8c7f
mov edi, dword [ebp + 0x10]
add esp, 0x30
push dword [0x540000]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x48]
or eax, 0x20019
push ecx
push eax
push 0
push edi
push dword [0x534a0c]
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x41ef74
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x11
push eax
push ecx
push dword [ebp - 0x48]
call fcn.00415050
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
test eax, eax
jne 0x41ef64
nop dword [eax]
push dword [0x540000]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x60]
or eax, 0x20019
push ecx
push eax
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x48]
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x41ef44
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x501b18
push dword [ebp - 0x60]
call fcn.004151a0
add esp, 0x14
test eax, eax
je 0x41e94a
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x501ae0
push dword [ebp - 0x60]
call fcn.004151a0
add esp, 0x14
test eax, eax
jne 0x41ef3f
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x7c], eax
mov word [eax], cx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x12
push eax
push dword [ebp - 0x14]
call fcn.00408e00
mov eax, dword [ebp - 0x14]
mov ecx, 0x4fbd20
test eax, eax
mov dword [ebp - 0x44], 0
cmovne ecx, eax
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x44], eax
call fcn.004c8c7f
push 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004069a0
mov esi, dword [ebp - 0x1c]
mov ecx, 0x4fbd20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push esi
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
push dword [ebp - 0x84]
call fcn.004c8c7f
push 0x5c
push dword [ebp - 0x14]
call fcn.004c55d8
add esp, 0x38
test eax, eax
jne 0x41eb0a
push 0x4fbdfc
call fcn.004c8c20
mov edi, eax
push 0
mov dword [ebp - 0x6c], edi
call fcn.004c8c7f
cmp dword [ebp + 0x1c], 0
mov eax, 0x540794
mov ebx, 0x540798
push 0x501b28
cmove ebx, eax
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x10], esi
call fcn.004c8c7f
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004152c0
push esi
call fcn.004c8c7f
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004152c0
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004152c0
push dword [ebp - 0x88]
mov byte [ebp - 4], 0x14
call fcn.004c8c7f
push dword [ebp - 0x50]
call fcn.004c8c7f
add esp, 0x40
push edi
call fcn.004c8c7f
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x90]
mov ebx, dword [ebp + 8]
push 0
push esi
push ebx
push eax
call fcn.004069d0
mov edi, dword [ebp - 0x14]
mov ecx, 0x4fbd20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push edi
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
push dword [ebp - 0x90]
call fcn.004c8c7f
push 0x10
push 0x4fc4b4
push dword [ebp - 0x14]
call fcn.004c928a
add esp, 0x2c
test eax, eax
je 0x41eafb
mov eax, dword [ebp - 0x14]
mov ecx, 0x4fbd20
mov edi, dword [ebp - 0x1c]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push edi
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
add esp, 8
push esi
mov byte [ebp - 4], 0x13
call fcn.004c8c7f
add esp, 4
jmp 0x41eb0d
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x1c]
push ebx
call fcn.00406990
mov dword [ebp - 0x6c], eax
mov edi, 0x4fbd20
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [ebp - 0x10], 0
cmovne edi, eax
push edi
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x98]
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 edi
mov dword [ebp - 0x24], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8c7f
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x94]
push eax
call fcn.00409d10
add esp, 0x48
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x19
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00405200
push dword [ebp - 0x94]
mov bl, al
call fcn.004c8c7f
push dword [ebp - 0x24]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
push dword [ebp - 0x98]
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
add esp, 0x34
test bl, bl
je 0x41eeb5
cmp dword [ebp + 0x14], 0xffffffff
jne 0x41ee04
push 0x4fbd20
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x58], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x58], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x54], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x54], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x28], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x2c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x2c], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x30], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x30], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x34], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x34], eax
call fcn.004c8c7f
push edi
mov dword [ebp - 0x38], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x38], eax
call fcn.004c8c7f
add esp, 0x40
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x21
push eax
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.00409d10
mov esi, eax
push 0x4fbd20
mov dword [ebp - 0x3c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x3c], eax
call fcn.004c8c7f
push edi
mov dword [ebp - 0x40], 0
call fcn.004c8c20
mov dword [ebp - 0x40], eax
push 0
call fcn.004c8c7f
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x24
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x9c]
push ebx
push eax
call fcn.00409d10
movzx ebx, byte [ebp + 0x18]
lea ecx, [ebp - 0x10]
push 0xffffffffffffffff
push 0
push 0
push ecx
push ebx
push 0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x25
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405510
add esp, 0x74
mov dword [ebp + 0x14], eax
push dword [ebp - 0x9c]
call fcn.004c8c7f
push dword [ebp - 0x40]
call fcn.004c8c7f
push dword [ebp - 0x3c]
call fcn.004c8c7f
push dword [ebp - 0xa0]
call fcn.004c8c7f
push dword [ebp - 0x38]
call fcn.004c8c7f
push dword [ebp - 0x34]
call fcn.004c8c7f
push dword [ebp - 0x30]
call fcn.004c8c7f
push dword [ebp - 0x2c]
call fcn.004c8c7f
push dword [ebp - 0x28]
call fcn.004c8c7f
push dword [ebp - 0x54]
call fcn.004c8c7f
push dword [ebp - 0x58]
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
add esp, 0x30
jmp 0x41ee08
movzx ebx, byte [ebp + 0x18]
push 0x4fbd20
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
mov esi, dword [ebp - 0xa4]
push edi
mov dword [ebp - 0x5c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5c], eax
call fcn.004c8c7f
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xa8]
push eax
call fcn.00409d10
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x28
push ecx
push ebx
push esi
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 3
push dword [ebp + 0x14]
push dword [ebp - 0x6c]
push dword [ebp + 8]
call fcn.00405510
add esp, 0x64
push dword [ebp - 0xa8]
call fcn.004c8c7f
push dword [ebp - 0x5c]
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
add esp, 0xc
push dword [ebp - 0x44]
call fcn.004c8c7f
mov esi, dword [ebp - 0x78]
add esp, 4
mov byte [ebp - 4], 0x11
test esi, esi
je 0x41ef2b
mov edi, dword [ebp - 0x74]
cmp esi, edi
je 0x41eee6
push dword [esi]
call fcn.004c8c7f
add esi, 4
add esp, 4
cmp esi, edi
jne 0x41eed2
mov esi, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x70]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x41ef0c
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41efb4
push ecx
push esi
call fcn.004c3279
add esp, 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
push dword [ebp - 0x7c]
call fcn.004c8c7f
mov ebx, dword [ebp - 0x80]
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x60]
call edi
lea eax, [ebp - 0x18]
inc ebx
push eax
push ebx
push dword [ebp - 0x48]
mov dword [ebp - 0x80], ebx
call fcn.00415050
add esp, 0xc
test eax, eax
jne 0x41ef64
mov esi, dword [ebp + 8]
jmp 0x41e8e0
push dword [ebp - 0x48]
call edi
push dword [ebp - 0x18]
call fcn.004c8c7f
add esp, 4
push dword [ebp - 0x64]
call fcn.004c8c7f
push dword [ebp - 0x68]
call fcn.004c8c7f
push dword [ebp - 0x4c]
call fcn.004c8c7f
push dword [ebp - 0x1c]
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
mov eax, dword [ebp + 0x14]
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
ret
call fcn.004c8bcf
int3