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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2ca1
mov eax, dword fs:[0]
push eax
sub esp, 0x624
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
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x5c0], ebx
push 2
mov dword [ebp - 4], 0
mov dword [ebp - 0x5f4], 0
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x5a4], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
mov edi, eax
xor eax, eax
mov dword [ebp - 0x62c], edi
mov word [edi], ax
push 2
call fcn.004c8d7a
mov esi, eax
xor eax, eax
mov dword [ebp - 0x624], esi
mov word [esi], ax
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x5c4], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x5d4], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x5d0], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x600], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x5f8], eax
mov word [eax], cx
push 0x4f9d20
mov dword [ebp - 0x5bc], ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x5bc], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x5b8], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x5b8], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x5b4], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x5b4], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x5b0], 0
call fcn.004c8d00
mov dword [ebp - 0x5b0], eax
push 0
call fcn.004c8d5f
add esp, 0x40
push 0x4f9d20
mov dword [ebp - 0x5ac], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x5ac], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x5a8], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x5a8], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x598], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x598], eax
call fcn.004c8d5f
lea eax, [ebp - 0x598]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x5c8]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
mov ebx, eax
push 0x4f9d20
mov dword [ebp - 0x5a0], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x5a0], eax
call fcn.004c8d5f
lea eax, [ebp - 0x5a0]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x594]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
add esp, 0x40
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x5bc]
mov byte [ebp - 4], 0x12
push ecx
push 1
push 0
lea ecx, [ebp - 0x5b8]
push ecx
lea ecx, [ebp - 0x5b4]
push ecx
lea ecx, [ebp - 0x5b0]
push ecx
lea ecx, [ebp - 0x5ac]
push ecx
lea ecx, [ebp - 0x5a8]
push ecx
push ebx
mov ebx, dword [ebp - 0x5c0]
push eax
push 0
push 0xffffffffffffffff
push 0
push ebx
call fcn.00405550
push dword [ebp - 0x594]
mov dword [ebp - 0x5e0], eax
call fcn.004c8d5f
add esp, 0x48
push dword [ebp - 0x5a0]
call fcn.004c8d5f
push dword [ebp - 0x5c8]
call fcn.004c8d5f
push dword [ebp - 0x598]
call fcn.004c8d5f
push dword [ebp - 0x5a8]
call fcn.004c8d5f
push dword [ebp - 0x5ac]
call fcn.004c8d5f
push dword [ebp - 0x5b0]
call fcn.004c8d5f
push dword [ebp - 0x5b4]
call fcn.004c8d5f
push dword [ebp - 0x5b8]
call fcn.004c8d5f
push dword [ebp - 0x5bc]
mov byte [ebp - 4], 8
call fcn.004c8d5f
lea eax, [ebp - 0x5cc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [0x52ea0c]
call fcn.004086c0
add esp, 0x38
test eax, eax
je 0x42bb48
push dword [ebp - 0x5f8]
call fcn.004c8d5f
push dword [ebp - 0x600]
call fcn.004c8d5f
push dword [ebp - 0x5d0]
call fcn.004c8d5f
push dword [ebp - 0x5d4]
call fcn.004c8d5f
push dword [ebp - 0x5c4]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push dword [ebp - 0x5a4]
call fcn.004c8d5f
add esp, 0x20
jmp 0x42c397
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x59c], eax
mov word [eax], cx
lea eax, [ebp - 0x59c]
mov byte [ebp - 4], 0x13
push eax
push ecx
push dword [ebp - 0x5cc]
call fcn.00415050
add esp, 0x10
test eax, eax
jne 0x42c32f
nop dword [eax]
push dword [0x539fd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x5dc]
or eax, 0x20019
push ecx
push eax
push 0
push dword [ebp - 0x59c]
push dword [ebp - 0x5cc]
call fcn.004086c0
add esp, 0x14
test eax, eax
jne 0x42c2fe
lea eax, [ebp - 0x628]
mov dword [ebp - 0x628], 0x378
push eax
lea eax, [ebp - 0x590]
push eax
push 0
push 0
push str.PackedCatalogItem
push dword [ebp - 0x5dc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c2f2
push 0xc
call fcn.004c3653
mov esi, eax
add esp, 4
mov dword [ebp - 0x630], esi
mov byte [ebp - 4], 0x14
test esi, esi
je 0x42bc24
lea eax, [ebp - 0x590]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], 1
call fcn.004c3320
mov dword [esi], eax
jmp 0x42bc26
xor esi, esi
mov byte [ebp - 4], 0x13
test esi, esi
je 0x42c3be
mov ecx, dword [esi]
mov eax, 0x4f9d20
test ecx, ecx
mov dword [ebp - 0x5a0], 0
cmovne eax, ecx
push eax
call fcn.004c8d00
push 0
mov dword [ebp - 0x5a0], eax
call fcn.004c8d5f
add esp, 8
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x42bc9e
mov eax, dword [esi]
test eax, eax
je 0x42bc7c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x42bc93
push eax
call fcn.004c3683
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004c34a9
add esp, 8
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x5f0], eax
mov word [eax], cx
mov dword [ebp - 0x5ec], ecx
mov dword [ebp - 0x5e8], ecx
mov dword [ebp - 0x5e4], ecx
lea eax, [ebp - 0x5f0]
mov byte [ebp - 4], 0x16
push eax
push dword [ebp - 0x5a0]
call fcn.00408a50
push 0
lea eax, [ebp - 0x5f0]
push eax
lea eax, [ebp - 0x604]
push ebx
push eax
call fcn.004069d0
mov esi, dword [ebp - 0x5a4]
mov ecx, 0x4f9d20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push esi
mov dword [ebp - 0x5a4], eax
call fcn.004c8d5f
push dword [ebp - 0x604]
call fcn.004c8d5f
lea eax, [ebp - 0x5d4]
push eax
lea eax, [ebp - 0x5c4]
push eax
push dword [ebp - 0x5a4]
push ebx
call fcn.004069c0
mov ecx, dword [ebp - 0x59c]
mov edx, 0x4f9d20
test ecx, ecx
mov dword [ebp - 0x5fc], eax
mov dword [ebp - 0x598], 0
cmovne edx, ecx
push edx
call fcn.004c8d00
push 0
mov dword [ebp - 0x598], eax
call fcn.004c8d5f
add esp, 0x40
lea eax, [ebp - 0x598]
mov byte [ebp - 4], 0x17
push eax
push 0
push 0
push str.ProtocolName
push dword [ebp - 0x5dc]
call fcn.004151a0
add esp, 0x14
test eax, eax
jne 0x42be9b
mov eax, dword [ebp - 0x598]
cmp word [eax], 0x40
jne 0x42be9b
push eax
call fcn.004c8d00
mov esi, eax
push 0
mov dword [ebp - 0x594], esi
call fcn.004c8d5f
push 0x2c
push esi
mov byte [ebp - 4], 0x18
xor ebx, ebx
call fcn.004c56b8
add esp, 0x10
test eax, eax
je 0x42bdf1
push 0x2c
push esi
call fcn.004c56b8
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.004d5dfb
cdq
add esp, 0xc
mov ebx, eax
xor ebx, edx
sub ebx, edx
lea ecx, [esi + 2]
push ecx
lea eax, [ebp - 0x608]
push eax
call fcn.00414b20
mov ecx, 0x4f9d20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push dword [ebp - 0x594]
mov esi, eax
call fcn.004c8d5f
push dword [ebp - 0x608]
call fcn.004c8d5f
add esp, 0x14
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x594], eax
test eax, eax
je 0x42be88
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x42be7c
mov ebx, dword [ebp - 0x598]
lea eax, [ebp - 0x218]
push eax
call fcn.004c8d00
push ebx
mov dword [ebp - 0x598], eax
call fcn.004c8d5f
add esp, 8
push dword [ebp - 0x594]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
mov byte [ebp - 4], 0x17
call fcn.004c8d5f
mov ebx, dword [ebp - 0x5c0]
add esp, 4
lea eax, [ebp - 0x59c]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x610]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
mov esi, eax
push 0x4f9d20
mov dword [ebp - 0x5bc], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x5bc], eax
call fcn.004c8d5f
lea eax, [ebp - 0x5bc]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x60c]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
lea ecx, [ebp - 0x61c]
mov byte [ebp - 4], 0x1b
push ecx
lea ecx, [ebp - 0x5d0]
push ecx
lea ecx, [ebp - 0x5c4]
push ecx
lea ecx, [ebp - 0x5a4]
push ecx
push esi
push eax
lea eax, [ebp - 0x59c]
push eax
push ebx
call fcn.00405240
add esp, 0x48
mov bl, al
push dword [ebp - 0x60c]
call fcn.004c8d5f
push dword [ebp - 0x5bc]
call fcn.004c8d5f
push dword [ebp - 0x610]
call fcn.004c8d5f
add esp, 0xc
test bl, bl
je 0x42c238
cmp dword [ebp - 0x5e0], 0xffffffff
jne 0x42c17c
push 0x4f9d20
mov dword [ebp - 0x594], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x594], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x5c8], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x5c8], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x5d8], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x5d8], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x5a8], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x5a8], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x5ac], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x5ac], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x5b0], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x5b0], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x5b4], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x5b4], eax
call fcn.004c8d5f
lea eax, [ebp - 0x5b4]
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x618]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
add esp, 0x48
mov esi, eax
push 0x4f9d20
mov dword [ebp - 0x5b8], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x5b8], eax
call fcn.004c8d5f
lea eax, [ebp - 0x5b8]
mov byte [ebp - 4], 0x24
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x614]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
push 0xffffffffffffffff
mov byte [ebp - 4], 0x25
push 0
push 0
lea ecx, [ebp - 0x594]
mov ebx, dword [ebp - 0x5c0]
push ecx
push 1
push 0
lea ecx, [ebp - 0x5c8]
push ecx
lea ecx, [ebp - 0x5d8]
push ecx
lea ecx, [ebp - 0x5a8]
push ecx
lea ecx, [ebp - 0x5ac]
push ecx
lea ecx, [ebp - 0x5b0]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push ebx
call fcn.00405550
add esp, 0x5c
mov dword [ebp - 0x5e0], eax
push dword [ebp - 0x614]
call fcn.004c8d5f
push dword [ebp - 0x5b8]
call fcn.004c8d5f
push dword [ebp - 0x618]
call fcn.004c8d5f
push dword [ebp - 0x5b4]
call fcn.004c8d5f
push dword [ebp - 0x5b0]
call fcn.004c8d5f
push dword [ebp - 0x5ac]
call fcn.004c8d5f
push dword [ebp - 0x5a8]
call fcn.004c8d5f
push dword [ebp - 0x5d8]
call fcn.004c8d5f
push dword [ebp - 0x5c8]
call fcn.004c8d5f
push dword [ebp - 0x594]
call fcn.004c8d5f
add esp, 0x28
jmp 0x42c182
mov ebx, dword [ebp - 0x5c0]
push 0x4f9d20
mov dword [ebp - 0x594], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x594], eax
call fcn.004c8d5f
mov esi, dword [ebp - 0x61c]
lea eax, [ebp - 0x59c]
push eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 0x26
push eax
lea eax, [ebp - 0x620]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], 0x27
push ecx
push 1
push esi
lea ecx, [ebp - 0x5a0]
push ecx
lea ecx, [ebp - 0x5d0]
push ecx
lea ecx, [ebp - 0x5d4]
push ecx
lea ecx, [ebp - 0x5c4]
push ecx
lea ecx, [ebp - 0x5a4]
push ecx
push eax
lea eax, [ebp - 0x598]
push eax
push 0xb
push dword [ebp - 0x5e0]
push dword [ebp - 0x5fc]
push ebx
call fcn.00405550
add esp, 0x5c
push dword [ebp - 0x620]
call fcn.004c8d5f
push dword [ebp - 0x594]
call fcn.004c8d5f
add esp, 8
push dword [ebp - 0x598]
call fcn.004c8d5f
mov esi, dword [ebp - 0x5ec]
add esp, 4
mov byte [ebp - 4], 0x15
test esi, esi
je 0x42c2cf
mov ebx, dword [ebp - 0x5e8]
cmp esi, ebx
je 0x42c277
nop
push dword [esi]
call fcn.004c8d5f
add esi, 4
add esp, 4
cmp esi, ebx
jne 0x42c260
mov esi, dword [ebp - 0x5ec]
mov eax, dword [ebp - 0x5e4]
sub eax, esi
sar eax, 2
lea ecx, [eax*4]
mov eax, esi
cmp ecx, 0x1000
jb 0x42c2a7
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c3c8
push ecx
push esi
call fcn.004c34a9
add esp, 8
mov dword [ebp - 0x5ec], 0
mov dword [ebp - 0x5e8], 0
mov dword [ebp - 0x5e4], 0
push dword [ebp - 0x5f0]
call fcn.004c8d5f
push dword [ebp - 0x5a0]
mov byte [ebp - 4], 0x13
call fcn.004c8d5f
mov ebx, dword [ebp - 0x5c0]
add esp, 8
push dword [ebp - 0x5dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x5f4]
lea ecx, [ebp - 0x59c]
inc eax
push ecx
push eax
push dword [ebp - 0x5cc]
mov dword [ebp - 0x5f4], eax
call fcn.00415050
add esp, 0xc
test eax, eax
je 0x42bb80
mov esi, dword [ebp - 0x624]
push dword [ebp - 0x5cc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x59c]
call fcn.004c8d5f
push dword [ebp - 0x5f8]
call fcn.004c8d5f
push dword [ebp - 0x600]
call fcn.004c8d5f
push dword [ebp - 0x5d0]
call fcn.004c8d5f
push dword [ebp - 0x5d4]
call fcn.004c8d5f
push dword [ebp - 0x5c4]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push dword [ebp - 0x5a4]
call fcn.004c8d5f
add esp, 0x24
push dword [ebp + 0xc]
call fcn.004c8d5f
add esp, 4
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
push 0x8007000e
call fcn.004c3020
call fcn.004c8caf
int3