Function at 0x41ad70
Capabilities:
Get thread local storage value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2419
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x14], 0xffffffff
mov esi, 0x4fbd20
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x478], ebx
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], edi
jne 0x41b01f
push esi
mov dword [ebp - 0x42c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x42c], eax
call fcn.004c8c7f
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x428], eax
call fcn.004c8c7f
push esi
mov dword [ebp - 0x424], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x424], eax
call fcn.004c8c7f
push esi
mov dword [ebp - 0x43c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x43c], eax
call fcn.004c8c7f
push esi
mov dword [ebp - 0x438], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x438], eax
call fcn.004c8c7f
push esi
mov dword [ebp - 0x444], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x444], eax
call fcn.004c8c7f
push esi
mov dword [ebp - 0x45c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x45c], eax
call fcn.004c8c7f
test ebx, ebx
mov dword [ebp - 0x458], 0
cmovne esi, ebx
push esi
call fcn.004c8c20
push 0
mov dword [ebp - 0x458], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x45c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x448]
push edi
push eax
call fcn.00409d10
mov edi, eax
push 0x4fbd20
mov dword [ebp - 0x44c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x44c], eax
call fcn.004c8c7f
push esi
mov dword [ebp - 0x450], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x450], eax
call fcn.004c8c7f
lea eax, [ebp - 0x44c]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x460]
lea eax, [ebp - 0x468]
push eax
call fcn.00409d10
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 0xb
push ecx
push 1
push 0
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x438]
push ecx
lea ecx, [ebp - 0x444]
push ecx
push edi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x464]
call fcn.00405510
add esp, 0x74
mov dword [ebp + 0x14], eax
push dword [ebp - 0x468]
call fcn.004c8c7f
push dword [ebp - 0x450]
call fcn.004c8c7f
push dword [ebp - 0x44c]
call fcn.004c8c7f
push dword [ebp - 0x448]
call fcn.004c8c7f
push dword [ebp - 0x458]
call fcn.004c8c7f
push dword [ebp - 0x45c]
call fcn.004c8c7f
push dword [ebp - 0x444]
call fcn.004c8c7f
push dword [ebp - 0x438]
call fcn.004c8c7f
push dword [ebp - 0x43c]
call fcn.004c8c7f
push dword [ebp - 0x424]
call fcn.004c8c7f
push dword [ebp - 0x428]
call fcn.004c8c7f
push dword [ebp - 0x42c]
call fcn.004c8c7f
add esp, 0x30
mov esi, 0x4fbd20
push 2
call fcn.004c8c9a
mov edi, eax
xor eax, eax
mov dword [ebp - 0x42c], edi
mov word [edi], ax
push ebx
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x474], eax
call fcn.004c8c20
push 0x5c
push eax
mov dword [ebp - 0x468], eax
call fcn.004c5688
mov ecx, eax
add esp, 0x10
xor eax, eax
mov word [ecx], ax
add ecx, 2
mov dword [ebp - 0x47c], ecx
cmp byte [ebp + 0x18], al
je 0x41b08f
test ebx, ebx
mov ecx, esi
cmovne ecx, ebx
push ecx
call fcn.004c8c20
mov esi, eax
push edi
mov dword [ebp - 0x448], esi
call fcn.004c8c7f
add esp, 8
jmp 0x41b1fa
test ecx, ecx
mov eax, esi
cmovne eax, ecx
push eax
call fcn.004c8c20
push 0
mov dword [ebp - 0x430], eax
call fcn.004c8c7f
push 0x5017e4
call fcn.004c8c20
push 0
mov dword [ebp - 0x434], eax
call fcn.004c8c7f
mov ecx, dword [ebp - 0x468]
mov eax, esi
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.004c8c20
mov edi, eax
push 0
mov dword [ebp - 0x440], edi
call fcn.004c8c7f
push 0x4fbdfc
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x448], esi
call fcn.004c8c7f
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x454]
push eax
call fcn.004152c0
push esi
call fcn.004c8c7f
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.004152c0
push 0x4fbdfc
mov ebx, eax
call fcn.004c8c20
add esp, 0x40
mov esi, eax
mov dword [ebp - 0x448], esi
push 0
call fcn.004c8c7f
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.004152c0
push esi
call fcn.004c8c7f
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004152c0
mov ecx, 0x4fbd20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push dword [ebp - 0x42c]
mov esi, eax
mov dword [ebp - 0x448], esi
call fcn.004c8c7f
push dword [ebp - 0x428]
call fcn.004c8c7f
push dword [ebp - 0x440]
call fcn.004c8c7f
push dword [ebp - 0x424]
call fcn.004c8c7f
push dword [ebp - 0x454]
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x434]
call fcn.004c8c7f
add esp, 0x40
push dword [ebp - 0x430]
call fcn.004c8c7f
add esp, 4
push dword [0x540000]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call edi
lea ecx, [ebp - 0x474]
or eax, 0x20019
push ecx
push eax
push 0
push esi
push dword [ebp - 0x460]
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x41b9f1
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x46c], 0x208
push eax
push 0
push 0
push 0
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b9e5
push dword [0x540000]
call edi
mov ebx, eax
lea eax, [ebp - 0x420]
push eax
or ebx, 0x20019
call fcn.004c8c20
mov edi, eax
push 0
mov dword [ebp - 0x454], edi
call fcn.004c8c7f
push 0x4fbf78
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x434], esi
call fcn.004c8c7f
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004152c0
push esi
call fcn.004c8c7f
push 0x501a00
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x434], esi
call fcn.004c8c7f
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.004152c0
push esi
call fcn.004c8c7f
mov esi, dword [ebp - 0x430]
lea eax, [ebp - 0x470]
push eax
push ebx
push 0
push esi
push dword [ebp - 0x460]
mov byte [ebp - 4], 0xf
call fcn.00408690
add esp, 0x4c
mov ebx, eax
push esi
call fcn.004c8c7f
push dword [ebp - 0x440]
call fcn.004c8c7f
push edi
mov byte [ebp - 4], 0xc
call fcn.004c8c7f
add esp, 0xc
test ebx, ebx
jne 0x41b9df
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x46c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x470]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b9d3
mov ecx, 0x501a28
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b3ae
test dx, dx
je 0x41b3aa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b3ae
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b388
xor eax, eax
jmp 0x41b3b3
sbb eax, eax
or eax, 1
test eax, eax
je 0x41b9d3
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x450], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x440], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x454], eax
add esp, 0xc
mov word [eax], cx
lea ecx, [ebp - 0x494]
call fcn.00404870
lea eax, [ebp - 0x494]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00408e00
mov ebx, dword [ebp - 0x464]
lea eax, [ebp - 0x494]
push 1
push eax
lea eax, [ebp - 0x44c]
push ebx
push eax
call fcn.004069a0
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x44c]
push ebx
call fcn.00406990
push 0x4fbd20
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x438], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x438], eax
call fcn.004c8c7f
mov eax, dword [ebp - 0x478]
mov esi, 0x4fbd20
test eax, eax
mov dword [ebp - 0x43c], 0
cmovne esi, eax
push esi
mov dword [ebp - 0x434], esi
call fcn.004c8c20
push 0
mov dword [ebp - 0x43c], eax
call fcn.004c8c7f
mov ebx, dword [ebp - 0x460]
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x444]
push ebx
push eax
call fcn.00409d10
add esp, 0x48
mov edi, eax
push 0x4fbd20
mov dword [ebp - 0x424], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x424], eax
call fcn.004c8c7f
push esi
mov dword [ebp - 0x428], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x428], eax
call fcn.004c8c7f
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x430]
push ebx
push eax
call fcn.00409d10
mov esi, eax
push dword [ebp - 0x434]
mov dword [ebp - 0x42c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x42c], eax
call fcn.004c8c7f
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x44c]
push eax
push edi
mov edi, dword [ebp - 0x464]
lea eax, [ebp - 0x42c]
push esi
push eax
push edi
call fcn.00405200
add esp, 0x48
mov bl, al
push dword [ebp - 0x42c]
call fcn.004c8c7f
push dword [ebp - 0x430]
call fcn.004c8c7f
push dword [ebp - 0x428]
call fcn.004c8c7f
push dword [ebp - 0x424]
call fcn.004c8c7f
push dword [ebp - 0x444]
call fcn.004c8c7f
push dword [ebp - 0x43c]
call fcn.004c8c7f
push dword [ebp - 0x438]
mov byte [ebp - 4], 0x14
call fcn.004c8c7f
add esp, 0x1c
test bl, bl
je 0x41b98b
cmp dword [ebp + 0x14], 0xffffffff
jne 0x41b81a
push 0x4fbd20
mov dword [ebp - 0x430], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x430], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x458], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x458], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x45c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x45c], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x444], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x444], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x438], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x438], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x43c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x43c], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x424], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x424], eax
call fcn.004c8c7f
mov ebx, dword [ebp - 0x434]
push ebx
mov dword [ebp - 0x428], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x428], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x460]
lea eax, [ebp - 0x478]
push eax
call fcn.00409d10
mov esi, eax
mov eax, dword [ebp - 0x47c]
mov ecx, 0x4fbd20
test eax, eax
mov dword [ebp - 0x42c], 0
cmovne ecx, eax
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x42c], eax
call fcn.004c8c7f
mov byte [ebp - 4], 0x25
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x430]
push eax
push 1
push 0
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x43c]
push eax
push esi
lea eax, [ebp - 0x42c]
push eax
push 0
push 0xffffffffffffffff
push 0
push edi
call fcn.00405510
add esp, 0x5c
mov dword [ebp + 0x14], eax
push dword [ebp - 0x42c]
call fcn.004c8c7f
push dword [ebp - 0x478]
call fcn.004c8c7f
push dword [ebp - 0x428]
call fcn.004c8c7f
push dword [ebp - 0x424]
call fcn.004c8c7f
push dword [ebp - 0x43c]
call fcn.004c8c7f
push dword [ebp - 0x438]
call fcn.004c8c7f
push dword [ebp - 0x444]
call fcn.004c8c7f
push dword [ebp - 0x45c]
call fcn.004c8c7f
push dword [ebp - 0x458]
call fcn.004c8c7f
push dword [ebp - 0x430]
call fcn.004c8c7f
add esp, 0x28
jmp 0x41b820
mov ebx, dword [ebp - 0x434]
push 0x4fbd20
mov dword [ebp - 0x424], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x424], eax
call fcn.004c8c7f
mov edi, dword [ebp - 0x480]
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x428], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x428], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x42c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x42c], eax
call fcn.004c8c7f
push ebx
mov dword [ebp - 0x430], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x430], eax
call fcn.004c8c7f
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 0x29
push eax
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x460]
lea eax, [ebp - 0x47c]
push eax
call fcn.00409d10
mov esi, eax
push ebx
mov dword [ebp - 0x434], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x434], eax
call fcn.004c8c7f
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 0x2b
push eax
movzx eax, byte [ebp + 0x18]
push eax
push edi
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x44c]
push eax
push esi
lea eax, [ebp - 0x434]
push eax
push 3
push dword [ebp + 0x14]
push dword [ebp - 0x484]
push dword [ebp - 0x464]
call fcn.00405510
add esp, 0x7c
push dword [ebp - 0x434]
call fcn.004c8c7f
push dword [ebp - 0x47c]
call fcn.004c8c7f
push dword [ebp - 0x430]
call fcn.004c8c7f
push dword [ebp - 0x42c]
call fcn.004c8c7f
push dword [ebp - 0x428]
call fcn.004c8c7f
push dword [ebp - 0x424]
call fcn.004c8c7f
add esp, 0x18
push dword [ebp - 0x44c]
call fcn.004c8c7f
add esp, 4
lea ecx, [ebp - 0x490]
call fcn.004028a0
push dword [ebp - 0x494]
call fcn.004c8c7f
push dword [ebp - 0x454]
call fcn.004c8c7f
push dword [ebp - 0x440]
call fcn.004c8c7f
push dword [ebp - 0x450]
call fcn.004c8c7f
add esp, 0x10
push dword [ebp - 0x470]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x448]
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x468]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
mov eax, dword [ebp + 0x14]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c3287
mov esp, ebp
pop ebp
ret