Function at 0x41c420
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x45d8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473354]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
push 1
call fcn.0042f396
mov dword [esp + 0x18], eax
mov byte [eax], 0
xor ebx, ebx
push 1
mov dword [esp + 0x74], ebx
call fcn.0042f396
mov dword [esp + 0x28], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x38], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x38], eax
mov byte [eax], bl
push 1
call fcn.0042f396
mov dword [esp + 0x30], eax
add esp, 0x14
mov byte [eax], bl
mov ecx, dword [0x4746a8]
lea eax, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x74], 4
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x80]
or eax, 0x20019
push eax
mov eax, dword [esp + 0x80]
push ebx
push edx
push eax
call fcn.00409f10
add esp, 0x14
test eax, eax
jne 0x41c776
push 1
call fcn.0042f396
mov dword [esp + 0x1c], eax
mov byte [eax], bl
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push edx
push eax
mov byte [esp + 0x84], 5
call fcn.00416ab0
add esp, 0x18
test eax, eax
jne 0x41c75e
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c510
sub eax, edx
je 0x41c75e
lea ecx, [esp + 0x4c]
call fcn.00402f60
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x50]
push ecx
push 0x2c
push edx
mov byte [esp + 0x7c], 6
call fcn.004110b0
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x68]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0x10
add eax, edx
je 0x41c755
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x24], ebx
cmp ebx, eax
jb 0x41c574
call fcn.004305db
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x58]
mov edx, dword [eax + ecx + 0x14]
sub edx, dword [eax + ecx + 0x10]
lea esi, [eax + ecx]
sar edx, 2
test edx, edx
ja 0x41c593
call fcn.004305db
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
mov edi, dword [esp + 0x1c]
push eax
call fcn.0042f484
push edi
mov dword [esp + 0x24], eax
call fcn.0042f4d9
push 0
lea eax, [esp + 0x50]
push esi
push eax
call fcn.0040b350
mov eax, dword [eax]
mov edi, dword [esp + 0x28]
push eax
call fcn.0042f484
push edi
mov dword [esp + 0x30], eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042f4d9
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
push ebp
call fcn.0040b950
lea edx, [esp + 0x58]
push edx
mov edi, eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x4c]
push ecx
push esi
push ebp
call fcn.0040bd70
add esp, 0x44
test al, al
je 0x41c72c
mov esi, dword [esp + 0x80]
mov eax, esi
test esi, esi
jne 0x41c623
mov eax, 0x46043c
push eax
call fcn.0042f484
add esp, 4
mov dword [esp + 0x3c], eax
mov eax, esi
test esi, esi
jne 0x41c63b
mov eax, 0x46043c
push eax
call fcn.0042f484
add esp, 4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x41c655
mov eax, 0x46043c
push eax
call fcn.0042f484
add esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x41c672
mov eax, 0x46043c
push eax
call fcn.0042f484
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x7c]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x80], 0xa
call fcn.00407af0
movzx edx, byte [esp + 0xa4]
push 0xffffffffffffffff
push 0
push 0
lea ecx, [esp + 0x5c]
push ecx
push edx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x4c]
push ecx
push eax
mov eax, dword [esp + 0xcc]
lea edx, [esp + 0x70]
push edx
push 1
push eax
push edi
push ebp
mov byte [esp + 0xc0], 0xb
call fcn.0040c0f0
mov ecx, dword [esp + 0x9c]
add esp, 0x54
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x34]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x3c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x4c]
push edx
mov byte [esp + 0x80], 6
call fcn.0042f4d9
add esp, 0x14
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x58]
add dword [esp + 0x24], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jb 0x41c574
lea ecx, [esp + 0x4c]
call fcn.00403160
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042f4d9
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x2c]
push eax
call fcn.0042f4d9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042f4d9
mov edx, dword [esp + 0x2c]
push edx
call fcn.0042f4d9
mov eax, dword [esp + 0x24]
push eax
call fcn.0042f4d9
mov eax, dword [esp + 0xa0]
add esp, 0x14
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret