Function at 0x493900
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bb72b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x6218c0]
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 0x493957
mov ecx, dword [ebp - 0x298]
or ecx, 0x100
mov dword [ebp - 0x298], ecx
jmp 0x493969
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.00406a40
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x493bea
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 0x493bdd
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 0x493bca
mov byte [ebp - 0x291], 1
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x20
call fcn.0041eb00
movzx eax, al
test eax, eax
je 0x493bb0
lea ecx, [ebp - 0x218]
push ecx
push 0x5ca450
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x248]
push eax
call fcn.004726c0
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.0041f5c0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00406c10
cmp dword [ebp + 8], 0x80000002
jne 0x493ae1
lea ecx, [ebp - 0x230]
push ecx
push 0x5ca454
lea edx, [ebp - 0x260]
push edx
call fcn.004935f0
add esp, 0xc
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b6c0
lea ecx, [ebp - 0x260]
call fcn.00406c10
jmp 0x493b71
cmp dword [ebp + 8], reloc.WS2_32.dll_accept
jne 0x493b2a
lea ecx, [ebp - 0x230]
push ecx
push str.HKEY_CURRENT_USER_
lea edx, [ebp - 0x278]
push edx
call fcn.004935f0
add esp, 0xc
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b6c0
lea ecx, [ebp - 0x278]
call fcn.00406c10
jmp 0x493b71
cmp dword [ebp + 8], 0x80000000
jne 0x493b71
lea ecx, [ebp - 0x230]
push ecx
push str.HKEY_CLASSES_ROOT_
lea edx, [ebp - 0x290]
push edx
call fcn.004935f0
add esp, 0xc
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040b6c0
lea ecx, [ebp - 0x290]
call fcn.00406c10
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.00493890
mov byte [ebp - 0x291], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00406c10
mov edx, dword [ebp - 0x2a8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [ebp - 0x291]
test eax, eax
jne 0x493bca
jmp 0x493bdd
mov cx, word [0x5ca4cc]
mov word [ebp - 0x218], cx
jmp 0x49399e
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.0057029b
mov esp, ebp
pop ebp
ret 0xc