Function at 0x426520
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3abd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
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
add esp, 4
mov word [eax], cx
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp esi, 0xffffffff
jne 0x426761
push 0x4fbd20
mov dword [ebp - 0x34], ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x34], 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 - 0x2c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x2c], 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 - 0x24], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x20], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x20], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x1c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
mov esi, 0x4fbd20
mov dword [ebp - 0x18], 0
test ebx, ebx
mov edi, esi
cmovne edi, ebx
push edi
call fcn.004c8c20
push 0
mov dword [ebp - 0x18], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
call fcn.00409d10
mov ebx, eax
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [ebp - 0x14], 0
cmovne esi, eax
push esi
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
push edi
mov dword [ebp + 0x18], 0
call fcn.004c8c20
push 0
mov dword [ebp + 0x18], eax
call fcn.004c8c7f
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
push eax
call fcn.00409d10
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x34]
mov edi, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x1c]
movzx ecx, cl
push ecx
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push edi
call fcn.00405510
add esp, 0x74
mov esi, eax
push dword [ebp - 0x3c]
call fcn.004c8c7f
push dword [ebp + 0x18]
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
push dword [ebp - 0x40]
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
push dword [ebp - 0x1c]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
push dword [ebp - 0x24]
call fcn.004c8c7f
push dword [ebp - 0x28]
call fcn.004c8c7f
push dword [ebp - 0x2c]
call fcn.004c8c7f
push dword [ebp - 0x30]
call fcn.004c8c7f
push dword [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.004c8c7f
mov ebx, dword [ebp + 0x10]
add esp, 0x30
lea eax, [ebp - 0x38]
push eax
push dword [0x540000]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push ebx
push dword [ebp + 0xc]
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x4267df
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x38]
call fcn.004151a0
add esp, 0x14
test eax, eax
jne 0x4267d6
mov ebx, dword [ebp + 0x1c]
test bl, bl
jne 0x4267c4
push 0x4fbdfc
lea ecx, [ebp - 0x10]
call fcn.00405090
push 0x5017e4
lea ecx, [ebp - 0x10]
call fcn.00405090
mov eax, dword [ebp - 0x10]
push ebx
push esi
push eax
push eax
push edi
call fcn.00426800
add esp, 0x14
mov esi, eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call fcn.004c8c7f
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp