Function at 0x47a550
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x460
mov eax, dword [0x4cacfc]
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 0x47a998
push 0x206
lea ecx, [esp + 0x5a]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x60], ax
call fcn.00487630
push 0x206
lea eax, [esp + 0x26e]
xor edx, edx
push ebx
push eax
mov word [esp + 0x274], dx
call fcn.00487630
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
push 0x20119
xor eax, eax
push ebx
push 0x4ab0c8
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 0x47a996
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x68]
push eax
push ebx
push ecx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x47a987
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
lea edx, [esp + 0x5c]
inc ebx
push edx
mov ecx, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 0x104
call fcn.00479fb0
mov esi, eax
cmp esi, 0xffffffff
je 0x47a95f
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], 0x10114
call ebp
test eax, eax
je 0x47a954
cmp dword [esp + 0x20], 0
jne 0x47a954
mov eax, dword [edi]
shl eax, 4
lea ecx, [eax + edi + 0xc48]
push ecx
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, edi
call fcn.0047a130
test eax, eax
jne 0x47a6e4
push eax
lea edx, [esp + 0x18]
push edx
push 0x12
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x34]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push esi
mov dword [esp + 0x30], 0x10205
call ebp
movzx edx, byte [esp + 0x2d]
movzx eax, byte [esp + 0x2c]
movzx ecx, byte [esp + 0x2b]
push edx
movzx edx, byte [esp + 0x2e]
push eax
movzx eax, byte [esp + 0x31]
push ecx
movzx ecx, byte [esp + 0x34]
push edx
push eax
push ecx
lea edx, [esp + 0x54]
push 0x4ab144
push edx
call fcn.00488a44
mov eax, dword [edi]
mov ecx, dword [esp + 0x5c]
lea eax, [eax + eax*8]
mov dword [edi + eax*2 + 0x194], ecx
mov edx, dword [esp + 0x60]
lea eax, [edi + eax*2 + 0x194]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x68]
add esp, 0x20
push 0
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x50]
lea edx, [esp + 0x18]
push edx
push 0x12
mov byte [eax + 0x10], cl
lea eax, [esp + 0x34]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010101
call ebp
test eax, eax
je 0x47a7d9
movzx edx, byte [esp + 0x2d]
movzx eax, byte [esp + 0x2c]
movzx ecx, byte [esp + 0x2b]
push edx
movzx edx, byte [esp + 0x2e]
push eax
movzx eax, byte [esp + 0x31]
push ecx
movzx ecx, byte [esp + 0x34]
push edx
push eax
push ecx
lea edx, [esp + 0x54]
push 0x4ab164
push edx
call fcn.00488a44
mov eax, dword [edi]
mov ecx, dword [esp + 0x5c]
lea eax, [eax + eax*8]
mov dword [edi + eax*2 + 0x2c], ecx
mov edx, dword [esp + 0x60]
lea eax, [edi + eax*2 + 0x2c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x68]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x6c]
add esp, 0x20
mov byte [eax + 0x10], cl
xor eax, eax
push eax
lea edx, [esp + 0x18]
push edx
push 0x12
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x34]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push 0x170002
push esi
mov dword [esp + 0x30], 0x1010102
call ebp
test eax, eax
je 0x47a881
movzx edx, byte [esp + 0x2d]
movzx eax, byte [esp + 0x2c]
movzx ecx, byte [esp + 0x2b]
push edx
movzx edx, byte [esp + 0x2e]
push eax
movzx eax, byte [esp + 0x31]
push ecx
movzx ecx, byte [esp + 0x34]
push edx
push eax
push ecx
lea edx, [esp + 0x54]
push 0x4ab184
push edx
call fcn.00488a44
mov eax, dword [edi]
mov ecx, dword [esp + 0x5c]
lea eax, [eax + eax*8]
mov dword [edi + eax*2 + 0xe0], ecx
mov edx, dword [esp + 0x60]
lea eax, [edi + eax*2 + 0xe0]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x68]
mov dword [eax + 0xc], edx
mov cl, byte [esp + 0x6c]
add esp, 0x20
mov byte [eax + 0x10], cl
push 0x208
lea edx, [esp + 0x268]
push 0
push edx
mov dword [esp + 0x1c], 0x1010d
call fcn.00487630
add esp, 0xc
push 0
lea eax, [esp + 0x18]
push eax
push 0x208
lea ecx, [esp + 0x270]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push 0x170002
push esi
call ebp
test eax, eax
je 0x47a908
cmp dword [esp + 0x14], 0
jbe 0x47a908
lea eax, [esp + 0x264]
push eax
call fcn.00466000
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47a908
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [ecx + ecx]
push edx
shl eax, 8
lea ecx, [eax + edi + 0x248]
push ebx
push ecx
call fcn.004877d0
push ebx
call fcn.00487d04
add esp, 0x10
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], 0x1010e
call ebp
test eax, eax
je 0x47a945
test byte [esp + 0x20], 0x20
je 0x47a945
mov edx, dword [edi]
mov dword [edi + edx*4 + 0x1738], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [edi]
mov ebx, dword [esp + 0x24]
jmp 0x47a95f
test esi, esi
je 0x47a95f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x70]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x47a622
pop esi
pop ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47a996
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.00486dc0
add esp, 0x460
ret