Function at 0x6d1fa319
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x6d22e258]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x3c
mov eax, 0x6d21da7a
call fcn.6d20a573
mov esi, 0x104
mov edi, ecx
push esi
xor ebx, ebx
lea eax, [edi + 0x18]
push ebx
push eax
call fcn.6d20a0b0
push esi
lea eax, [edi + 0x11c]
push ebx
push eax
call fcn.6d20a0b0
lea eax, [edi + 0x18]
push eax
call fcn.6d1fb300
lea eax, [edi + 0x11c]
push eax
call fcn.6d1fb555
add esp, 0x20
lea eax, [ebp - 0x28]
push eax
push 0x20019
push ebx
push 0x6d220718
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d1fa492
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 0x6d1fa475
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 0x1c], ebx
jbe 0x6d1fa460
cmp byte [ebp + eax + 0x104], 0x2e
jne 0x6d1fa3ce
inc ecx
cmp ecx, 1
jg 0x6d1fa3dd
inc eax
cmp eax, dword [ebp - 0x1c]
jb 0x6d1fa3be
cmp ecx, 1
jle 0x6d1fa460
push 0x6d220744
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
js 0x6d1fa460
lea eax, [ebp + 0x104]
push eax
call fcn.6d1fbd29
pop ecx
test al, al
je 0x6d1fa460
lea eax, [ebp - 0x18]
push eax
call fcn.6d1fa81f
cmp eax, ebx
jl 0x6d1fa460
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.6d219ca3
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
push edx
push 0x6d222e2c
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.6d219ca3
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 0x6d1fa3b1
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp]
push eax
push dword [0x6d233750]
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp eax, ebx
je 0x6d1fa6cf
lea eax, [ebp]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x6d1fa4c4
xor eax, eax
jmp 0x6d1fa4db
lea eax, [esi + esi]
call fcn.6d20a080
mov eax, esp
push 3
push esi
lea ecx, [ebp]
push ecx
push eax
call fcn.6d219ca3
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 0x6d1fa6be
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x6d21f854
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x18]
cmp eax, ebx
jl 0x6d1fa6ae
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x6d1fa528
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 0x6d21f71c
push eax
mov byte [ebp - 4], 3
call dword [ecx]
test eax, eax
js 0x6d1fa54d
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.6d1f1583
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 0x6d1fa68c
mov eax, dword [ebp - 0x30]
movzx eax, word [eax + 0x2c]
mov dword [0x6d22cd80], eax
cmp eax, ebx
jne 0x6d1fa57a
mov dword [0x6d22cd7c], ebx
jmp 0x6d1fa5d3
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.6d219ca3
pop ecx
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x6d1fa5c2
push section..text
push 0x6d1f10df
push esi
lea edi, [eax + 4]
push 0xc
push edi
mov dword [eax], esi
call fcn.6d20a12a
jmp 0x6d1fa5c4
xor edi, edi
mov eax, dword [0x6d22cd80]
mov byte [ebp - 4], 3
mov dword [0x6d22cd7c], edi
xor edi, edi
cmp eax, ebx
jle 0x6d1fa675
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 0x6d1fa665
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 0x6d1fa64c
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x6d22cd7c]
lea ecx, [esi + eax]
mov dword [ebp - 0x20], ebx
call fcn.6d1f10c3
mov eax, dword [0x6d22cd7c]
push dword [esi + eax]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [0x6d22cd7c]
mov dword [esi + ecx + 4], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov ecx, dword [0x6d22cd7c]
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 [0x6d22cd80]
jl 0x6d1fa5df
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 [0x6d22cd74], eax
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x6d1fa69d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x6d1fa6ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x6d1fa6be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x6d1fa6cf
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.6d20a065
add ebp, 0x20c
leave
ret