Function at 0x6d30a319
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x6d33e258]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x3c
mov eax, 0x6d32da7a
call fcn.6d31a573
mov esi, 0x104
mov edi, ecx
push esi
xor ebx, ebx
lea eax, [edi + 0x18]
push ebx
push eax
call fcn.6d31a0b0
push esi
lea eax, [edi + 0x11c]
push ebx
push eax
call fcn.6d31a0b0
lea eax, [edi + 0x18]
push eax
call fcn.6d30b300
lea eax, [edi + 0x11c]
push eax
call fcn.6d30b555
add esp, 0x20
lea eax, [ebp - 0x28]
push eax
push 0x20019
push ebx
push 0x6d330718
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d30a492
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x104]
push eax
mov dword [ebp - 0x14], ebx
push ebx
jmp 0x6d30a475
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 0x1c], ebx
jbe 0x6d30a460
cmp byte [ebp + eax + 0x104], 0x2e
jne 0x6d30a3ce
inc ecx
cmp ecx, 1
jg 0x6d30a3dd
inc eax
cmp eax, dword [ebp - 0x1c]
jb 0x6d30a3be
cmp ecx, 1
jle 0x6d30a460
push 0x6d330744
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
js 0x6d30a460
lea eax, [ebp + 0x104]
push eax
call fcn.6d30bd29
pop ecx
test al, al
je 0x6d30a460
lea eax, [ebp - 0x18]
push eax
call fcn.6d30a81f
cmp eax, ebx
jl 0x6d30a460
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 0x11c]
push eax
lea eax, [edi + 0x18]
push eax
lea eax, [ebp + 0x104]
push eax
call fcn.6d32a027
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
push edx
push 0x6d332e2c
mov dword [ebp - 0x34], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
push 9
pop eax
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x48]
push ecx
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [edi + 8]
call fcn.6d32a027
inc dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x104]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x28]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
je 0x6d30a3b1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp]
push eax
push dword [0x6d343750]
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp eax, ebx
je 0x6d30a6cf
lea eax, [ebp]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x6d30a4c4
xor eax, eax
jmp 0x6d30a4db
lea eax, [esi + esi]
call fcn.6d31a080
mov eax, esp
push 3
push esi
lea ecx, [ebp]
push ecx
push eax
call fcn.6d32a027
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
cmp eax, ebx
jl 0x6d30a6be
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x6d32f854
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x18]
cmp eax, ebx
jl 0x6d30a6ae
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x6d30a528
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push 0x6d32f71c
push eax
mov byte [ebp - 4], 3
call dword [ecx]
test eax, eax
js 0x6d30a54d
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.6d301583
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x6d30a68c
mov eax, dword [ebp - 0x30]
movzx eax, word [eax + 0x2c]
mov dword [0x6d33cd80], eax
cmp eax, ebx
jne 0x6d30a57a
mov dword [0x6d33cd7c], ebx
jmp 0x6d30a5d3
mov esi, eax
xor ecx, ecx
push 0xc
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.6d32a027
pop ecx
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x6d30a5c2
push section..text
push 0x6d3010df
push esi
lea edi, [eax + 4]
push 0xc
push edi
mov dword [eax], esi
call fcn.6d31a12a
jmp 0x6d30a5c4
xor edi, edi
mov eax, dword [0x6d33cd80]
mov byte [ebp - 4], 3
mov dword [0x6d33cd7c], edi
xor edi, edi
cmp eax, ebx
jle 0x6d30a675
xor esi, esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push edi
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jl 0x6d30a665
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
push ebx
push ebx
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x2c]
push dword [edx]
mov byte [ebp - 4], 5
push eax
call dword [ecx + 0x30]
cmp eax, ebx
jl 0x6d30a64c
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x6d33cd7c]
lea ecx, [esi + eax]
mov dword [ebp - 0x20], ebx
call fcn.6d3010c3
mov eax, dword [0x6d33cd7c]
push dword [esi + eax]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [0x6d33cd7c]
mov dword [esi + ecx + 4], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov ecx, dword [0x6d33cd7c]
mov dword [esi + ecx + 8], eax
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp - 0x20]
mov byte [ebp - 4], 3
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc edi
add esi, 0xc
cmp edi, dword [0x6d33cd80]
jl 0x6d30a5df
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [0x6d33cd74], eax
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x6d30a69d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x6d30a6ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x6d30a6be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x6d30a6cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.6d31a065
add ebp, 0x20c
leave
ret