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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c3e9
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x46d45c]
xor eax, ebp
mov dword [ebp - 0x38], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402160
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], 0x400
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00437999
add esp, 4
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x1d], 1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [0x46f464]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.00402270
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004047c0
add esp, 0x14
mov dword [ebp - 0x844], eax
cmp dword [ebp - 0x844], 0
je 0x404b83
mov ecx, dword [ebp - 0x844]
mov dword [ebp - 0x854], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004021c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004021c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004021c0
mov eax, dword [ebp - 0x854]
jmp 0x40502e
mov edx, dword [ebp - 0x10]
push edx
call fcn.00404930
add esp, 4
mov dword [ebp - 0x850], eax
push 0
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [0x46f464]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20006
push eax
push 0
push 0
push 0
lea ecx, [ebp + 0x10]
call fcn.00402270
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x844], eax
cmp dword [ebp - 0x844], 0
je 0x404c16
mov eax, dword [ebp - 0x844]
mov dword [ebp - 0x858], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004021c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004021c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004021c0
mov eax, dword [ebp - 0x858]
jmp 0x40502e
push 0x453690
lea ecx, [ebp - 0x83c]
push ecx
call fcn.004387e0
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
movzx edx, byte [ebp - 0x1d]
test edx, edx
jne 0x404c6e
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x404c4d
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0
lea eax, [ebp - 0x83c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x404c72
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x848], 0x400
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x878], eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x848]
push ecx
lea edx, [ebp - 0x83c]
push edx
mov eax, dword [ebp - 0x878]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x844], eax
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x844], 0xea
jne 0x404d2c
mov eax, dword [ebp - 0x30]
add eax, 0x400
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.004382ba
add esp, 8
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x848]
push ecx
lea edx, [ebp - 0x83c]
push edx
mov eax, dword [ebp - 0x24]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x844], eax
jmp 0x404cc7
cmp dword [ebp - 0x844], 0
je 0x404c38
lea ecx, [ebp - 0x840]
call fcn.00402160
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00402160
mov byte [ebp - 4], 4
mov dword [ebp - 0x24], 0
mov edx, 1
test edx, edx
je 0x404f6d
mov dword [ebp - 0x84c], 0x400
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0041d570
add esp, 0xc
mov dword [ebp - 0x844], eax
cmp dword [ebp - 0x844], 0x103
jne 0x404d9d
jmp 0x404f6d
cmp dword [ebp - 0x844], 0
je 0x404dab
jmp 0x404f6d
lea eax, [ebp - 0x14]
push eax
push 0x453694
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x85c]
push edx
call fcn.00410960
add esp, 0xc
mov dword [ebp - 0x87c], eax
mov eax, dword [ebp - 0x87c]
mov dword [ebp - 0x880], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x880]
push ecx
lea edx, [ebp - 0x860]
push edx
call fcn.004108d0
add esp, 0xc
mov dword [ebp - 0x884], eax
mov eax, dword [ebp - 0x884]
mov dword [ebp - 0x888], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x888]
push ecx
lea ecx, [ebp - 0x840]
call fcn.00402240
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x860]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x85c]
call fcn.004021c0
lea edx, [ebp - 0x14]
push edx
push 0x453698
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x864]
push ecx
call fcn.00410960
add esp, 0xc
mov dword [ebp - 0x88c], eax
mov edx, dword [ebp - 0x88c]
mov dword [ebp - 0x890], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x890]
push eax
lea ecx, [ebp - 0x868]
push ecx
call fcn.004108d0
add esp, 0xc
mov dword [ebp - 0x894], eax
mov edx, dword [ebp - 0x894]
mov dword [ebp - 0x898], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x898]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402240
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x868]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x864]
call fcn.004021c0
push ecx
mov ecx, esp
mov dword [ebp - 0x86c], esp
lea edx, [ebp - 0x18]
push edx
call fcn.00402280
mov dword [ebp - 0x89c], eax
mov eax, dword [ebp - 0x89c]
mov dword [ebp - 0x8a0], eax
mov byte [ebp - 4], 9
push ecx
mov ecx, esp
mov dword [ebp - 0x870], esp
lea edx, [ebp - 0x840]
push edx
call fcn.00402280
mov dword [ebp - 0x8a4], eax
mov eax, dword [ebp + 8]
push eax
mov byte [ebp - 4], 4
call fcn.00404ab0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x10]
push edx
mov eax, dword [0x46f464]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.00402270
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004047c0
add esp, 0x14
mov dword [ebp - 0x844], eax
cmp dword [ebp - 0x844], 0
je 0x404f5f
jmp 0x404f6d
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
jmp 0x404d5b
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x850]
push ecx
push 0
push 0
call fcn.004049a0
add esp, 0x10
mov edx, dword [0x46f464]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
lea ecx, [ebp + 0xc]
call fcn.00402270
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00404a00
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x850]
push eax
call fcn.00437abb
add esp, 4
mov ecx, dword [ebp - 0x844]
sub ecx, 0x103
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x844]
mov dword [ebp - 0x874], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.004021c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x840]
call fcn.004021c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004021c0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004021c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004021c0
mov eax, dword [ebp - 0x874]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x38]
xor ecx, ebp
call fcn.004376f1
mov esp, ebp
pop ebp
ret