Function at 0x40a410
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fd5c
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64c], edx
mov ebx, ecx
mov dword [ebp - 0x648], ebx
push 0x618
lea eax, [ebp - 0x628]
mov dword [ebp - 0x630], 0
push 0
push eax
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x62c], 0
call fcn.0044f210
add esp, 0xc
mov dword [ebp - 0x640], 0
call fcn.004339ad
mov ecx, eax
test ecx, ecx
jne 0x40a49f
push 0x80004005
call fcn.00401e60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x644], esi
push 0x618
lea eax, [ebp - 0x628]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea ecx, [ebp - 0x634]
push ebx
call fcn.00401ff0
mov byte [ebp - 4], 1
push 0x5c
push dword [ebp - 0x634]
call fcn.0044e876
mov edi, eax
add esp, 8
or ebx, 0xffffffff
test edi, edi
jne 0x40a5cf
or edi, ebx
push dword [ebp - 0x648]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x628]
push 0x4864b0
push 0x485f30
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x630]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x628]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a69b
mov edi, dword [ebp - 0x64c]
lea eax, [ebp - 0x62c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push edi
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x62c], 0x208
push eax
push 0
push str.Share_Name
push dword [ebp - 0x630]
mov dword [ebp - 0x63c], 1
call ebx
test eax, eax
je 0x40a58a
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x62c], 4
push eax
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x63c]
push eax
push 0
push str.Attributes
push dword [ebp - 0x630]
call ebx
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x640]
jmp 0x40a7e0
sub edi, dword [ebp - 0x634]
sar edi, 1
js 0x40a4f9
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x634]
call fcn.0040d140
push eax
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 2
call fcn.00402a50
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x638]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a624
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi - 2]
push eax
push 2
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x634]
call fcn.00405640
push eax
lea ecx, [ebp - 0x634]
mov byte [ebp - 4], 3
call fcn.00402a50
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x638]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a66d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x644]
lea eax, [ebp - 0x628]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push esi
push dword [ebp - 0x634]
push 0x4864b0
push str._s___s__s
push eax
call ebx
add esp, 0x14
jmp 0x40a51b
push 0x618
lea eax, [ebp - 0x628]
mov dword [ebp - 0x638], 0
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [ebp - 0x630]
push eax
push 0x20019
push 0
push 0x4864b0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a7dd
lea eax, [ebp - 0x628]
test edi, edi
js 0x40a6fc
push esi
push dword [ebp - 0x634]
push str.___s__s
push eax
call ebx
jmp 0x40a712
push 0x30c
push dword [ebp - 0x648]
push 0x30c
push eax
call fcn.00456af1
add esp, 0x10
lea eax, [ebp - 0x638]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a7d1
mov edi, dword [ebp - 0x64c]
lea eax, [ebp - 0x62c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push edi
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x62c], 0x208
push eax
push 0
push str.Share_Name
push dword [ebp - 0x638]
mov dword [ebp - 0x63c], 1
call ebx
test eax, eax
je 0x40a785
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x62c], 4
push eax
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x63c]
push eax
push 0
push str.Attributes
push dword [ebp - 0x638]
call ebx
push dword [ebp - 0x638]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x630]
call edi
mov edi, dword [ebp - 0x640]
jmp 0x40a7e0
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or edi, 0xffffffff
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x634]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a804
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40a820
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret