Function at 0x1002e730
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035e62
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 3
push 0
push 0x10041ac8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1002e7df
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x170], eax
push 0x164
push 0x10041b2c
call fcn.1002e090
add esp, 8
push eax
push str._s:_Failed_to_RegOpenKeyExW_in_UpdateRegistry.
mov ecx, dword [ebp - 0x170]
push ecx
mov edx, dword [ebp - 0x170]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0xc
xor eax, eax
jmp 0x1002eea5
lea edx, [ebp - 0x54]
push edx
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x10041b68
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1002e873
cmp dword [ebp - 0x1c], 2
jne 0x1002e871
mov edx, dword [ebp - 0x54]
push edx
push 0
push 7
push 0
push 0x10041b80
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1002e871
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x174], eax
push 0x172
push 0x10041b98
call fcn.1002e090
add esp, 8
push eax
push str._s:_Failed_to_RegSetValueEx_in_UpdateRegistry.
mov edx, dword [ebp - 0x174]
push edx
mov eax, dword [ebp - 0x174]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
xor eax, eax
jmp 0x1002eea5
jmp 0x1002e875
jmp 0x1002e882
mov eax, 1
test eax, eax
jne 0x1002e7df
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.1000f6bd
add esp, 4
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0x10041bd4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1002e926
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x178], eax
push 0x184
push 0x10041bec
call fcn.1002e090
add esp, 8
push eax
push str._s:_Failed_to_RegQueryValueExW_in_UpdateRegistry.
mov ecx, dword [ebp - 0x178]
push ecx
mov edx, dword [ebp - 0x178]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0xc
xor eax, eax
jmp 0x1002eea5
lea ecx, [ebp - 0x50]
call fcn.10006890
mov dword [ebp - 4], 0
push 0x10041c2c
lea ecx, [ebp - 0x78]
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 [ebp - 4], 1
mov dword [ebp - 0x7c], 0
jmp 0x1002e959
mov edx, dword [ebp - 0x7c]
add edx, 2
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x54]
jae 0x1002e9b0
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x7c]
movzx dx, byte [ecx]
mov word [ebp - 0x80], dx
movzx eax, word [ebp - 0x80]
test eax, eax
jne 0x1002e9a0
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::size_void_const]
test eax, eax
je 0x1002e990
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x50]
call fcn.10002ea0
push 0x10041c30
lea ecx, [ebp - 0x78]
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 0x1002e9ae
mov dx, word [ebp - 0x80]
push edx
lea ecx, [ebp - 0x78]
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_]
jmp 0x1002e950
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
push 0x10041c34
lea ecx, [ebp - 0x40]
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 [ebp - 4], 2
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x84], 0
jmp 0x1002e9fc
mov edx, dword [ebp - 0x84]
add edx, 1
mov dword [ebp - 0x84], edx
lea ecx, [ebp - 0x50]
call fcn.10002e30
cmp dword [ebp - 0x84], eax
jae 0x1002ea7e
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x50]
call fcn.10002e70
push eax
lea ecx, [ebp - 0xa0]
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 byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.ntdll.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x1002ea69
mov dword [ebp - 0x58], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
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_]
jmp 0x1002ea7e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
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_]
jmp 0x1002e9ed
cmp dword [ebp + 8], 0
je 0x1002ea98
cmp dword [ebp - 0x58], 0
jne 0x1002ea98
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x50]
call fcn.10002ea0
jmp 0x1002eae6
cmp dword [ebp + 8], 0
je 0x1002eae6
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x138], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
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 byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
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 [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10002e10
mov eax, dword [ebp - 0x138]
jmp 0x1002eea5
cmp dword [ebp + 8], 0
jne 0x1002ebbf
cmp dword [ebp - 0x58], 0
je 0x1002ebbf
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x50]
call fcn.10005860
lea ecx, [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x50]
call fcn.10003fe0
push eax
lea ecx, [ebp - 0xa8]
call fcn.10002fb0
movzx edx, al
test edx, edx
je 0x1002ebbf
lea ecx, [ebp - 0xa8]
call fcn.10002f70
push eax
lea ecx, [ebp - 0xc4]
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 byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.ntdll.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x1002eb9f
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x148]
push edx
lea ecx, [ebp - 0x50]
call fcn.10002f10
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], edx
jmp 0x1002ebaa
lea ecx, [ebp - 0xa8]
call fcn.10002f90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
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_]
jmp 0x1002eb09
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x50]
call fcn.10005860
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x50]
call fcn.10003fe0
push eax
lea ecx, [ebp - 0xcc]
call fcn.10002fb0
movzx edx, al
test edx, edx
je 0x1002ec7f
lea ecx, [ebp - 0xcc]
call fcn.10002f70
push eax
lea ecx, [ebp - 0xe8]
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 byte [ebp - 4], 5
push str.autocheck
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.ntdll.dll_wcsstr]
add esp, 8
test eax, eax
je 0x1002ec5f
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
lea edx, [ebp - 0x158]
push edx
lea ecx, [ebp - 0x50]
call fcn.10002f10
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xc8], edx
jmp 0x1002ec6a
lea ecx, [ebp - 0xcc]
call fcn.10002f90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe8]
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_]
jmp 0x1002ebce
mov dword [ebp - 0x54], 0
mov dword [ebp - 0xec], 0
jmp 0x1002eca1
mov eax, dword [ebp - 0xec]
add eax, 1
mov dword [ebp - 0xec], eax
lea ecx, [ebp - 0x50]
call fcn.10002e30
cmp dword [ebp - 0xec], eax
jae 0x1002ecf9
mov ecx, dword [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x50]
call fcn.10002e70
push eax
lea ecx, [ebp - 0x108]
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 byte [ebp - 4], 6
lea ecx, [ebp - 0x108]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::size_void_const]
mov edx, dword [ebp - 0x54]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x108]
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_]
jmp 0x1002ec92
mov ecx, dword [ebp - 0x54]
shl ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
push edx
call fcn.1000f6bd
add esp, 4
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x54]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x50]
call fcn.10002e30
sub eax, 1
mov dword [ebp - 0x10c], eax
jmp 0x1002ed5d
mov ecx, dword [ebp - 0x10c]
sub ecx, 1
mov dword [ebp - 0x10c], ecx
cmp dword [ebp - 0x10c], 0
jl 0x1002ede2
mov edx, dword [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x50]
call fcn.10002e70
push eax
lea ecx, [ebp - 0x128]
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 byte [ebp - 4], 7
lea ecx, [ebp - 0x128]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax*2]
push edx
call dword [sym.imp.ntdll.dll_wcscpy]
add esp, 8
lea ecx, [ebp - 0x128]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::size_void_const]
add eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x20]
mov word [ecx + eax*2], 0
mov edx, dword [ebp - 0x5c]
add edx, 1
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x128]
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_]
jmp 0x1002ed4e
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0x10041c58
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x160], edx
mov eax, dword [ebp - 0x160]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x1002ee65
mov dword [ebp - 0x164], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
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 byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
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 [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10002e10
mov eax, dword [ebp - 0x164]
jmp 0x1002eea5
mov ecx, dword [ebp - 0x16c]
call fcn.1002e410
mov dword [ebp - 0x168], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
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 byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
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 [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10002e10
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret 4