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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2aaf
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
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 eax, dword [ebp + 8]
mov dword [ebp - 0x258], eax
push 2
mov dword [ebp - 4], 0
mov dword [ebp - 0x284], 0
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x238], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
mov edi, eax
xor eax, eax
mov dword [ebp - 0x2b0], edi
mov word [edi], ax
push 2
call fcn.004c8d7a
mov esi, eax
xor eax, eax
mov dword [ebp - 0x2b4], esi
mov word [esi], ax
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x264], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x278], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x274], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x280], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x260], eax
mov word [eax], cx
push 0x4f9d20
mov dword [ebp - 0x254], ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x254], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x250], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x250], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x24c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x24c], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x248], 0
call fcn.004c8d00
mov dword [ebp - 0x248], eax
push 0
call fcn.004c8d5f
add esp, 0x40
push 0x4f9d20
mov dword [ebp - 0x244], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x244], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x240], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x240], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x23c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x23c], eax
call fcn.004c8d5f
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x268]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
mov ebx, eax
push 0x4f9d20
mov dword [ebp - 0x230], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x230], eax
call fcn.004c8d5f
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x22c]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
add esp, 0x40
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x12
push ecx
push 1
push 0
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x240]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x258]
call fcn.00405550
push dword [ebp - 0x22c]
mov dword [ebp - 0x27c], eax
call fcn.004c8d5f
add esp, 0x48
push dword [ebp - 0x230]
call fcn.004c8d5f
push dword [ebp - 0x268]
call fcn.004c8d5f
push dword [ebp - 0x23c]
call fcn.004c8d5f
push dword [ebp - 0x240]
call fcn.004c8d5f
push dword [ebp - 0x244]
call fcn.004c8d5f
push dword [ebp - 0x248]
call fcn.004c8d5f
push dword [ebp - 0x24c]
call fcn.004c8d5f
push dword [ebp - 0x250]
call fcn.004c8d5f
push dword [ebp - 0x254]
mov byte [ebp - 4], 8
call fcn.004c8d5f
lea eax, [ebp - 0x270]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [0x52ea0c]
call fcn.004086c0
add esp, 0x38
test eax, eax
je 0x42aff7
push dword [ebp - 0x260]
call fcn.004c8d5f
push dword [ebp - 0x280]
call fcn.004c8d5f
push dword [ebp - 0x274]
call fcn.004c8d5f
push dword [ebp - 0x278]
call fcn.004c8d5f
push dword [ebp - 0x264]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push dword [ebp - 0x238]
call fcn.004c8d5f
add esp, 0x20
jmp 0x42b7a1
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x234], eax
mov word [eax], cx
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0x13
push eax
push ecx
push dword [ebp - 0x270]
call fcn.00415050
add esp, 0x10
test eax, eax
jne 0x42b739
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [ebp - 0x258]
nop word [eax + eax]
push dword [0x539fd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x25c]
or eax, 0x20019
push ecx
push eax
push 0
push dword [ebp - 0x234]
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42b702
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x260]
push eax
push 0
push 0
push 0x500280
push dword [ebp - 0x25c]
call fcn.004151a0
add esp, 0x14
test eax, eax
jne 0x42b6f6
mov dword [ebp - 0x258], eax
mov ecx, 0x4f9d20
mov eax, dword [ebp - 0x260]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x258], eax
call fcn.004c8d5f
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x2c4], eax
mov word [eax], cx
mov dword [ebp - 0x2c0], ecx
mov dword [ebp - 0x2bc], ecx
mov dword [ebp - 0x2b8], ecx
lea eax, [ebp - 0x2c4]
mov byte [ebp - 4], 0x15
push eax
push dword [ebp - 0x260]
call fcn.00408e30
push 0
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x28c]
push edi
push eax
call fcn.004069d0
mov esi, dword [ebp - 0x238]
mov ecx, 0x4f9d20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push esi
mov dword [ebp - 0x238], eax
call fcn.004c8d5f
push dword [ebp - 0x28c]
call fcn.004c8d5f
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x238]
push edi
call fcn.004069c0
mov ecx, dword [ebp - 0x234]
add esp, 0x40
test ecx, ecx
mov dword [ebp - 0x2a8], eax
mov edx, 0x4f9d20
mov dword [ebp - 0x230], 0
cmovne edx, ecx
push edx
call fcn.004c8d00
push 0
mov dword [ebp - 0x230], eax
call fcn.004c8d5f
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x16
push eax
push 0
push 0
push 0x500298
push dword [ebp - 0x25c]
call fcn.004151a0
add esp, 0x1c
test eax, eax
jne 0x42b2c7
mov eax, dword [ebp - 0x230]
cmp word [eax], 0x40
jne 0x42b2c7
push eax
call fcn.004c8d00
mov esi, eax
push 0
mov dword [ebp - 0x22c], esi
call fcn.004c8d5f
push 0x2c
push esi
mov byte [ebp - 4], 0x17
xor ebx, ebx
call fcn.004c56b8
add esp, 0x10
test eax, eax
je 0x42b21d
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 - 0x290]
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 - 0x22c]
mov esi, eax
call fcn.004c8d5f
push dword [ebp - 0x290]
call fcn.004c8d5f
add esp, 0x14
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x42b2b4
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x42b2a8
mov ebx, dword [ebp - 0x230]
lea eax, [ebp - 0x218]
push eax
call fcn.004c8d00
push ebx
mov dword [ebp - 0x230], eax
call fcn.004c8d5f
add esp, 8
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
mov byte [ebp - 4], 0x16
call fcn.004c8d5f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 4
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 4
push eax
lea eax, [ebp - 0x288]
push eax
push 0
push 0
push 0x500270
push dword [ebp - 0x25c]
call ebx
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x10
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0x500258
push dword [ebp - 0x25c]
call ebx
test eax, eax
jne 0x42b6c0
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x298]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
mov esi, eax
push 0x4f9d20
mov dword [ebp - 0x254], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x254], eax
call fcn.004c8d5f
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x294]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 0x1a
push ecx
lea ecx, [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x238]
push ecx
push esi
push eax
lea eax, [ebp - 0x234]
push eax
push edi
call fcn.00405240
add esp, 0x48
mov bl, al
push dword [ebp - 0x294]
call fcn.004c8d5f
push dword [ebp - 0x254]
call fcn.004c8d5f
push dword [ebp - 0x298]
call fcn.004c8d5f
add esp, 0xc
test bl, bl
je 0x42b6ba
cmp dword [ebp - 0x27c], 0xffffffff
jne 0x42b5ff
push 0x4f9d20
mov dword [ebp - 0x22c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x22c], eax
call fcn.004c8d5f
mov ebx, dword [ebp - 0x288]
push 0x4f9d20
mov dword [ebp - 0x268], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x268], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x23c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x23c], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x240], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x240], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x244], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x244], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x248], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x248], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x24c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x24c], eax
call fcn.004c8d5f
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0x21
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x2a0]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
add esp, 0x48
mov esi, eax
push 0x4f9d20
mov dword [ebp - 0x250], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x250], eax
call fcn.004c8d5f
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x29c]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
mov byte [ebp - 4], 0x24
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x22c]
push ecx
push ebx
push 0
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x248]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push edi
call fcn.00405550
add esp, 0x5c
mov dword [ebp - 0x27c], eax
push dword [ebp - 0x29c]
call fcn.004c8d5f
push dword [ebp - 0x250]
call fcn.004c8d5f
push dword [ebp - 0x2a0]
call fcn.004c8d5f
push dword [ebp - 0x24c]
call fcn.004c8d5f
push dword [ebp - 0x248]
call fcn.004c8d5f
push dword [ebp - 0x244]
call fcn.004c8d5f
push dword [ebp - 0x240]
call fcn.004c8d5f
push dword [ebp - 0x23c]
call fcn.004c8d5f
push dword [ebp - 0x268]
call fcn.004c8d5f
push dword [ebp - 0x22c]
call fcn.004c8d5f
add esp, 0x28
push 0x4f9d20
mov dword [ebp - 0x22c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x22c], eax
call fcn.004c8d5f
mov esi, dword [ebp - 0x288]
lea eax, [ebp - 0x234]
mov ebx, dword [ebp - 0x2a4]
push eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 0x25
push eax
lea eax, [ebp - 0x2ac]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00409cf0
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0x26
push ecx
push esi
push ebx
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x238]
push ecx
push eax
lea eax, [ebp - 0x230]
push eax
push 0x10
push dword [ebp - 0x27c]
push dword [ebp - 0x2a8]
push edi
call fcn.00405550
add esp, 0x5c
push dword [ebp - 0x2ac]
call fcn.004c8d5f
push dword [ebp - 0x22c]
call fcn.004c8d5f
add esp, 8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x230]
call fcn.004c8d5f
add esp, 4
lea ecx, [ebp - 0x2c0]
call fcn.004028a0
push dword [ebp - 0x2c4]
call fcn.004c8d5f
push dword [ebp - 0x258]
mov byte [ebp - 4], 0x13
call fcn.004c8d5f
add esp, 8
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x234]
inc eax
push ecx
push eax
push dword [ebp - 0x270]
mov dword [ebp - 0x284], eax
call fcn.00415050
add esp, 0xc
test eax, eax
je 0x42b040
mov edi, dword [ebp - 0x2b0]
mov esi, dword [ebp - 0x2b4]
push dword [ebp - 0x270]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x234]
call fcn.004c8d5f
push dword [ebp - 0x260]
call fcn.004c8d5f
push dword [ebp - 0x280]
call fcn.004c8d5f
push dword [ebp - 0x274]
call fcn.004c8d5f
push dword [ebp - 0x278]
call fcn.004c8d5f
push dword [ebp - 0x264]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push dword [ebp - 0x238]
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