Function at 0x42c374
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x46b730]
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.0041b964
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x240], eax
call fcn.0041b964
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
push 0x20019
push esi
push 0x4085b8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42c456
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 0x42c465
push 0x30303030
call fcn.00419d97
jmp 0x42c613
push dword [ebp - 0x220]
inc dword [ebp - 0x214]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42c613
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 0x42c613
mov ecx, esi
mov dword [ebp - 0x238], esi
cmp dword [ebp - 0x21c], ecx
jbe 0x42c5d3
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 0x42c5ba
cmp dword [ebp - 0x234], 1
jne 0x42c5ba
cmp dword [ebp - 0x224], 6
jne 0x42c5ba
cmp word [edi], 0x44
jne 0x42c5ba
cmp word [edi + 2], 0x57
jne 0x42c5ba
movzx ecx, word [edi + 4]
push 9
lea eax, [ecx - 0x30]
pop edx
cmp ax, dx
ja 0x42c5ba
movzx eax, word [edi + 6]
add eax, 0xffffffd0
cmp ax, dx
ja 0x42c5ba
movzx eax, word [edi + 8]
add eax, 0xffffffd0
cmp ax, dx
ja 0x42c5ba
movzx edx, word [edi + 0xa]
lea eax, [edx - 0x30]
cmp ax, word [ebp - 0x23c]
ja 0x42c5ba
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 0x42c5ba
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x228], eax
jae 0x42c613
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x218]
call fcn.00423b5a
add esp, 0xc
mov ecx, dword [ebp - 0x238]
inc ecx
mov dword [ebp - 0x238], ecx
cmp ecx, dword [ebp - 0x21c]
jb 0x42c4bc
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x42c610
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 0x42c610
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call fcn.0042c29c
mov ecx, dword [ebp - 0x230]
mov dword [ecx], eax
xor esi, esi
inc esi
cmp dword [ebp - 0x210], 0
je 0x42c628
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x42c633
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x42c63e
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.0041b956
leave
ret 0xc