Function at 0x46e664
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4898ad
call fcn.0046e3e3
sub esp, 0x694
mov eax, dword [section..cdata]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
xor ebx, ebx
mov edx, 0x81
mov word [ebp - 0x248], bx
mov ecx, edx
lea edi, [ebp - 0x246]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xb
pop ecx
xor eax, eax
mov word [ebp - 0x40], bx
lea edi, [ebp - 0x3e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x450], bx
mov ecx, edx
lea edi, [ebp - 0x44e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x450]
mov esi, 0x104
push esi
push eax
push ebx
mov dword [ebp - 0x698], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
jbe 0x46e713
cmp eax, esi
jae 0x46e713
lea eax, [ebp + eax*2 - 0x452]
jmp 0x46e6f3
cmp word [eax], 0x5c
je 0x46e709
dec eax
dec eax
lea ecx, [ebp - 0x450]
cmp eax, ecx
mov dword [ebp - 0x698], eax
ja 0x46e6eb
cmp word [eax], 0x5c
jne 0x46e71a
inc eax
inc eax
mov dword [ebp - 0x698], eax
jmp 0x46e71a
mov word [ebp - 0x450], bx
mov dword [ebp - 0x69c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x69c]
push eax
mov edi, 0x20019
push edi
push ebx
push 0x407128
push SysReAllocString
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x46e7ed
lea eax, [ebp - 0x694]
push eax
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x694], ebx
push dword [ebp - 0x69c]
call esi
test eax, eax
jne 0x46e7d9
lea eax, [ebp - 0x690]
push eax
push edi
push ebx
push 0x407d3c
push dword [ebp - 0x694]
mov dword [ebp - 0x690], ebx
call esi
test eax, eax
jne 0x46e7c5
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x248]
push eax
push ebx
push ebx
push 0x40444c
push dword [ebp - 0x690]
mov dword [ebp - 0x6a0], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46e7be
mov word [ebp - 0x42], bx
jmp 0x46e7c5
mov word [ebp - 0x248], bx
cmp dword [ebp - 0x690], ebx
je 0x46e7d9
push dword [ebp - 0x690]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x694], ebx
je 0x46e7ed
push dword [ebp - 0x694]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x248], bx
je 0x46e8d9
push 0x407d24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x407d0c
push eax
mov dword [ebp - 0x690], eax
call esi
lea ecx, [ebp - 0x694]
push ecx
lea ecx, [ebp - 0x248]
push ecx
call eax
cmp eax, ebx
mov dword [ebp - 0x694], eax
jne 0x46e83c
mov word [ebp - 0x40], bx
jmp 0x46e8d9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x46e8d9
push 0x407cf8
push dword [ebp - 0x690]
call esi
push edi
push dword [ebp - 0x694]
lea ecx, [ebp - 0x248]
push ebx
push ecx
call eax
test eax, eax
je 0x46e8ca
push 0x407ce8
push dword [ebp - 0x690]
call esi
lea ecx, [ebp - 0x690]
push ecx
lea ecx, [ebp - 0x6a0]
push ecx
push 0x407bcc
push edi
call eax
test eax, eax
je 0x46e8ca
mov eax, dword [ebp - 0x6a0]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
lea eax, [ebp - 0x40]
push 0x402c54
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x18
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x68c], bx
mov ecx, 0x8e
lea edi, [ebp - 0x68a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x68c]
push 0x407cd4
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x14
lea eax, [ebp - 0x68c]
push eax
push 0x5330
push 4
push dword [ebp - 0x698]
call fcn.0046e47d
cmp dword [ebp - 0x69c], ebx
mov esi, eax
je 0x46e943
push dword [ebp - 0x69c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0046e295
leave
ret 4