Function at 0x470c80
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x460
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x45c], eax
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
jg 0x4710fb
push 0x206
lea ecx, [esp + 0x262]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x268], ax
call fcn.00477820
push 0x206
lea eax, [esp + 0x66]
xor edx, edx
push ebx
push eax
mov word [esp + 0x6c], dx
call fcn.00477820
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
push 0x20019
xor eax, eax
push ebx
push 0x496038
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x34], bl
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov byte [esp + 0x45], al
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4710f9
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x270]
push eax
push ebx
push ecx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4710ea
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
jmp 0x470d60
lea edx, [esp + 0x264]
push edx
push 0x4960b4
lea eax, [esp + 0x64]
push 0x104
inc ebx
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 0x104
call fcn.00463bb0
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 3
push 0x80
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4710bf
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push esi
mov dword [esp + 0x30], 0x10114
call ebp
test eax, eax
je 0x4710b4
cmp dword [esp + 0x20], 0
jne 0x4710b4
mov edx, dword [edi]
add edx, 0xc2
shl edx, 4
add edx, edi
push edx
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x268]
push edx
mov ecx, edi
call fcn.004708c0
test eax, eax
jne 0x470e59
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x18]
push eax
push 0x12
lea ecx, [esp + 0x34]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push esi
mov dword [esp + 0x30], 0x10205
call ebp
movzx eax, byte [esp + 0x2d]
movzx ecx, byte [esp + 0x2c]
movzx edx, byte [esp + 0x2b]
push eax
movzx eax, byte [esp + 0x2e]
push ecx
movzx ecx, byte [esp + 0x31]
push edx
movzx edx, byte [esp + 0x34]
push eax
push ecx
push edx
lea eax, [esp + 0x54]
push 0x4960c4
push eax
call fcn.004786b8
mov eax, dword [edi]
mov edx, dword [esp + 0x5c]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 0x16c]
mov dword [eax], edx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x68]
add esp, 0x20
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x4c]
push 0
mov byte [eax + 0x10], dl
lea eax, [esp + 0x18]
push eax
push 0x12
lea ecx, [esp + 0x34]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010101
call ebp
test eax, eax
je 0x470f47
movzx eax, byte [esp + 0x2d]
movzx ecx, byte [esp + 0x2c]
movzx edx, byte [esp + 0x2b]
push eax
movzx eax, byte [esp + 0x2e]
push ecx
movzx ecx, byte [esp + 0x31]
push edx
movzx edx, byte [esp + 0x34]
push eax
push ecx
push edx
lea eax, [esp + 0x54]
push 0x4960e4
push eax
call fcn.004786b8
mov eax, dword [edi]
mov edx, dword [esp + 0x5c]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 4]
mov dword [eax], edx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x6c]
add esp, 0x20
mov byte [eax + 0x10], dl
xor eax, eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x18]
push eax
push 0x12
lea ecx, [esp + 0x34]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010102
call ebp
test eax, eax
je 0x470fea
movzx eax, byte [esp + 0x2d]
movzx ecx, byte [esp + 0x2c]
movzx edx, byte [esp + 0x2b]
push eax
movzx eax, byte [esp + 0x2e]
push ecx
movzx ecx, byte [esp + 0x31]
push edx
movzx edx, byte [esp + 0x34]
push eax
push ecx
push edx
lea eax, [esp + 0x54]
push 0x496104
push eax
call fcn.004786b8
mov eax, dword [edi]
mov edx, dword [esp + 0x5c]
lea ecx, [eax + eax*8]
lea eax, [edi + ecx*2 + 0xb8]
mov dword [eax], edx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0xc], ecx
mov dl, byte [esp + 0x6c]
add esp, 0x20
mov byte [eax + 0x10], dl
push 0x208
lea eax, [esp + 0x60]
push 0
push eax
mov dword [esp + 0x1c], 0x1010d
call fcn.00477820
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x208
lea edx, [esp + 0x68]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push 0x170002
push esi
call ebp
test eax, eax
je 0x471068
cmp dword [esp + 0x14], 0
jbe 0x471068
lea ecx, [esp + 0x5c]
push ecx
call fcn.00463270
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x471068
mov edx, dword [esp + 0x14]
mov ecx, dword [edi]
lea eax, [edx + edx]
push eax
shl ecx, 8
lea edx, [ecx + edi + 0x220]
push ebx
push edx
call fcn.004779c0
push ebx
call fcn.0047754e
add esp, 0x10
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010e
call ebp
test eax, eax
je 0x4710a5
test byte [esp + 0x20], 0x20
je 0x4710a5
mov eax, dword [edi]
mov dword [edi + eax*4 + 0x10d0], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [edi]
mov ebx, dword [esp + 0x24]
jmp 0x4710bf
test esi, esi
je 0x4710bf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x278]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x470d60
pop esi
pop ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4710f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
mov ecx, dword [esp + 0x464]
pop edi
pop ebx
xor ecx, esp
call fcn.004771de
add esp, 0x460
ret