Function at 0x46e440
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5954bb
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x5f88c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x298], 0x20019
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x46e497
mov ecx, dword [ebp - 0x298]
or ecx, 0x100
mov dword [ebp - 0x298], ecx
jmp 0x46e4a9
mov edx, dword [ebp - 0x298]
or edx, 0x200
mov dword [ebp - 0x298], edx
lea eax, [ebp - 0x29c]
push eax
mov ecx, dword [ebp - 0x298]
push ecx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00403230
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46e72a
mov dword [ebp - 0x2a0], 0
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x2ac], eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x2ac]
push edx
mov eax, dword [ebp - 0x29c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x2b0], eax
mov ecx, dword [ebp - 0x2a0]
add ecx, 1
mov dword [ebp - 0x2a0], ecx
cmp dword [ebp - 0x2b0], 0
jne 0x46e71d
lea edx, [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x298]
push eax
push 0
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x29c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46e70a
mov byte [ebp - 0x291], 1
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x20
call fcn.0046d990
movzx eax, al
test eax, eax
je 0x46e6f0
lea ecx, [ebp - 0x218]
push ecx
push 0x5a4438
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.0044f380
add esp, 0xc
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
mov dword [ebp - 0x2b8], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2b8]
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.00415170
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00403120
cmp dword [ebp + 8], 0x80000002
jne 0x46e621
lea ecx, [ebp - 0x230]
push ecx
push 0x5a443c
lea edx, [ebp - 0x260]
push edx
call fcn.0046e130
add esp, 0xc
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x230]
call fcn.00409910
lea ecx, [ebp - 0x260]
call fcn.00403120
jmp 0x46e6b1
cmp dword [ebp + 8], reloc.WS2_32.dll_accept
jne 0x46e66a
lea ecx, [ebp - 0x230]
push ecx
push str.HKEY_CURRENT_USER_
lea edx, [ebp - 0x278]
push edx
call fcn.0046e130
add esp, 0xc
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x230]
call fcn.00409910
lea ecx, [ebp - 0x278]
call fcn.00403120
jmp 0x46e6b1
cmp dword [ebp + 8], 0x80000000
jne 0x46e6b1
lea ecx, [ebp - 0x230]
push ecx
push str.HKEY_CLASSES_ROOT_
lea edx, [ebp - 0x290]
push edx
call fcn.0046e130
add esp, 0xc
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x230]
call fcn.00409910
lea ecx, [ebp - 0x290]
call fcn.00403120
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x29c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x20
call fcn.0046e3d0
mov byte [ebp - 0x291], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00403120
mov edx, dword [ebp - 0x2a8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [ebp - 0x291]
test eax, eax
jne 0x46e70a
jmp 0x46e71d
mov cx, word [0x5a44b4]
mov word [ebp - 0x218], cx
jmp 0x46e4de
mov edx, dword [ebp - 0x29c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054b289
mov esp, ebp
pop ebp
ret 0xc