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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4701
mov eax, dword fs:[0]
push eax
sub esp, 0x624
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
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x5c0], ebx
push 2
mov dword [ebp - 4], 0
mov dword [ebp - 0x5f4], 0
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x5a4], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
mov edi, eax
xor eax, eax
mov dword [ebp - 0x62c], edi
mov word [edi], ax
push 2
call fcn.004c8c9a
mov esi, eax
xor eax, eax
mov dword [ebp - 0x624], esi
mov word [esi], ax
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x5c4], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x5d4], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x5d0], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x600], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x5f8], eax
mov word [eax], cx
push 0x4fbd20
mov dword [ebp - 0x5bc], ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x5bc], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x5b8], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5b8], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x5b4], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5b4], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x5b0], 0
call fcn.004c8c20
mov dword [ebp - 0x5b0], eax
push 0
call fcn.004c8c7f
add esp, 0x40
push 0x4fbd20
mov dword [ebp - 0x5ac], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5ac], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x5a8], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5a8], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x598], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x598], eax
call fcn.004c8c7f
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.00409d10
mov ebx, eax
push 0x4fbd20
mov dword [ebp - 0x5a0], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5a0], eax
call fcn.004c8c7f
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.00409d10
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.00405510
push dword [ebp - 0x594]
mov dword [ebp - 0x5e0], eax
call fcn.004c8c7f
add esp, 0x48
push dword [ebp - 0x5a0]
call fcn.004c8c7f
push dword [ebp - 0x5c8]
call fcn.004c8c7f
push dword [ebp - 0x598]
call fcn.004c8c7f
push dword [ebp - 0x5a8]
call fcn.004c8c7f
push dword [ebp - 0x5ac]
call fcn.004c8c7f
push dword [ebp - 0x5b0]
call fcn.004c8c7f
push dword [ebp - 0x5b4]
call fcn.004c8c7f
push dword [ebp - 0x5b8]
call fcn.004c8c7f
push dword [ebp - 0x5bc]
mov byte [ebp - 4], 8
call fcn.004c8c7f
lea eax, [ebp - 0x5cc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [0x534a0c]
call fcn.00408690
add esp, 0x38
test eax, eax
je 0x42bbb8
push dword [ebp - 0x5f8]
call fcn.004c8c7f
push dword [ebp - 0x600]
call fcn.004c8c7f
push dword [ebp - 0x5d0]
call fcn.004c8c7f
push dword [ebp - 0x5d4]
call fcn.004c8c7f
push dword [ebp - 0x5c4]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x5a4]
call fcn.004c8c7f
add esp, 0x20
jmp 0x42c407
push 2
call fcn.004c8c9a
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 0x42c39f
nop dword [eax]
push dword [0x540000]
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.00408690
add esp, 0x14
test eax, eax
jne 0x42c36e
lea eax, [ebp - 0x628]
mov dword [ebp - 0x628], 0x378
push eax
lea eax, [ebp - 0x590]
push eax
push 0
push 0
push 0x502218
push dword [ebp - 0x5dc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42c362
push 0xc
call fcn.004c3423
mov esi, eax
add esp, 4
mov dword [ebp - 0x630], esi
mov byte [ebp - 4], 0x14
test esi, esi
je 0x42bc94
lea eax, [ebp - 0x590]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], 1
call fcn.004c30f0
mov dword [esi], eax
jmp 0x42bc96
xor esi, esi
mov byte [ebp - 4], 0x13
test esi, esi
je 0x42c42e
mov ecx, dword [esi]
mov eax, 0x4fbd20
test ecx, ecx
mov dword [ebp - 0x5a0], 0
cmovne eax, ecx
push eax
call fcn.004c8c20
push 0
mov dword [ebp - 0x5a0], eax
call fcn.004c8c7f
add esp, 8
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x42bd0e
mov eax, dword [esi]
test eax, eax
je 0x42bcec
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x42bd03
push eax
call fcn.004c3453
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004c3279
add esp, 8
push 2
call fcn.004c8c9a
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.00408a20
push 0
lea eax, [ebp - 0x5f0]
push eax
lea eax, [ebp - 0x604]
push ebx
push eax
call fcn.004069a0
mov esi, dword [ebp - 0x5a4]
mov ecx, 0x4fbd20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push esi
mov dword [ebp - 0x5a4], eax
call fcn.004c8c7f
push dword [ebp - 0x604]
call fcn.004c8c7f
lea eax, [ebp - 0x5d4]
push eax
lea eax, [ebp - 0x5c4]
push eax
push dword [ebp - 0x5a4]
push ebx
call fcn.00406990
mov ecx, dword [ebp - 0x59c]
mov edx, 0x4fbd20
test ecx, ecx
mov dword [ebp - 0x5fc], eax
mov dword [ebp - 0x598], 0
cmovne edx, ecx
push edx
call fcn.004c8c20
push 0
mov dword [ebp - 0x598], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x598]
mov byte [ebp - 4], 0x17
push eax
push 0
push 0
push 0x50223c
push dword [ebp - 0x5dc]
call fcn.004151a0
add esp, 0x14
test eax, eax
jne 0x42bf0b
mov eax, dword [ebp - 0x598]
cmp word [eax], 0x40
jne 0x42bf0b
push eax
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x594], esi
call fcn.004c8c7f
push 0x2c
push esi
mov byte [ebp - 4], 0x18
xor ebx, ebx
call fcn.004c55d8
add esp, 0x10
test eax, eax
je 0x42be61
push 0x2c
push esi
call fcn.004c55d8
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.004d5d1b
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.00414b30
mov ecx, 0x4fbd20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push dword [ebp - 0x594]
mov esi, eax
call fcn.004c8c7f
push dword [ebp - 0x608]
call fcn.004c8c7f
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 0x42bef8
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x42beec
mov ebx, dword [ebp - 0x598]
lea eax, [ebp - 0x218]
push eax
call fcn.004c8c20
push ebx
mov dword [ebp - 0x598], eax
call fcn.004c8c7f
add esp, 8
push dword [ebp - 0x594]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
mov byte [ebp - 4], 0x17
call fcn.004c8c7f
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.00409d10
mov esi, eax
push 0x4fbd20
mov dword [ebp - 0x5bc], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5bc], eax
call fcn.004c8c7f
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.00409d10
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.00405200
add esp, 0x48
mov bl, al
push dword [ebp - 0x60c]
call fcn.004c8c7f
push dword [ebp - 0x5bc]
call fcn.004c8c7f
push dword [ebp - 0x610]
call fcn.004c8c7f
add esp, 0xc
test bl, bl
je 0x42c2a8
cmp dword [ebp - 0x5e0], 0xffffffff
jne 0x42c1ec
push 0x4fbd20
mov dword [ebp - 0x594], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x594], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x5c8], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5c8], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x5d8], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5d8], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x5a8], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5a8], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x5ac], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5ac], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x5b0], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5b0], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x5b4], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5b4], eax
call fcn.004c8c7f
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.00409d10
add esp, 0x48
mov esi, eax
push 0x4fbd20
mov dword [ebp - 0x5b8], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5b8], eax
call fcn.004c8c7f
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.00409d10
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.00405510
add esp, 0x5c
mov dword [ebp - 0x5e0], eax
push dword [ebp - 0x614]
call fcn.004c8c7f
push dword [ebp - 0x5b8]
call fcn.004c8c7f
push dword [ebp - 0x618]
call fcn.004c8c7f
push dword [ebp - 0x5b4]
call fcn.004c8c7f
push dword [ebp - 0x5b0]
call fcn.004c8c7f
push dword [ebp - 0x5ac]
call fcn.004c8c7f
push dword [ebp - 0x5a8]
call fcn.004c8c7f
push dword [ebp - 0x5d8]
call fcn.004c8c7f
push dword [ebp - 0x5c8]
call fcn.004c8c7f
push dword [ebp - 0x594]
call fcn.004c8c7f
add esp, 0x28
jmp 0x42c1f2
mov ebx, dword [ebp - 0x5c0]
push 0x4fbd20
mov dword [ebp - 0x594], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x594], eax
call fcn.004c8c7f
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.00409d10
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.00405510
add esp, 0x5c
push dword [ebp - 0x620]
call fcn.004c8c7f
push dword [ebp - 0x594]
call fcn.004c8c7f
add esp, 8
push dword [ebp - 0x598]
call fcn.004c8c7f
mov esi, dword [ebp - 0x5ec]
add esp, 4
mov byte [ebp - 4], 0x15
test esi, esi
je 0x42c33f
mov ebx, dword [ebp - 0x5e8]
cmp esi, ebx
je 0x42c2e7
nop
push dword [esi]
call fcn.004c8c7f
add esi, 4
add esp, 4
cmp esi, ebx
jne 0x42c2d0
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 0x42c317
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42c438
push ecx
push esi
call fcn.004c3279
add esp, 8
mov dword [ebp - 0x5ec], 0
mov dword [ebp - 0x5e8], 0
mov dword [ebp - 0x5e4], 0
push dword [ebp - 0x5f0]
call fcn.004c8c7f
push dword [ebp - 0x5a0]
mov byte [ebp - 4], 0x13
call fcn.004c8c7f
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 0x42bbf0
mov esi, dword [ebp - 0x624]
push dword [ebp - 0x5cc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x59c]
call fcn.004c8c7f
push dword [ebp - 0x5f8]
call fcn.004c8c7f
push dword [ebp - 0x600]
call fcn.004c8c7f
push dword [ebp - 0x5d0]
call fcn.004c8c7f
push dword [ebp - 0x5d4]
call fcn.004c8c7f
push dword [ebp - 0x5c4]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x5a4]
call fcn.004c8c7f
add esp, 0x24
push dword [ebp + 0xc]
call fcn.004c8c7f
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.004c3287
mov esp, ebp
pop ebp
push 0x8007000e
call fcn.004c2e60
call fcn.004c8bcf
int3