Function at 0x7f91c7d0
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
sub esp, 0x344
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x18], ebx
push ebp
lea edi, [esp + 0x49]
xor eax, eax
mov ecx, 0x40
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x104
mov byte [esp + 0x48], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x35]
mov dword [esp + 0x30], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x24], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov ecx, dword [0x7f91f268]
mov dword [eax + 0xc], ebx
cmp ecx, ebx
mov word [eax + 0x10], bx
mov byte [eax + 0x12], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x28]
jne 0x7f91cd6c
lea eax, [esp + 0x34]
lea esi, [esp + 0x24]
push 1
mov ebp, dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x38]
push eax
call ebp
test eax, eax
je 0x7f91c880
lea eax, [esp + 0x34]
push 0
push 0
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x7f91c882
xor esi, esi
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
push 0x2001f
push 0
push 0
push 0
push 0x7f8f3180
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x7f91cc76
lea eax, [esp + 0x14c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x14b]
lea eax, [esp + eax + 0x14b]
cmp cl, 0x5c
je 0x7f91c904
lea ecx, [esp + 0x14c]
cmp eax, ecx
jb 0x7f91c904
mov cl, byte [eax]
cmp cl, 0x2e
jne 0x7f91c8fb
mov byte [eax], 0
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x7f91c8e6
inc eax
lea ecx, [esp + 0x250]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ecx
call esi
lea ecx, [esp + 0x14]
lea eax, [esp + 0x20]
lea edx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x254]
push eax
mov eax, dword [esp + 0x18]
push edx
push 0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x24], 4
push ecx
push eax
call ebp
test eax, eax
je 0x7f91c950
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x7f91c968
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x7f91cc76
lea eax, [esp + 0x14]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x104
push edx
push 0
push 0x7f8f31b0
push eax
call ebp
test eax, eax
je 0x7f91c99d
lea eax, [esp + 0x48]
push str.EXCHMEM.DLL
push eax
call esi
push 0x8000
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
call ebx
mov edi, eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [0x7f91f2a0], eax
call ebx
mov eax, dword [0x7f91f2a0]
test eax, eax
je 0x7f91cc67
lea eax, [esp + 0x14]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x104
push edx
push 0
push 0x7f8f31c0
push eax
call ebp
test eax, eax
je 0x7f91ca01
lea eax, [esp + 0x48]
push str.ExchMHeapCreate
push eax
call esi
lea eax, [esp + 0x48]
mov ecx, dword [0x7f91f2a0]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ecx
call edi
mov dword [0x7f91f270], eax
test eax, eax
jne 0x7f91ca30
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
jmp 0x7f91cc82
lea eax, [esp + 0x14]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x104
push edx
push 0
push 0x7f8f31d0
push eax
call ebp
test eax, eax
je 0x7f91ca65
lea eax, [esp + 0x48]
push str.ExchMHeapDestroy
push eax
call esi
lea eax, [esp + 0x48]
mov ecx, dword [0x7f91f2a0]
push eax
push ecx
call edi
mov dword [0x7f91f274], eax
test eax, eax
jne 0x7f91ca8e
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
jmp 0x7f91cc82
lea eax, [esp + 0x14]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x104
push edx
push 0
push 0x7f8f31e8
push eax
call ebp
test eax, eax
je 0x7f91cac3
lea eax, [esp + 0x48]
push str.ExchMHeapAlloc
push eax
call esi
lea eax, [esp + 0x48]
mov ecx, dword [0x7f91f2a0]
push eax
push ecx
call edi
mov dword [0x7f91f278], eax
test eax, eax
jne 0x7f91caec
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
jmp 0x7f91cc82
lea eax, [esp + 0x14]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x104
push edx
push 0
push 0x7f8f31f8
push eax
call ebp
test eax, eax
je 0x7f91cb21
lea eax, [esp + 0x48]
push str.ExchMHeapReAlloc
push eax
call esi
lea eax, [esp + 0x48]
mov ecx, dword [0x7f91f2a0]
push eax
push ecx
call edi
mov dword [0x7f91f27c], eax
test eax, eax
jne 0x7f91cb4a
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
jmp 0x7f91cc82
lea eax, [esp + 0x14]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x104
push edx
push 0
push 0x7f8f3210
push eax
call ebp
test eax, eax
je 0x7f91cb7f
lea eax, [esp + 0x48]
push str.ExchMHeapSize
push eax
call esi
lea eax, [esp + 0x48]
mov ecx, dword [0x7f91f2a0]
push eax
push ecx
call edi
mov dword [0x7f91f284], eax
test eax, eax
jne 0x7f91cba8
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
jmp 0x7f91cc82
lea eax, [esp + 0x14]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 0x104
push edx
push 0
push 0x7f8f3220
push eax
call ebp
test eax, eax
je 0x7f91cbdd
lea eax, [esp + 0x48]
push str.ExchMHeapFree
push eax
call esi
lea eax, [esp + 0x48]
mov ecx, dword [0x7f91f2a0]
push eax
push ecx
call edi
mov dword [0x7f91f280], eax
test eax, eax
jne 0x7f91cc03
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
jmp 0x7f91cc82
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 4
push edx
push 0
push 0x7f8f3230
push eax
call ebp
test eax, eax
je 0x7f91cc34
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push eax
call dword [0x7f91f270]
test eax, eax
je 0x7f91cc58
mov eax, 1
mov dword [0x7f91f268], eax
mov dword [0x7f91f26c], eax
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
jmp 0x7f91cc82
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
jmp 0x7f91cc7c
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [0x7f91f268]
test eax, eax
jne 0x7f91cd30
push 0x8000
call ebx
mov esi, eax
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov dword [0x7f91f2a4], eax
call ebx
mov eax, dword [0x7f91f2a4]
test eax, eax
je 0x7f91cd1b
push str.HeapCreate
push eax
call edi
push str.HeapDestroy
mov dword [0x7f91f288], eax
mov eax, dword [0x7f91f2a4]
push eax
call edi
push str.HeapAlloc
mov dword [0x7f91f28c], eax
mov eax, dword [0x7f91f2a4]
push eax
call edi
push str.HeapReAlloc
mov dword [0x7f91f290], eax
mov eax, dword [0x7f91f2a4]
push eax
call edi
push str.HeapFree
mov dword [0x7f91f294], eax
mov eax, dword [0x7f91f2a4]
push eax
call edi
push str.HeapSize
mov dword [0x7f91f298], eax
mov eax, dword [0x7f91f2a4]
push eax
call edi
mov dword [0x7f91f29c], eax
mov dword [0x7f91f268], 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x344
ret
mov dword [0x7f91f288], 0x7f91c6a0
mov dword [0x7f91f28c], 0x7f91c6c0
mov dword [0x7f91f290], 0x7f91c6d0
mov dword [0x7f91f294], 0x7f91c6e0
mov dword [0x7f91f298], 0x7f91c700
mov dword [0x7f91f29c], 0x7f91c710
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x344
ret