Function at 0x412b10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a91a7
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 2
mov dword [ebp - 0x54], ebx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x5c], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
mov esi, eax
xor eax, eax
mov dword [ebp - 0x8c], esi
mov word [esi], ax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x4c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x58], eax
add esp, 0x1c
mov word [eax], cx
cmp dword [ebp + 0x14], 0xffffffff
mov edi, dword [ebp + 0x10]
mov byte [ebp - 4], 6
jne 0x412d2d
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x30], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x18], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x34], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x2c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x24], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x1c], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x20], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x38], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push eax
call fcn.00407620
mov edi, eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push ebx
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x12
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push ebx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push edi
push eax
mov eax, dword [ebp + 8]
push ebx
push 0xffffffffffffffff
push ebx
push eax
call fcn.00403eb0
push dword [ebp - 0x40]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x48]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x24]
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.0048faf7
mov edi, dword [ebp + 0x10]
add esp, 0x2c
lea eax, [ebp - 0x44]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push edi
push dword [ebp + 0xc]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x413187
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0x44]
call fcn.00410500
add esp, 0xc
test eax, eax
jne 0x41317e
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x6c]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push edi
push dword [ebp - 0x44]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x413159
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0x4b4cdc
push dword [ebp - 0x6c]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x413150
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xa0], eax
mov word [eax], cx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], ecx
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0x13
push eax
push dword [ebp - 0x5c]
call fcn.00406840
add esp, 0xc
test al, al
je 0x413141
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xa0]
push 0
push eax
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00404cf0
mov edi, dword [ebp - 0x14]
push dword [eax]
call fcn.0048faa4
push edi
mov dword [ebp - 0x14], eax
call fcn.0048faf7
push dword [ebp - 0x80]
call fcn.0048faf7
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x14]
push ebx
call fcn.00404ce0
mov ebx, dword [ebp + 0x10]
mov ecx, 0x4af9b8
test ebx, ebx
mov dword [ebp - 0x7c], eax
cmovne ecx, ebx
push ecx
call fcn.0048faa4
mov dword [ebp - 0x18], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x30], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp + 0x14], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x88]
push ebx
push eax
call fcn.00407620
add esp, 0x48
mov edi, eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.00407620
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x18
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00403c00
push dword [ebp - 0x78]
mov bl, al
call fcn.0048faf7
push dword [ebp - 0x88]
call fcn.0048faf7
push dword [ebp + 0x14]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
add esp, 0x40
push dword [ebp - 0x18]
call fcn.0048faf7
add esp, 4
test bl, bl
je 0x41313e
cmp esi, 0xffffffff
jne 0x41308d
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x68], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x60], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x28], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x38], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x20], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x1c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 0x10]
mov eax, 0x4af9b8
test ebx, ebx
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x2c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x34], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp - 0x90]
push esi
push eax
call fcn.00407620
mov edi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x24
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push 0
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push edi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00403eb0
push dword [ebp - 0x70]
mov esi, eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x90]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x24]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x60]
call fcn.0048faf7
push dword [ebp - 0x68]
call fcn.0048faf7
add esp, 0x2c
jmp 0x413090
mov ebx, dword [ebp + 0x10]
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x40], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x48], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x84]
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x28
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push dword [ebp - 0x74]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push 3
push esi
push dword [ebp - 0x7c]
push dword [ebp + 8]
call fcn.00403eb0
add esp, 0x60
push dword [ebp - 0x84]
call fcn.0048faf7
push dword [ebp - 0x64]
call fcn.0048faf7
push dword [ebp - 0x48]
call fcn.0048faf7
push dword [ebp - 0x40]
call fcn.0048faf7
add esp, 0x10
mov ebx, dword [ebp - 0x54]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.00402130
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
inc ebx
push eax
push ebx
push dword [ebp - 0x44]
mov dword [ebp - 0x54], ebx
call fcn.00410500
add esp, 0xc
test eax, eax
je 0x412d75
mov dword [ebp + 0x14], esi
mov esi, dword [ebp - 0x8c]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x58]
call fcn.0048faf7
push dword [ebp - 0x50]
call fcn.0048faf7
push dword [ebp - 0x4c]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push esi
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
push dword [ebp - 0x5c]
call fcn.0048faf7
mov eax, dword [ebp + 0x14]
add esp, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret