Function at 0x4199d0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x45d263
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473354]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
push 1
call fcn.0042f396
mov dword [esp + 0x40], eax
mov byte [eax], 0
push 1
mov dword [esp + 0xbc], 0
call fcn.0042f396
mov dword [esp + 0x54], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x5c], eax
add esp, 0xc
mov byte [eax], 0
cmp dword [0x474d7c], 0
mov edi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xbc]
mov byte [esp + 0xb4], 2
je 0x419c1e
cmp dword [esp + 0xc8], 0xffffffff
jne 0x419c1e
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x3c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x38], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x40], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x3c], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x28], eax
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x30], eax
push 0x46043c
call fcn.0042f484
add esp, 0x1c
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0xc4]
mov eax, ebp
test ebp, ebp
jne 0x419add
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x28], eax
push 0x46043c
call fcn.0042f484
add esp, 8
mov dword [esp + 0x20], eax
mov eax, ebp
test ebp, ebp
jne 0x419b03
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x50]
push edi
push edx
mov byte [esp + 0xc8], 0xc
call fcn.00407af0
mov esi, eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x5c]
push edi
push edx
mov byte [esp + 0xd8], 0xd
call fcn.00407af0
movzx edx, byte [esp + 0xf0]
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x68]
push ecx
push edx
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x60]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push ebx
mov byte [esp + 0x118], 0xe
call fcn.0040c0f0
mov edx, dword [esp + 0xa4]
add esp, 0x64
push edx
mov dword [esp + 0xcc], eax
call fcn.0042f4d9
mov eax, dword [esp + 0x48]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x34]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x30]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x30]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x58]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x58]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x64]
push ecx
mov byte [esp + 0xe4], 2
call fcn.0042f4d9
add esp, 0x30
jmp 0x419c25
mov ebp, dword [esp + 0xc4]
mov eax, dword [0x4746a8]
lea edx, [esp + 0x48]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push ebp
push edi
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x41a319
push 1
mov dword [esp + 0x44], eax
call fcn.0042f396
mov dword [esp + 0x1c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x28], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x20], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x2c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x38], eax
mov byte [eax], 0
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x2c]
push ecx
push 0
push edx
mov byte [esp + 0xd4], 0x13
call fcn.00416b90
add esp, 0x20
test eax, eax
jne 0x41a2d9
mov edi, edi
mov ecx, dword [0x4746a8]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x4c]
or eax, 0x20019
push eax
push 0
push esi
push edx
call fcn.00409f10
add esp, 0x14
test eax, eax
je 0x419d2a
mov eax, dword [esp + 0x24]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x1c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x2c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0042f4d9
add esp, 0x14
jmp 0x41a267
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push str.CLSID
push eax
call fcn.00416ab0
mov ecx, dword [esp + 0x3c]
add esp, 0x14
push ecx
test eax, eax
je 0x419d8e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x24]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x20]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x28]
push eax
call fcn.0042f4d9
add esp, 0x14
jmp 0x41a267
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebp
lea edx, [esp + 0x20]
push edx
mov eax, str.CLSID_
lea ecx, [esp + 0x74]
call fcn.00419990
push eax
mov eax, 0x46155c
lea ecx, [esp + 0x8c]
call fcn.00419950
mov eax, dword [eax]
mov esi, dword [esp + 0x1c]
push eax
call fcn.0042f484
push esi
mov dword [esp + 0x24], eax
call fcn.0042f4d9
mov eax, dword [esp + 0x94]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0042f4d9
lea edx, [esp + 0x38]
push edx
mov eax, str.HKCRCLSID_
lea ecx, [esp + 0x98]
call fcn.00419990
mov eax, dword [eax]
mov esi, dword [esp + 0x40]
push eax
call fcn.0042f484
push esi
mov dword [esp + 0x48], eax
call fcn.0042f4d9
mov eax, dword [esp + 0xa0]
push eax
call fcn.0042f4d9
mov edx, dword [0x4746a8]
mov esi, dword [esp + 0x3c]
add esp, 0x28
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push SysReAllocString
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x419cf0
mov esi, dword [esp + 0x14]
push 0x46043c
call fcn.0042f484
push esi
mov dword [esp + 0x1c], eax
call fcn.0042f4d9
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x46043c
push eax
call fcn.00416ab0
mov ecx, dword [esp + 0x44]
add esp, 0x1c
push ecx
call ebp
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419ea0
sub eax, edx
jne 0x419ee5
mov edx, dword [esp + 0x24]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x20]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x28]
push eax
call fcn.0042f4d9
add esp, 0x14
jmp 0x41a267
lea ecx, [esp + 0x90]
call fcn.00402320
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x90]
push ecx
push edx
mov byte [esp + 0xbc], 0x14
call fcn.0040ef90
push 0
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.0040b350
mov eax, dword [eax]
mov esi, dword [esp + 0x30]
push eax
call fcn.0042f484
push esi
mov dword [esp + 0x38], eax
call fcn.0042f4d9
mov edx, dword [esp + 0xa4]
push edx
call fcn.0042f4d9
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x60]
push ecx
push edx
push ebx
call fcn.0040b950
mov ebp, eax
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x54]
push eax
push ebx
call fcn.0040bd70
add esp, 0x44
test al, al
je 0x41a20c
cmp dword [esp + 0xc8], 0xffffffff
jne 0x41a14e
push 0x46043c
call fcn.0042f484
mov dword [esp + 0x5c], eax
push 0x46043c
call fcn.0042f484
add esp, 8
mov dword [esp + 0x60], eax
push 0x46043c
lea ecx, [esp + 0x6c]
call fcn.00401160
push 0x46043c
lea ecx, [esp + 0x70]
call fcn.00401160
push 0x46043c
lea ecx, [esp + 0x58]
call fcn.00401160
push 0x46043c
call fcn.0042f484
add esp, 4
mov dword [esp + 0x64], eax
push 0x46043c
lea ecx, [esp + 0x30]
call fcn.00401160
mov esi, dword [esp + 0xc4]
push esi
lea ecx, [esp + 0x38]
call fcn.00401160
push 0x46043c
lea ecx, [esp + 0x34]
call fcn.00401160
push esi
lea ecx, [esp + 0x3c]
call fcn.00401160
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x80]
push edi
push eax
mov byte [esp + 0xc4], 0x1e
call fcn.00407af0
mov esi, eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x8c]
push edi
push eax
mov byte [esp + 0xd4], 0x1f
call fcn.00407af0
movzx edx, byte [esp + 0xec]
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x84]
push ecx
push edx
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x94]
mov byte [esp + 0xf4], 0x20
push edx
lea ecx, [esp + 0xa8]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push ebx
call fcn.0040c0f0
mov edx, dword [esp + 0xd4]
add esp, 0x60
push edx
mov dword [esp + 0xcc], eax
call fcn.0042f4d9
mov eax, dword [esp + 0x7c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x3c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x44]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x7c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x70]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x8c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x88]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0042f4d9
add esp, 0x30
push 0x46043c
call fcn.0042f484
add esp, 4
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xc4]
test eax, eax
jne 0x41a16f
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x60], eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x8c]
push edi
push ecx
mov byte [esp + 0xc8], 0x22
call fcn.00407af0
movzx ecx, byte [esp + 0xe0]
push 0xffffffffffffffff
push 0
push 0
lea edx, [esp + 0x64]
push edx
push ecx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x100]
lea edx, [esp + 0x54]
push edx
push eax
lea eax, [esp + 0x58]
push eax
push 3
push ecx
push ebp
push ebx
mov byte [esp + 0x108], 0x23
call fcn.0040c0f0
mov edx, dword [esp + 0xd4]
add esp, 0x54
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x60]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0042f4d9
add esp, 0xc
lea ecx, [esp + 0x94]
call fcn.00402070
mov edx, dword [esp + 0x94]
push edx
call fcn.0042f2c2
mov eax, dword [esp + 0x94]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x28]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x24]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x30]
push edx
call fcn.0042f4d9
add esp, 0x1c
mov esi, dword [esp + 0x40]
inc esi
push 1
mov dword [esp + 0x44], esi
call fcn.0042f396
mov dword [esp + 0x1c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x28], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x20], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x2c], eax
mov byte [eax], 0
push 1
call fcn.0042f396
mov dword [esp + 0x38], eax
mov byte [eax], 0
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x2c]
push eax
push esi
push ecx
mov byte [esp + 0xd4], 0x13
call fcn.00416b90
add esp, 0x20
test eax, eax
je 0x419cc0
mov edx, dword [esp + 0x24]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x20]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x28]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x5c]
add esp, 0x14
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x50]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x50]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0042f4d9
mov eax, dword [esp + 0xd4]
add esp, 0xc
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret