Function at 0x417210
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9ec7
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
mov dword [ebp - 0x6c], 0
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x18], 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 - 0x58], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x54], eax
add esp, 0x14
mov word [eax], cx
cmp dword [ebp + 0x14], 0xffffffff
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 4
jne 0x41740e
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x40], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x38], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x28], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x24], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x20], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x2c], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x1c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x34], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x50]
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x10
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push 0
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push ebx
call fcn.00403eb0
push dword [ebp - 0x44]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x50]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x24]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x40]
call fcn.0048faf7
push dword [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.0048faf7
add esp, 0x2c
lea eax, [ebp - 0x48]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push edi
push dword [section..data]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x417970
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x11
push eax
push ecx
push dword [ebp - 0x48]
call fcn.00410500
add esp, 0x10
test eax, eax
jne 0x41795c
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x64]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp - 0x48]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x41793d
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4b4e34
push dword [ebp - 0x64]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x417934
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xb0], eax
mov word [eax], cx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], ecx
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0x12
push eax
push dword [ebp - 0x10]
call fcn.00406bd0
push dword [ebp - 0x10]
call fcn.0048faa4
mov dword [ebp - 0x44], eax
push 0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x88]
push ebx
push eax
call fcn.00404cf0
mov esi, dword [ebp - 0x18]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x18], eax
call fcn.0048faf7
push dword [ebp - 0x88]
call fcn.0048faf7
push 0x5c
push dword [ebp - 0x10]
call fcn.0049110f
add esp, 0x34
test eax, eax
jne 0x41761f
cmp dword [ebp + 0x1c], eax
mov edi, 0x4dfaac
mov eax, 0x4dfaa8
push 0x4afa48
cmove edi, eax
call fcn.0048faa4
mov esi, eax
lea eax, [ebp - 0xa0]
push edi
push 0x4b4e48
push eax
mov dword [ebp - 0x5c], esi
call fcn.00417070
lea ecx, [ebp - 0x5c]
push ecx
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0041ca30
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041ca30
push dword [ebp - 0x80]
mov byte [ebp - 4], 0x14
call fcn.0048faf7
push dword [ebp - 0xa0]
call fcn.0048faf7
push esi
call fcn.0048faf7
mov esi, dword [ebp - 0x78]
lea eax, [ebp - 0x98]
push esi
push ebx
push eax
call fcn.00404d30
mov edi, dword [ebp - 0x10]
add esp, 0x40
push dword [eax]
call fcn.0048faa4
push edi
mov dword [ebp - 0x10], eax
call fcn.0048faf7
push dword [ebp - 0x98]
call fcn.0048faf7
push 0x10
push 0x4afff0
push dword [ebp - 0x10]
call fcn.00491219
add esp, 0x18
test eax, eax
je 0x41760f
push dword [ebp - 0x10]
mov edi, dword [ebp - 0x18]
call fcn.0048faa4
push edi
mov dword [ebp - 0x18], eax
call fcn.0048faf7
add esp, 8
push esi
mov byte [ebp - 4], 0x13
call fcn.0048faf7
mov edi, dword [ebp + 0x10]
add esp, 4
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x18]
push ebx
call fcn.00404ce0
test edi, edi
mov dword [ebp - 0x5c], eax
mov ecx, 0x4af9b8
cmovne ecx, edi
push ecx
call fcn.0048faa4
mov dword [ebp - 0x38], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x40], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x90]
push eax
call fcn.00407620
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x19
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00403c00
add esp, 0x5c
mov bl, al
push dword [ebp - 0x90]
call fcn.0048faf7
push dword [ebp - 0x7c]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x40]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
add esp, 0x14
test bl, bl
je 0x417917
cmp dword [ebp + 0x14], 0xffffffff
jne 0x417876
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x70], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x60], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x68], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x30], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x34], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x1c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x2c], 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 - 0x24], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x24
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x25
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x60]
push 0
push ecx
lea ecx, [ebp - 0x68]
push ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push ebx
call fcn.00403eb0
push dword [ebp - 0x84]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x8c]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x24]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
push dword [ebp - 0x68]
call fcn.0048faf7
push dword [ebp - 0x60]
call fcn.0048faf7
push dword [ebp - 0x70]
call fcn.0048faf7
add esp, 0x2c
jmp 0x417879
mov ebx, dword [ebp + 8]
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x50], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x9c]
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x28
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push dword [ebp - 0x94]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 3
push dword [ebp + 0x14]
push dword [ebp - 0x5c]
push ebx
call fcn.00403eb0
add esp, 0x5c
push dword [ebp - 0x9c]
call fcn.0048faf7
push dword [ebp - 0x74]
call fcn.0048faf7
push dword [ebp - 0x50]
call fcn.0048faf7
add esp, 0xc
jmp 0x41791a
mov ebx, dword [ebp + 8]
push dword [ebp - 0x44]
call fcn.0048faf7
add esp, 4
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xb0]
call fcn.00402130
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x14]
inc eax
push ecx
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x6c], eax
call fcn.00410500
add esp, 0xc
test eax, eax
je 0x417468
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call fcn.0048faf7
add esp, 4
push dword [ebp - 0x54]
call fcn.0048faf7
push dword [ebp - 0x58]
call fcn.0048faf7
push dword [ebp - 0x4c]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
mov eax, dword [ebp + 0x14]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret