Function at 0x10320e7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x10619c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0x10]
lea edx, reloc.Secur32.dll_LsaDeregisterLogonProcess
push edx
push 0x20019
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1032356
push esi
mov esi, 0x104
push esi
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push ebx
push eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], ebx
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], esi
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push ebx
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push ebx
jmp 0x10322b0
mov eax, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
dec eax
je 0x1032226
dec eax
dec eax
je 0x10321b4
dec eax
jne 0x1032263
mov eax, dword [edi]
push 1
push dword [ebp - 0x108]
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
push 0xffffffffffffffff
push ecx
mov ecx, edi
call dword [eax + 0x4c]
jmp 0x1032255
mov ecx, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.01031c18
test eax, eax
je 0x10321e7
push dword [ebp - 0x314]
mov eax, dword [edi]
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
push ecx
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
push ecx
mov ecx, edi
call dword [eax + 0x40]
jmp 0x103221c
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push 0x1009394
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
cmp eax, ebx
je 0x1032204
xor ecx, ecx
mov word [eax], cx
mov eax, dword [edi]
push 1
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
push ecx
push ebx
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
push ecx
mov ecx, edi
call dword [eax + 0x38]
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
cmp eax, ebx
jmp 0x103225d
mov ecx, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
push esi
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
call fcn.01032068
test eax, eax
je 0x1032263
mov eax, dword [edi]
push 1
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
push ecx
push ebx
lea ecx, reloc.Secur32.dll_LsaDeregisterLogonProcess
push ecx
mov ecx, edi
call dword [eax + 0x38]
cmp eax, ebx
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], eax
je 0x103230d
inc dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
push esi
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push ebx
push eax
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], esi
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push ebx
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
lea eax, reloc.Secur32.dll_LsaDeregisterLogonProcess
push eax
push dword [ebp - 0x320]
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
je 0x103217f
cmp eax, 0x103
jne 0x10322d7
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], 1
jmp 0x103230d
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032307
test byte [eax + 0x1c], 4
je 0x1032307
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x1009368
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b900
mov dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess], ebx
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
test eax, eax
je 0x103234e
mov eax, dword [section..data]
cmp eax, section..data
je 0x103234e
test byte [eax + 0x1c], 4
je 0x103234e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x1009368
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b900
mov eax, dword [ebp - reloc.Secur32.dll_LsaDeregisterLogonProcess]
jmp 0x1032388
mov eax, dword [section..data]
cmp eax, section..data
je 0x1032386
test byte [eax + 0x1c], 4
je 0x1032386
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [section..data]
push 0x1009368
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101b900
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01041ea8
leave
ret 0xc