Function at 0x407310
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x449ed4
push edi
mov dword [esp + 0x28], 0
call ebx
mov esi, eax
test esi, esi
je 0x40739f
mov eax, dword [0x44e674]
test eax, eax
je 0x407355
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
lea edx, [esp + 0x5c]
push edx
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edi, dword [esp + 0x54]
neg eax
sbb eax, eax
and eax, edi
push eax
mov dword [0x44e674], eax
mov eax, dword [0x550b80]
push str.printout_smb_entry:_Unable_to_determine_size_needed_for_user_V_value._Error_was__s._n.
push eax
call fcn.0040d480
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040e300
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4073cf
push str.printout_smb_entry:_malloc_fail_for_user_entry._n
push 0x44a420
call fcn.0040e1d0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
lea edx, [esp + 0x10]
push edx
push ebp
lea eax, [esp + 0x28]
push eax
push 0
push 0x449ed4
push edi
call ebx
mov esi, eax
test esi, esi
je 0x40744e
mov eax, dword [0x44e674]
test eax, eax
je 0x4073fa
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
lea ecx, [esp + 0x5c]
push ecx
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x54]
mov edx, dword [0x550b80]
neg eax
sbb eax, eax
and eax, ecx
push eax
push str.printout_smb_entry:_Unable_to_read_user_V_value._Error_was__s._n.
push edx
mov dword [0x44e674], eax
call fcn.0040d480
add esp, 0xc
push ebp
call fcn.0040e3d0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov edi, dword [esp + 0x54]
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x68]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
push ebp
call fcn.00406ca0
add esp, 0x2c
test eax, eax
je 0x4074b4
mov eax, dword [0x550b80]
push edi
push str.Failed_to_parse_entry_for_RID__X_n
push eax
call fcn.0040d480
add esp, 0xc
push ebp
call fcn.0040e3d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov eax, dword [esp + 0x18]
push 0x3a
push eax
mov esi, eax
call fcn.0040de50
add esp, 8
test eax, eax
je 0x4074dc
mov byte [eax], 0x5f
inc eax
push 0x3a
push eax
call fcn.0040de50
add esp, 8
test eax, eax
jne 0x4074c9
push 0xa
push esi
call fcn.0040de50
add esp, 8
test eax, eax
je 0x4074fe
mov byte [eax], 0x5f
inc eax
push 0xa
push eax
call fcn.0040de50
add esp, 8
test eax, eax
jne 0x4074eb
push 0xd
push esi
call fcn.0040de50
add esp, 8
test eax, eax
je 0x407520
mov byte [eax], 0x5f
inc eax
push 0xd
push eax
call fcn.0040de50
add esp, 8
test eax, eax
jne 0x40750d
mov eax, dword [esp + 0x14]
push 0x3a
push eax
mov esi, eax
call fcn.0040de50
add esp, 8
test eax, eax
je 0x407548
mov byte [eax], 0x5f
inc eax
push 0x3a
push eax
call fcn.0040de50
add esp, 8
test eax, eax
jne 0x407535
push 0xa
push esi
call fcn.0040de50
add esp, 8
test eax, eax
je 0x40756a
mov byte [eax], 0x5f
inc eax
push 0xa
push eax
call fcn.0040de50
add esp, 8
test eax, eax
jne 0x407557
push 0xd
push esi
call fcn.0040de50
add esp, 8
test eax, eax
je 0x40758c
mov byte [eax], 0x5f
inc eax
push 0xd
push eax
call fcn.0040de50
add esp, 8
test eax, eax
jne 0x407579
mov eax, dword [esp + 0x50]
push 0x3a
push eax
mov esi, eax
call fcn.0040de50
add esp, 8
test eax, eax
je 0x4075b4
mov byte [eax], 0x5f
inc eax
push 0x3a
push eax
call fcn.0040de50
add esp, 8
test eax, eax
jne 0x4075a1
push 0xa
push esi
call fcn.0040de50
add esp, 8
test eax, eax
je 0x4075d6
mov byte [eax], 0x5f
inc eax
push 0xa
push eax
call fcn.0040de50
add esp, 8
test eax, eax
jne 0x4075c3
push 0xd
push esi
call fcn.0040de50
add esp, 8
test eax, eax
je 0x4075f8
mov byte [eax], 0x5f
inc eax
push 0xd
push eax
call fcn.0040de50
add esp, 8
test eax, eax
jne 0x4075e5
mov eax, dword [esp + 0x1c]
push 0x3a
push eax
mov esi, eax
call fcn.0040de50
add esp, 8
test eax, eax
je 0x407620
mov byte [eax], 0x5f
inc eax
push 0x3a
push eax
call fcn.0040de50
add esp, 8
test eax, eax
jne 0x40760d
push 0xa
push esi
call fcn.0040de50
add esp, 8
test eax, eax
je 0x407642
mov byte [eax], 0x5f
inc eax
push 0xa
push eax
call fcn.0040de50
add esp, 8
test eax, eax
jne 0x40762f
push 0xd
push esi
call fcn.0040de50
add esp, 8
test eax, eax
je 0x407664
mov byte [eax], 0x5f
inc eax
push 0xd
push eax
call fcn.0040de50
add esp, 8
test eax, eax
jne 0x407651
mov ecx, dword [esp + 0x18]
push edi
push ecx
push str._s:_d:
call fcn.0040eee0
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
je 0x4076a9
cmp eax, 0xffffffff
jne 0x40768b
push 0x449db4
jmp 0x4076ae
xor esi, esi
xor edx, edx
mov dl, byte [esp + esi + 0x2c]
push edx
push str._02X
call fcn.0040eee0
add esp, 8
inc esi
cmp esi, 0x10
jl 0x40768d
jmp 0x4076b6
push str.NO_PASSWORD
call fcn.0040eee0
add esp, 4
push 0x4493d0
call fcn.0040eee0
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
je 0x4076f5
cmp eax, 0xffffffff
jne 0x4076d7
push 0x449db4
jmp 0x4076fa
xor esi, esi
xor eax, eax
mov al, byte [esp + esi + 0x3c]
push eax
push str._02X
call fcn.0040eee0
add esp, 8
inc esi
cmp esi, 0x10
jl 0x4076d9
jmp 0x407702
push str.NO_PASSWORD
call fcn.0040eee0
add esp, 4
push 0x4493d0
call fcn.0040eee0
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add esp, 4
test cl, cl
je 0x407747
push eax
push 0x449d8c
call fcn.0040eee0
mov eax, dword [esp + 0x1c]
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x407747
mov ecx, dword [esp + 0x50]
cmp byte [ecx], 0
je 0x407747
push 0x449d88
call fcn.0040eee0
add esp, 4
mov eax, dword [esp + 0x50]
cmp byte [eax], 0
je 0x40775e
push eax
push 0x449d8c
call fcn.0040eee0
add esp, 8
push 0x4493d0
call fcn.0040eee0
mov eax, dword [esp + 0x20]
mov cl, byte [eax]
add esp, 4
test cl, cl
je 0x407783
push eax
push 0x449d8c
call fcn.0040eee0
add esp, 8
push 0x449d84
call fcn.0040eee0
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
call fcn.0040e3d0
mov eax, dword [esp + 0x54]
add esp, 4
push eax
call fcn.0040e3d0
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call fcn.0040e3d0
add esp, 4
push ebp
call fcn.0040e3d0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret