Function at 0x411e20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4576cc
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x32c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x344]
mov dword fs:[0], eax
mov eax, dword [esp + 0x358]
mov ebx, dword [esp + 0x354]
mov dword [esp + 0x30], eax
call fcn.004048c0
call fcn.004317f7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411e8c
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x34c], 0
call fcn.004316f5
push 0x30c
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.004413c0
add esp, 0xc
push ebx
lea ecx, [esp + 0x18]
call fcn.004027b0
mov edx, dword [esp + 0x14]
push 0x5c
push edx
mov byte [esp + 0x354], 1
call fcn.00440e55
add esp, 8
test eax, eax
jne 0x411f9b
or edi, 0xffffffff
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
push str.SystemCurrentControlSetControlPrintPrinters
lea ecx, [esp + 0x3c]
push 0x45ce28
push ecx
call ebp
add esp, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
lea eax, [esp + 0x40]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x41206a
mov edi, dword [esp + 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x20]
push ecx
push edi
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x2c]
push str.Share_Name
push eax
mov dword [esp + 0x38], 0x208
mov dword [esp + 0x40], 1
call esi
test eax, eax
je 0x411f66
mov byte [edi], 0
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push str.Attributes
push ecx
mov dword [esp + 0x38], 4
call esi
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41216d
sub eax, dword [esp + 0x14]
mov edi, eax
js 0x411eec
lea eax, [edi + 1]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401ea0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x350], 2
call fcn.00402020
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x34c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411ff3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [edi - 2]
push ecx
push 2
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
call fcn.00401910
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x350], 3
call fcn.00402020
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x34c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push edx
push str.SystemCurrentControlSetControlPrintPrinters
lea eax, [esp + 0x40]
push str._s___s__s
push eax
call ebp
add esp, 0x14
jmp 0x411f07
push 0x30c
lea eax, [esp + 0x38]
push 0
push eax
mov dword [esp + 0x24], 0
call fcn.004413c0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
push str.SystemCurrentControlSetControlPrintPrinters
push 0x80000002
call esi
test eax, eax
jne 0x4121f1
test edi, edi
jl 0x4120c2
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x3c]
push str.___s__s
push ecx
call ebp
jmp 0x4120d7
push 0x30c
push ebx
lea edx, [esp + 0x3c]
push 0x30c
push edx
call fcn.004435e7
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x40]
push ecx
push edx
call esi
test eax, eax
jne 0x4121c8
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
push eax
push edi
lea ecx, [esp + 0x30]
push ecx
push 0
push str.Share_Name
push edx
mov dword [esp + 0x38], 0x208
mov dword [esp + 0x40], 1
call esi
test eax, eax
je 0x412134
mov byte [edi], 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push str.Attributes
push eax
mov dword [esp + 0x38], 4
call esi
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x34c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412199
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x34c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4121c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x412243
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x34c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41220d
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x34c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412219
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x34c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412240
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x344]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.0044027a
add esp, 0x33c
ret