Function at 0x10004790
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1000acb3
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x1000e01c]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1000e01c]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov ebp, 1
push ebp
push ebx
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10004852
test byte [0x1000e784], 1
jne 0x10004823
or dword [0x1000e784], ebp
push 0x1000ad90
mov dword [0x1000e554], 0x1000b78c
mov dword [0x1000e558], 0xffffffff
call fcn.1000a217
add esp, 4
mov esi, dword [0x1000e554]
push 0x201
add esi, 8
call fcn.100036b0
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_Failed_to_RegOpenKeyExW_in_IsExistRegistry.
push 0x1000e554
call ecx
add esp, 0xc
xor eax, eax
jmp 0x10004ad8
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x2c]
push eax
push ebx
push str.BootExecute
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call fcn.1000a108
mov edx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x2c]
push ecx
push ebx
push str.BootExecute
push edx
call esi
cmp eax, ebx
je 0x1000490e
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
test byte [0x1000e784], 1
jne 0x100048df
or dword [0x1000e784], ebp
push 0x1000ad90
mov dword [0x1000e554], 0x1000b78c
mov dword [0x1000e558], 0xffffffff
call fcn.1000a217
add esp, 4
mov esi, dword [0x1000e554]
push 0x20c
add esi, 8
call fcn.100036b0
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_Failed_to_RegQueryValueExW_in_IsExistRegistry.
push 0x1000e554
call ecx
add esp, 0xc
xor eax, eax
jmp 0x10004ad8
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
push 0x1000bb98
lea ecx, [esp + 0x58]
mov dword [esp + 0x9c], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x98], 1
xor ebp, ebp
cmp dword [esp + 0x1c], ebx
jbe 0x10004996
jmp 0x10004950
movzx ax, byte [edi + ebp]
movzx eax, ax
cmp ax, bx
jne 0x10004982
cmp dword [esp + 0x68], ebx
je 0x10004971
lea ecx, [esp + 0x54]
push ecx
lea esi, [esp + 0x2c]
call fcn.10004c70
push 0x1000bb98
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
jmp 0x1000498d
push eax
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_]
add ebp, 2
cmp ebp, dword [esp + 0x1c]
jb 0x10004950
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
push str.ddmmain
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
xor edi, edi
mov byte [esp + 0x98], 2
mov dword [esp + 0x20], ebx
xor ebp, ebp
mov edi, edi
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x10004a7a
mov ecx, dword [esp + 0x30]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x10004a7a
lea eax, [esi + ebp]
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [esp + 0x74]
mov eax, 8
cmp dword [esp + 0x88], eax
jae 0x10004a11
lea ecx, [esp + 0x74]
cmp dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
jae 0x10004a20
lea eax, [esp + 0x3c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10004a46
cmp dx, bx
je 0x10004a42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10004a46
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x10004a20
xor eax, eax
jmp 0x10004a4b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
mov byte [esp + 0x98], 2
lea ecx, [esp + 0x38]
je 0x10004a6c
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add edi, 1
add ebp, 0x1c
jmp 0x100049c0
mov dword [esp + 0x20], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x70]
mov byte [esp + 0x98], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x98], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [esp + 0x98], 0xffffffff
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x10004ad4
mov edi, dword [esp + 0x30]
cmp esi, edi
je 0x10004acb
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x10004ab8
mov esi, dword [esp + 0x2c]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1000a10d
add esp, 0x88
ret