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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f09b9
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x535a40]
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, 0x4f9d20
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 0x41b00f
push esi
mov dword [ebp - 0x42c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x42c], eax
call fcn.004c8d5f
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x428], eax
call fcn.004c8d5f
push esi
mov dword [ebp - 0x424], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x424], eax
call fcn.004c8d5f
push esi
mov dword [ebp - 0x43c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x43c], eax
call fcn.004c8d5f
push esi
mov dword [ebp - 0x438], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x438], eax
call fcn.004c8d5f
push esi
mov dword [ebp - 0x444], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x444], eax
call fcn.004c8d5f
push esi
mov dword [ebp - 0x45c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x45c], eax
call fcn.004c8d5f
test ebx, ebx
mov dword [ebp - 0x458], 0
cmovne esi, ebx
push esi
call fcn.004c8d00
push 0
mov dword [ebp - 0x458], eax
call fcn.004c8d5f
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.00409cf0
mov edi, eax
push 0x4f9d20
mov dword [ebp - 0x44c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x44c], eax
call fcn.004c8d5f
push esi
mov dword [ebp - 0x450], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x450], eax
call fcn.004c8d5f
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.00409cf0
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.00405550
add esp, 0x74
mov dword [ebp + 0x14], eax
push dword [ebp - 0x468]
call fcn.004c8d5f
push dword [ebp - 0x450]
call fcn.004c8d5f
push dword [ebp - 0x44c]
call fcn.004c8d5f
push dword [ebp - 0x448]
call fcn.004c8d5f
push dword [ebp - 0x458]
call fcn.004c8d5f
push dword [ebp - 0x45c]
call fcn.004c8d5f
push dword [ebp - 0x444]
call fcn.004c8d5f
push dword [ebp - 0x438]
call fcn.004c8d5f
push dword [ebp - 0x43c]
call fcn.004c8d5f
push dword [ebp - 0x424]
call fcn.004c8d5f
push dword [ebp - 0x428]
call fcn.004c8d5f
push dword [ebp - 0x42c]
call fcn.004c8d5f
add esp, 0x30
mov esi, 0x4f9d20
push 2
call fcn.004c8d7a
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.004c8d00
push 0x5c
push eax
mov dword [ebp - 0x468], eax
call fcn.004c5767
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 0x41b07f
test ebx, ebx
mov ecx, esi
cmovne ecx, ebx
push ecx
call fcn.004c8d00
mov esi, eax
push edi
mov dword [ebp - 0x448], esi
call fcn.004c8d5f
add esp, 8
jmp 0x41b1ea
test ecx, ecx
mov eax, esi
cmovne eax, ecx
push eax
call fcn.004c8d00
push 0
mov dword [ebp - 0x430], eax
call fcn.004c8d5f
push 0x4ff7e4
call fcn.004c8d00
push 0
mov dword [ebp - 0x434], eax
call fcn.004c8d5f
mov ecx, dword [ebp - 0x468]
mov eax, esi
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.004c8d00
mov edi, eax
push 0
mov dword [ebp - 0x440], edi
call fcn.004c8d5f
push 0x4f9dfc
call fcn.004c8d00
mov esi, eax
push 0
mov dword [ebp - 0x448], esi
call fcn.004c8d5f
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.004c8d5f
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.004152c0
push 0x4f9dfc
mov ebx, eax
call fcn.004c8d00
add esp, 0x40
mov esi, eax
mov dword [ebp - 0x448], esi
push 0
call fcn.004c8d5f
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.004152c0
push esi
call fcn.004c8d5f
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004152c0
mov ecx, 0x4f9d20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push dword [ebp - 0x42c]
mov esi, eax
mov dword [ebp - 0x448], esi
call fcn.004c8d5f
push dword [ebp - 0x428]
call fcn.004c8d5f
push dword [ebp - 0x440]
call fcn.004c8d5f
push dword [ebp - 0x424]
call fcn.004c8d5f
push dword [ebp - 0x454]
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push dword [ebp - 0x434]
call fcn.004c8d5f
add esp, 0x40
push dword [ebp - 0x430]
call fcn.004c8d5f
add esp, 4
push dword [0x539fd0]
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.004086c0
add esp, 0x14
test eax, eax
jne 0x41b9e1
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 0x41b9d5
push dword [0x539fd0]
call edi
mov ebx, eax
lea eax, [ebp - 0x420]
push eax
or ebx, 0x20019
call fcn.004c8d00
mov edi, eax
push 0
mov dword [ebp - 0x454], edi
call fcn.004c8d5f
push 0x4f9f78
call fcn.004c8d00
mov esi, eax
push 0
mov dword [ebp - 0x434], esi
call fcn.004c8d5f
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.004c8d5f
push 0x4ffa00
call fcn.004c8d00
mov esi, eax
push 0
mov dword [ebp - 0x434], esi
call fcn.004c8d5f
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.004c8d5f
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.004086c0
add esp, 0x4c
mov ebx, eax
push esi
call fcn.004c8d5f
push dword [ebp - 0x440]
call fcn.004c8d5f
push edi
mov byte [ebp - 4], 0xc
call fcn.004c8d5f
add esp, 0xc
test ebx, ebx
jne 0x41b9cf
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 0x41b9c3
mov ecx, 0x4ffa28
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b39e
test dx, dx
je 0x41b39a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b39e
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b378
xor eax, eax
jmp 0x41b3a3
sbb eax, eax
or eax, 1
test eax, eax
je 0x41b9c3
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x450], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x440], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x454], eax
add esp, 0xc
mov word [eax], cx
lea ecx, [ebp - 0x494]
call fcn.004048c0
lea eax, [ebp - 0x494]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00408e30
mov ebx, dword [ebp - 0x464]
lea eax, [ebp - 0x494]
push 1
push eax
lea eax, [ebp - 0x44c]
push ebx
push eax
call fcn.004069d0
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.004069c0
push 0x4f9d20
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x438], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x438], eax
call fcn.004c8d5f
mov eax, dword [ebp - 0x478]
mov esi, 0x4f9d20
test eax, eax
mov dword [ebp - 0x43c], 0
cmovne esi, eax
push esi
mov dword [ebp - 0x434], esi
call fcn.004c8d00
push 0
mov dword [ebp - 0x43c], eax
call fcn.004c8d5f
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.00409cf0
add esp, 0x48
mov edi, eax
push 0x4f9d20
mov dword [ebp - 0x424], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x424], eax
call fcn.004c8d5f
push esi
mov dword [ebp - 0x428], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x428], eax
call fcn.004c8d5f
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.00409cf0
mov esi, eax
push dword [ebp - 0x434]
mov dword [ebp - 0x42c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x42c], eax
call fcn.004c8d5f
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.00405240
add esp, 0x48
mov bl, al
push dword [ebp - 0x42c]
call fcn.004c8d5f
push dword [ebp - 0x430]
call fcn.004c8d5f
push dword [ebp - 0x428]
call fcn.004c8d5f
push dword [ebp - 0x424]
call fcn.004c8d5f
push dword [ebp - 0x444]
call fcn.004c8d5f
push dword [ebp - 0x43c]
call fcn.004c8d5f
push dword [ebp - 0x438]
mov byte [ebp - 4], 0x14
call fcn.004c8d5f
add esp, 0x1c
test bl, bl
je 0x41b97b
cmp dword [ebp + 0x14], 0xffffffff
jne 0x41b80a
push 0x4f9d20
mov dword [ebp - 0x430], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x430], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x458], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x458], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x45c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x45c], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x444], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x444], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x438], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x438], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x43c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x43c], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x424], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x424], eax
call fcn.004c8d5f
mov ebx, dword [ebp - 0x434]
push ebx
mov dword [ebp - 0x428], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x428], eax
call fcn.004c8d5f
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.00409cf0
mov esi, eax
mov eax, dword [ebp - 0x47c]
mov ecx, 0x4f9d20
test eax, eax
mov dword [ebp - 0x42c], 0
cmovne ecx, eax
push ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x42c], eax
call fcn.004c8d5f
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.00405550
add esp, 0x5c
mov dword [ebp + 0x14], eax
push dword [ebp - 0x42c]
call fcn.004c8d5f
push dword [ebp - 0x478]
call fcn.004c8d5f
push dword [ebp - 0x428]
call fcn.004c8d5f
push dword [ebp - 0x424]
call fcn.004c8d5f
push dword [ebp - 0x43c]
call fcn.004c8d5f
push dword [ebp - 0x438]
call fcn.004c8d5f
push dword [ebp - 0x444]
call fcn.004c8d5f
push dword [ebp - 0x45c]
call fcn.004c8d5f
push dword [ebp - 0x458]
call fcn.004c8d5f
push dword [ebp - 0x430]
call fcn.004c8d5f
add esp, 0x28
jmp 0x41b810
mov ebx, dword [ebp - 0x434]
push 0x4f9d20
mov dword [ebp - 0x424], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x424], eax
call fcn.004c8d5f
mov edi, dword [ebp - 0x480]
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x428], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x428], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x42c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x42c], eax
call fcn.004c8d5f
push ebx
mov dword [ebp - 0x430], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x430], eax
call fcn.004c8d5f
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.00409cf0
mov esi, eax
push ebx
mov dword [ebp - 0x434], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x434], eax
call fcn.004c8d5f
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.00405550
add esp, 0x7c
push dword [ebp - 0x434]
call fcn.004c8d5f
push dword [ebp - 0x47c]
call fcn.004c8d5f
push dword [ebp - 0x430]
call fcn.004c8d5f
push dword [ebp - 0x42c]
call fcn.004c8d5f
push dword [ebp - 0x428]
call fcn.004c8d5f
push dword [ebp - 0x424]
call fcn.004c8d5f
add esp, 0x18
push dword [ebp - 0x44c]
call fcn.004c8d5f
add esp, 4
lea ecx, [ebp - 0x490]
call fcn.004028a0
push dword [ebp - 0x494]
call fcn.004c8d5f
push dword [ebp - 0x454]
call fcn.004c8d5f
push dword [ebp - 0x440]
call fcn.004c8d5f
push dword [ebp - 0x450]
call fcn.004c8d5f
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.004c8d5f
push esi
call fcn.004c8d5f
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.004c34b7
mov esp, ebp
pop ebp
ret