Function at 0x10031c90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10051eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1006b2c8]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006b2c8]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x6c]
push str.GetStringSD_____Start
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ebx
call fcn.10034080
xor edi, edi
add esp, 4
cmp esi, edi
mov dword [ebp], edi
mov dword [ebx], edi
jne 0x10031cf6
lea eax, [edi + 0x57]
jmp 0x10031f9c
push str.advapi32.dll
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [esp + 0x28], eax
je 0x10031f7e
push str.ConvertSecurityDescriptorToStringSecurityDescriptorW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x10031e2b
mov dword [esp + 0x20], edi
lea eax, [esp + 0x30]
push eax
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0xf000c
call fcn.10031c20
cmp eax, edi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
jne 0x10031e02
cmp esi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
je 0x10031dfa
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0xf
push 1
push eax
call ebx
test eax, eax
je 0x10031dee
call fcn.10034d20
mov ecx, dword [eax + 0x120]
shr ecx, 0xa
test cl, 1
je 0x10031dd8
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x10031dee
push eax
call fcn.10031ad0
add esp, 4
cmp eax, 1
jne 0x10031dd8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0xe
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov edx, dword [esi]
push 1
push edx
call ebx
cmp eax, edi
je 0x10031dee
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [ebp], eax
mov eax, dword [esp + 0x24]
lea edx, [ecx + ecx]
mov dword [eax], edx
jmp 0x10031e02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
jmp 0x10031e02
mov dword [esp + 0x1c], 1
cmp esi, edi
mov dword [esp + 0x64], 0xffffffff
je 0x10031f71
push esi
call fcn.10037e4b
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10031f88
call fcn.10034d20
mov ecx, dword [eax + 0x120]
shr ecx, 7
test cl, 1
je 0x10031f67
mov dword [esp + 0x14], edi
push str.SYSTEMCurrentControlSetControlPrintPrinters
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], 1
call fcn.100018f0
push 0x5c
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 2
call fcn.10001540
push esi
lea ecx, [esp + 0x40]
call fcn.100018c0
push 0x5c
push 1
lea ecx, [esp + 0x44]
call fcn.10001540
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x10031e94
lea eax, [esp + 0x40]
push 0x20019
push eax
push SysStringLen
lea ecx, [esp + 0x20]
call fcn.10006400
cmp eax, edi
jne 0x10031f3a
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x18]
push edx
push edi
lea eax, [esp + 0x28]
push eax
push edi
push str.Security
push ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
call ebp
cmp eax, edi
jne 0x10031f31
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x10031f31
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x10031f31
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x28]
push edx
push edi
push str.Security
push ebx
call ebp
cmp eax, edi
jne 0x10031f22
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [eax], esi
mov dword [edx], ecx
jmp 0x10031f31
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x14]
call fcn.100057e0
lea ecx, [esp + 0x3c]
call fcn.10001400
mov eax, dword [esp + 0x14]
cmp eax, edi
mov dword [esp + 0x64], 0xffffffff
je 0x10031f71
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10031f88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10031f88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x1c]
push esi
push str.GetStringSD_____End__d_
call fcn.10034080
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1003754f
add esp, 0x54
ret