Function at 0x46e9fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x220], esi
mov edi, esi
mov ebx, esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x22c], esi
call fcn.0045d10c
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x240], eax
call fcn.0045d10c
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
push 0x20019
push esi
push 0x41b8f8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46eadd
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x46eaec
push 0x30303030
call fcn.0044a6b6
jmp 0x46ec9a
push dword [ebp - 0x220]
inc dword [ebp - 0x214]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x46ec9a
mov eax, dword [ebp - 0x214]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x46ec9a
mov ecx, esi
mov dword [ebp - 0x238], esi
cmp dword [ebp - 0x21c], ecx
jbe 0x46ec5a
mov dword [ebp - 0x23c], 9
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
push eax
push ebx
lea eax, [ebp - 0x234]
push eax
push esi
lea eax, [ebp - 0x224]
push eax
push edi
push ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x46ec41
cmp dword [ebp - 0x234], 1
jne 0x46ec41
cmp dword [ebp - 0x224], 6
jne 0x46ec41
cmp word [edi], 0x44
jne 0x46ec41
cmp word [edi + 2], 0x57
jne 0x46ec41
movzx ecx, word [edi + 4]
push 9
lea eax, [ecx - 0x30]
pop edx
cmp ax, dx
ja 0x46ec41
movzx eax, word [edi + 6]
add eax, 0xffffffd0
cmp ax, dx
ja 0x46ec41
movzx eax, word [edi + 8]
add eax, 0xffffffd0
cmp ax, dx
ja 0x46ec41
movzx edx, word [edi + 0xa]
lea eax, [edx - 0x30]
cmp ax, word [ebp - 0x23c]
ja 0x46ec41
movzx eax, word [edi + 6]
add ecx, 0xffffffd0
imul ecx, ecx, 0xa
add eax, 0xffffffd0
add ecx, eax
movzx eax, word [edi + 8]
imul ecx, ecx, 0xa
add eax, 0xffffffd0
add ecx, eax
imul ecx, ecx, 0xa
mov eax, edx
add eax, 0xffffffd0
add eax, ecx
cmp eax, dword [ebp - 0x22c]
jbe 0x46ec41
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x228], eax
jae 0x46ec9a
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x218]
call fcn.004605f8
add esp, 0xc
mov ecx, dword [ebp - 0x238]
inc ecx
mov dword [ebp - 0x238], ecx
cmp ecx, dword [ebp - 0x21c]
jb 0x46eb43
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x46ec97
mov dword [eax], esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46ec97
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call fcn.0046e923
mov ecx, dword [ebp - 0x230]
mov dword [ecx], eax
xor esi, esi
inc esi
cmp dword [ebp - 0x210], 0
je 0x46ecaf
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x46ecba
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x46ecc5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret 0xc