Function at 0x46c3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x330]
sub esp, 0x3b0
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp + 0x32c], eax
mov eax, dword [ebp + 0x338]
mov ecx, dword [ebp + 0x344]
push ebx
mov ebx, dword [ebp + 0x33c]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x348]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x68], esi
cmp dword [ebp + 0x350], esi
je 0x46c450
push eax
push str._ReadNewAPKeyName__d
call fcn.00469110
add esp, 8
cmp ebx, esi
je 0x46c76f
cmp edi, esi
je 0x46c76f
mov edx, dword [ebp + 0x340]
push edx
push esi
push ebx
call fcn.00447660
add esp, 0xc
xor eax, eax
jmp 0x46c480
movzx ecx, word [eax + str.SOFTWAREClassesCLSID_]
mov word [ebp + eax - 0x54], cx
add eax, 2
cmp cx, si
jne 0x46c480
lea edi, [ebp - 0x54]
add edi, 0xfffffffe
lea edx, [edi + 2]
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x46c4a0
mov ecx, 0x13
mov esi, 0x4a2220
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x74]
push ecx
push edx
movsw word es:[edi], word [esi]
call fcn.0046db30
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x46c6ff
cmp dword [ebp + 0x350], eax
je 0x46c502
cmp dword [ebp - 0x78], 0x80000002
mov eax, str.HKEY_LOCAL_MACHINE
je 0x46c4f0
mov eax, str.HKEY_CURRENT_USER
lea edx, [ebp - 0x54]
push edx
push eax
push str._ReadNewAPKeyName____RegOpenKeyEx__s____s__..._
call fcn.00469110
add esp, 0xc
push 0x180
call fcn.004710a0
add eax, 8
add esp, 4
cmp eax, 0x400
ja 0x46c534
call fcn.0044a220
mov eax, esp
test eax, eax
je 0x46c52d
mov dword [eax], 0xcccc
add eax, 8
mov edi, eax
mov dword [ebp - 0x5c], edi
jmp 0x46c54f
push eax
call fcn.00448217
add esp, 4
test eax, eax
je 0x46c54a
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0x5c], eax
mov edi, eax
test edi, edi
je 0x46c768
mov eax, dword [ebp - 0x60]
push edi
push 0
push eax
call fcn.0046ad00
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x46c6da
mov edx, dword [ebp - 0x74]
lea ecx, [ebp - 0x6c]
push ecx
push 1
push eax
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x46c6da
cmp dword [ebp + 0x350], eax
je 0x46c5be
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0044a220
mov eax, esp
push esi
push edi
push eax
call fcn.0040a2d0
push eax
push str._ReadNewAPKeyName____lpszCodedKNameRef___s
call fcn.00469110
add esp, 8
push 0x27
call fcn.004710a0
mov dword [ebp - 0x80], eax
add eax, 8
add esp, 4
cmp eax, 0x400
ja 0x46c5e8
call fcn.0044a220
mov eax, esp
test eax, eax
je 0x46c5fe
mov dword [eax], 0xcccc
jmp 0x46c5fb
push eax
call fcn.00448217
add esp, 4
test eax, eax
je 0x46c5fe
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
test ebx, ebx
je 0x46c75e
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x80]
push eax
push ebx
push 0
push 0
push str.Data
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x46c6c4
mov edx, dword [ebp + 0x340]
mov edi, dword [ebp - 0x64]
push edx
push edi
push ebx
call fcn.00471650
add esp, 0xc
test eax, eax
jbe 0x46c6c1
cmp dword [ebp + 0x350], esi
je 0x46c697
lea edx, [ebp + 0x1ac]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46c654
lea eax, [ebp + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.0044a220
mov eax, esp
push edi
lea ecx, [ebp + 0x1ac]
push ecx
push eax
call fcn.0040a2d0
push eax
push str._ReadNewAPKeyName____fExists__TRUE__lpszAPKeyName___s
call fcn.00469110
mov edi, dword [ebp - 0x64]
add esp, 8
cmp dword [ebp - 0x78], 0x80000002
mov dword [ebp - 0x58], 1
jne 0x46c6c1
mov edx, dword [ebp + 0x350]
mov ecx, dword [ebp - 0x60]
push edx
lea eax, [ebp - 0x68]
push eax
push edi
push ecx
call fcn.0046c1a0
add esp, 0x10
mov esi, eax
mov edi, dword [ebp - 0x5c]
push ebx
call fcn.0042ef80
mov edx, dword [ebp - 0x6c]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x64]
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x46c6ef
push eax
call fcn.004482e1
add esp, 4
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x58], 0
jne 0x46c726
cmp esi, 2
jne 0x46c726
cmp dword [ebp + 0x34c], 0
je 0x46c726
mov ecx, dword [ebp + 0x350]
mov edx, dword [ebp - 0x60]
push ecx
push ebx
push edx
mov byte [ebx], 0
call fcn.0046ae80
add esp, 0xc
mov esi, eax
mov edi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x46c732
mov dword [eax], esi
test edi, edi
je 0x46c73b
mov eax, dword [ebp - 0x68]
mov dword [edi], eax
cmp dword [ebp + 0x350], 0
je 0x46c776
mov ecx, dword [ebp - 0x68]
push ecx
push esi
mov esi, dword [ebp - 0x58]
push esi
push str._ReadNewAPKeyName__fin___fExists___d__dwError___ld__dwErrAP___ld
call fcn.00469110
add esp, 0x10
mov eax, esi
jmp 0x46c779
mov esi, 8
jmp 0x46c6c4
mov esi, 8
jmp 0x46c6ef
mov esi, 0xfffffffa
jmp 0x46c729
mov eax, dword [ebp - 0x58]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x32c]
xor ecx, ebp
call fcn.00447645
add ebp, 0x330
mov esp, ebp
pop ebp
ret