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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab31a
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x4dc6e0]
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 - 0x25c], eax
push 2
mov dword [ebp - 4], 0
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x234], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
mov edi, eax
xor eax, eax
mov dword [ebp - 0x2a0], edi
mov word [edi], ax
push 2
call fcn.0048fb2f
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x2a8], ebx
mov word [ebx], ax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x248], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x27c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x274], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
mov esi, eax
xor eax, eax
mov dword [ebp - 0x2b0], esi
mov word [esi], ax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x264], eax
mov word [eax], cx
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x254], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x24c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x240], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x244], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x260], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x250], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x23c], eax
push 0x4af9b8
call fcn.0048faa4
add esp, 0x40
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x26c]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x270]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x12
push ecx
push 1
push 0
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x250]
push ecx
push dword [ebp - 0x278]
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x25c]
call fcn.00403eb0
add esp, 0x64
mov dword [ebp - 0x284], eax
push dword [ebp - 0x270]
call fcn.0048faf7
push dword [ebp - 0x26c]
call fcn.0048faf7
push dword [ebp - 0x22c]
call fcn.0048faf7
push dword [ebp - 0x23c]
call fcn.0048faf7
push dword [ebp - 0x250]
call fcn.0048faf7
push dword [ebp - 0x260]
call fcn.0048faf7
push dword [ebp - 0x244]
call fcn.0048faf7
push dword [ebp - 0x240]
call fcn.0048faf7
push dword [ebp - 0x24c]
call fcn.0048faf7
push dword [ebp - 0x254]
mov byte [ebp - 4], 8
call fcn.0048faf7
lea eax, [ebp - 0x280]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [section..data]
call fcn.00406320
add esp, 0x3c
test eax, eax
je 0x42143c
push dword [ebp - 0x264]
call fcn.0048faf7
push esi
call fcn.0048faf7
push dword [ebp - 0x274]
call fcn.0048faf7
push dword [ebp - 0x27c]
call fcn.0048faf7
push dword [ebp - 0x248]
call fcn.0048faf7
push ebx
call fcn.0048faf7
push edi
call fcn.0048faf7
push dword [ebp - 0x234]
call fcn.0048faf7
add esp, 0x20
jmp 0x421aed
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x230], eax
mov word [eax], cx
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x13
push eax
push ecx
push dword [ebp - 0x280]
call fcn.00410500
add esp, 0x10
test eax, eax
jne 0x421a8a
mov edi, dword [ebp - 0x25c]
xor ebx, ebx
jmp 0x421480
mov esi, dword [ebp - 0x230]
lea eax, [ebp - 0x258]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421a59
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x4b5554
push dword [ebp - 0x258]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x421a4d
push dword [ebp - 0x264]
call fcn.0048faa4
mov dword [ebp - 0x278], eax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x2d4], eax
mov word [eax], cx
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2cc], ecx
mov dword [ebp - 0x2c8], ecx
lea eax, [ebp - 0x2d4]
mov byte [ebp - 4], 0x15
push eax
push dword [ebp - 0x264]
call fcn.00406bd0
push 0
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x2c4]
push edi
push eax
call fcn.00404cf0
mov esi, dword [ebp - 0x234]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x234], eax
call fcn.0048faf7
push dword [ebp - 0x2c4]
call fcn.0048faf7
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x234]
push edi
call fcn.00404ce0
push dword [ebp - 0x230]
mov dword [ebp - 0x294], eax
call fcn.0048faa4
add esp, 0x40
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0x16
push eax
push 0
push 0
push 0x4b556c
push dword [ebp - 0x258]
call fcn.00410620
add esp, 0x14
test eax, eax
jne 0x4216c9
mov eax, dword [ebp - 0x22c]
cmp word [eax], 0x40
jne 0x4216c9
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x288], esi
push 0x2c
push esi
mov byte [ebp - 4], 0x17
mov dword [ebp - 0x25c], 0
call fcn.0049110f
add esp, 0xc
test eax, eax
je 0x421624
push 0x2c
push esi
call fcn.0049110f
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.00492994
cdq
add esp, 0xc
xor eax, edx
sub eax, edx
mov dword [ebp - 0x25c], eax
lea ecx, [esi + 2]
push ecx
lea eax, [ebp - 0x2bc]
push eax
call fcn.00410090
push dword [eax]
call fcn.0048faa4
push dword [ebp - 0x288]
mov esi, eax
call fcn.0048faf7
push dword [ebp - 0x2bc]
call fcn.0048faf7
add esp, 0x14
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x2c0], eax
test eax, eax
je 0x4216c0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x25c]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x4216b4
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0048faa4
push dword [ebp - 0x288]
mov dword [ebp - 0x22c], eax
call fcn.0048faf7
add esp, 8
push dword [ebp - 0x2c0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call fcn.0048faf7
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x290]
mov dword [ebp - 0x268], 4
push eax
push 0
push 0
push 0x4b5544
push dword [ebp - 0x258]
call esi
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 0x10
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0x4b552c
push dword [ebp - 0x258]
call esi
test eax, eax
jne 0x421a22
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x2b4]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x29c]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0x1a
push ecx
lea ecx, [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x234]
push ecx
push esi
push eax
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.00403c00
add esp, 0x44
mov byte [ebp - 0x235], al
push dword [ebp - 0x29c]
call fcn.0048faf7
push dword [ebp - 0x2b4]
call fcn.0048faf7
push dword [ebp - 0x254]
call fcn.0048faf7
add esp, 0xc
cmp byte [ebp - 0x235], 0
je 0x421a22
cmp dword [ebp - 0x284], 0xffffffff
jne 0x42197a
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x26c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x28c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x23c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x250], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x260], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x244], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x240], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x2b8]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x2a4]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
add esp, 0x40
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0x24
push ecx
push dword [ebp - 0x290]
lea ecx, [ebp - 0x28c]
push 0
push ecx
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x244]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push edi
call fcn.00403eb0
push dword [ebp - 0x2a4]
mov dword [ebp - 0x284], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x2b8]
call fcn.0048faf7
push dword [ebp - 0x24c]
call fcn.0048faf7
push dword [ebp - 0x240]
call fcn.0048faf7
push dword [ebp - 0x244]
call fcn.0048faf7
push dword [ebp - 0x260]
call fcn.0048faf7
push dword [ebp - 0x250]
call fcn.0048faf7
push dword [ebp - 0x23c]
call fcn.0048faf7
push dword [ebp - 0x28c]
call fcn.0048faf7
push dword [ebp - 0x26c]
call fcn.0048faf7
add esp, 0x24
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x25
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x298]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0x26
push ecx
push dword [ebp - 0x290]
lea ecx, [ebp - 0x278]
push dword [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x234]
push ecx
push eax
lea eax, [ebp - 0x22c]
push eax
push 0x10
push dword [ebp - 0x284]
push dword [ebp - 0x294]
push edi
call fcn.00403eb0
add esp, 0x58
push dword [ebp - 0x298]
call fcn.0048faf7
push dword [ebp - 0x270]
call fcn.0048faf7
add esp, 8
push dword [ebp - 0x22c]
call fcn.0048faf7
add esp, 4
lea ecx, [ebp - 0x2d4]
call fcn.00402130
push dword [ebp - 0x278]
mov byte [ebp - 4], 0x13
call fcn.0048faf7
add esp, 4
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x230]
inc ebx
push eax
push ebx
push dword [ebp - 0x280]
call fcn.00410500
add esp, 0xc
test eax, eax
je 0x421480
mov edi, dword [ebp - 0x2a0]
mov ebx, dword [ebp - 0x2a8]
mov esi, dword [ebp - 0x2b0]
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x230]
call fcn.0048faf7
push dword [ebp - 0x264]
call fcn.0048faf7
push esi
call fcn.0048faf7
push dword [ebp - 0x274]
call fcn.0048faf7
push dword [ebp - 0x27c]
call fcn.0048faf7
push dword [ebp - 0x248]
call fcn.0048faf7
push ebx
call fcn.0048faf7
push edi
call fcn.0048faf7
push dword [ebp - 0x234]
call fcn.0048faf7
add esp, 0x24
push dword [ebp + 0xc]
call fcn.0048faf7
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.0048fc6c
mov esp, ebp
pop ebp
ret