Function at 0x413440
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f13a5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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 - 0x3c], eax
add esp, 4
mov word [eax], cx
push dword [0x540000]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov ebx, dword [ebp + 0xc]
or eax, 0x20019
push ecx
push eax
push 0
push dword [edi]
push ebx
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x4136d0
push 2
mov dword [ebp - 0x20], eax
call fcn.004c8c9a
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov word [ebx], ax
push 2
call fcn.004c8c9a
mov esi, eax
xor eax, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov word [esi], ax
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
push ecx
push dword [ebp - 0x18]
call fcn.00415050
add esp, 0x18
test eax, eax
jne 0x4136ab
push 0x4fbdfc
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
mov eax, dword [edi]
mov ecx, 0x4fbd20
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0x10
lea ecx, [ebp - 0x14]
push esi
call fcn.00405090
push esi
call fcn.004c8c7f
mov edi, dword [ebp - 0x14]
mov eax, 0x4fbd20
test edi, edi
cmovne eax, edi
push eax
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0xc
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00405090
mov esi, dword [ebp - 0x14]
mov eax, 0x4fbd20
test esi, esi
cmovne eax, esi
push eax
call fcn.004c8c20
push dword [ebp - 0x1c]
mov ebx, eax
mov dword [ebp - 0x14], ebx
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push 0
push 1
push 0xffffffffffffffff
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c3d0
push 0x4fbd60
mov ebx, eax
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
mov eax, dword [ebp - 0x14]
mov ecx, 0x4fbd20
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
add esp, 0x40
lea ecx, [ebp - 0x1c]
push esi
call fcn.00405090
push esi
call fcn.004c8c7f
mov edi, dword [ebp - 0x1c]
mov eax, 0x4fbd20
test edi, edi
cmovne eax, edi
push eax
call fcn.004c8c20
push dword [ebp - 0x24]
mov esi, eax
mov dword [ebp - 0x28], esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push 0
push 0
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c3d0
push dword [ebp - 0x10]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
mov edi, dword [ebp - 0x20]
inc edi
push 2
mov dword [ebp - 0x20], edi
call fcn.004c8c9a
mov ebx, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], ebx
add esp, 0x40
mov word [ebx], ax
push 2
call fcn.004c8c9a
mov esi, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], esi
mov word [esi], ax
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
push edi
push dword [ebp - 0x18]
call fcn.00415050
mov edi, dword [ebp + 0x10]
add esp, 0x14
test eax, eax
je 0x413504
push dword [ebp - 0x10]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push ebx
call fcn.004c8c7f
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413825
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x20], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
mov edi, eax
push 0
mov dword [ebp - 0x2c], edi
call fcn.004c8c7f
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.00409d10
add esp, 0x48
mov ebx, eax
push 0x4fbd20
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x30], esi
call fcn.004c8c7f
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push dword [ebp + 0xc]
push eax
call fcn.00409d10
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xd
push ecx
push 1
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405510
add esp, 0x5c
push dword [ebp - 0x34]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push dword [ebp - 0x38]
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x28]
call fcn.004c8c7f
push dword [ebp - 0x24]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
push dword [ebp - 0x1c]
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
add esp, 0x28
push dword [ebp - 0x3c]
call fcn.004c8c7f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret