Function at 0x30031fe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x300930a4]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp + 0x1b4], eax
xor eax, eax
mov word [ebp - 0x54], si
mov ecx, 0x81
lea edi, [ebp - 0x52]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x1c4]
add ecx, ecx
mov edx, ecx
stosw word es:[edi], ax
mov edi, dword [ebp + 0x1c0]
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x60]
push eax
push 0x20019
push esi
push 0x30005b0c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x7c], esi
xor ebx, ebx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3003207c
push 0x30005aec
call fcn.300227ad
pop ecx
jmp 0x30032209
push esi
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x300320a4
push 0x30005ac8
jmp 0x30032071
push dword [ebp - 0x70]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
inc dword [ebp - 0x5c]
push 0x40
call edi
cmp eax, esi
mov dword [ebp - 0x58], eax
je 0x300320cb
mov eax, dword [ebp - 0x5c]
add eax, eax
push eax
push 0x40
call edi
mov ebx, eax
cmp ebx, esi
jne 0x300320d2
push 0x30005ab0
jmp 0x30032071
cmp dword [ebp - 0x6c], esi
mov dword [ebp - 0x64], esi
jbe 0x300321d1
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x58]
lea eax, [ebp - 0x78]
push eax
push esi
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 0x64]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x300321c2
cmp dword [ebp - 0x78], 1
jne 0x300321c2
cmp dword [ebp - 0x68], 6
jne 0x300321c2
cmp word [ebx], 0x44
jne 0x300321c2
cmp word [ebx + 2], 0x57
jne 0x300321c2
mov ax, word [ebx + 4]
push eax
call fcn.30031420
test eax, eax
je 0x300321c2
mov di, word [ebx + 6]
push edi
call fcn.30031420
test eax, eax
je 0x300321c2
mov dx, word [ebx + 8]
push edx
call fcn.30031420
test eax, eax
je 0x300321c2
mov cx, word [ebx + 0xa]
push ecx
call fcn.30031420
test eax, eax
je 0x300321c2
movzx eax, word [ebx + 4]
sub eax, 0x30
imul eax, eax, 0xa
movzx edi, di
lea eax, [eax + edi - 0x30]
imul eax, eax, 0xa
movzx edx, dx
lea eax, [eax + edx - 0x30]
imul eax, eax, 0xa
movzx ecx, cx
lea eax, [eax + ecx - 0x30]
cmp eax, dword [ebp - 0x80]
jbe 0x300321c2
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1c4]
add eax, eax
cmp dword [ebp - 0x74], eax
jae 0x30032249
push dword [ebp - 0x58]
push dword [ebp + 0x1c4]
push dword [ebp + 0x1c0]
call fcn.30031fca
inc dword [ebp - 0x64]
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x6c]
jb 0x300320de
mov edi, dword [ebp + 0x1c8]
cmp edi, esi
je 0x30032202
push 0x104
lea eax, [ebp - 0x54]
push eax
push esi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x30032202
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x1c0]
call fcn.30031358
mov dword [edi], eax
mov dword [ebp - 0x7c], 1
cmp dword [ebp - 0x60], esi
je 0x30032217
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x58], esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x30032227
push dword [ebp - 0x58]
call edi
cmp ebx, esi
je 0x3003222e
push ebx
call edi
mov ecx, dword [ebp + 0x1b4]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
pop ebx
call fcn.3005f839
add ebp, 0x1b8
leave
ret 0xc
push 0x30005a8c
jmp 0x30032071