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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10033f6e
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x10048024]
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 0x1003e710
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1002ca3f
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x170], eax
push 0x164
push 0x1003e774
call fcn.1002c2f0
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 0x1002d105
lea edx, [ebp - 0x54]
push edx
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1003e7b0
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 0x1002cad3
cmp dword [ebp - 0x1c], 2
jne 0x1002cad1
mov edx, dword [ebp - 0x54]
push edx
push 0
push 7
push 0
push 0x1003e7c8
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1002cad1
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 0x1003e7e0
call fcn.1002c2f0
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 0x1002d105
jmp 0x1002cad5
jmp 0x1002cae2
mov eax, 1
test eax, eax
jne 0x1002ca3f
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.1000f66d
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 0x1003e81c
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 0x1002cb86
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 0x1003e834
call fcn.1002c2f0
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 0x1002d105
lea ecx, [ebp - 0x50]
call fcn.10002cf0
mov dword [ebp - 4], 0
push 0x1003e874
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 0x1002cbb9
mov edx, dword [ebp - 0x7c]
add edx, 2
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x54]
jae 0x1002cc10
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 0x1002cc00
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 0x1002cbf0
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x50]
call fcn.10002db0
push 0x1003e878
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 0x1002cc0e
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 0x1002cbb0
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 0x1003e87c
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 0x1002cc5c
mov edx, dword [ebp - 0x84]
add edx, 1
mov dword [ebp - 0x84], edx
lea ecx, [ebp - 0x50]
call fcn.10002d40
cmp dword [ebp - 0x84], eax
jae 0x1002ccde
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x50]
call fcn.10002d80
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 0x1002ccc9
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 0x1002ccde
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 0x1002cc4d
cmp dword [ebp + 8], 0
je 0x1002ccf8
cmp dword [ebp - 0x58], 0
jne 0x1002ccf8
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x50]
call fcn.10002db0
jmp 0x1002cd46
cmp dword [ebp + 8], 0
je 0x1002cd46
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.10002d20
mov eax, dword [ebp - 0x138]
jmp 0x1002d105
cmp dword [ebp + 8], 0
jne 0x1002ce1f
cmp dword [ebp - 0x58], 0
je 0x1002ce1f
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x50]
call fcn.10003f10
lea ecx, [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x50]
call fcn.10005080
push eax
lea ecx, [ebp - 0xa8]
call fcn.10004570
movzx edx, al
test edx, edx
je 0x1002ce1f
lea ecx, [ebp - 0xa8]
call fcn.10002e80
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 0x1002cdff
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.10002e20
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], edx
jmp 0x1002ce0a
lea ecx, [ebp - 0xa8]
call fcn.10002ea0
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 0x1002cd69
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x50]
call fcn.10003f10
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x50]
call fcn.10005080
push eax
lea ecx, [ebp - 0xcc]
call fcn.10004570
movzx edx, al
test edx, edx
je 0x1002cedf
lea ecx, [ebp - 0xcc]
call fcn.10002e80
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 0x1002cebf
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.10002e20
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xc8], edx
jmp 0x1002ceca
lea ecx, [ebp - 0xcc]
call fcn.10002ea0
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 0x1002ce2e
mov dword [ebp - 0x54], 0
mov dword [ebp - 0xec], 0
jmp 0x1002cf01
mov eax, dword [ebp - 0xec]
add eax, 1
mov dword [ebp - 0xec], eax
lea ecx, [ebp - 0x50]
call fcn.10002d40
cmp dword [ebp - 0xec], eax
jae 0x1002cf59
mov ecx, dword [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x50]
call fcn.10002d80
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 0x1002cef2
mov ecx, dword [ebp - 0x54]
shl ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
push edx
call fcn.1000f66d
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.10002d40
sub eax, 1
mov dword [ebp - 0x10c], eax
jmp 0x1002cfbd
mov ecx, dword [ebp - 0x10c]
sub ecx, 1
mov dword [ebp - 0x10c], ecx
cmp dword [ebp - 0x10c], 0
jl 0x1002d042
mov edx, dword [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x50]
call fcn.10002d80
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 0x1002cfae
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0x1003e8a0
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 0x1002d0c5
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.10002d20
mov eax, dword [ebp - 0x164]
jmp 0x1002d105
mov ecx, dword [ebp - 0x16c]
call fcn.1002c670
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.10002d20
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.1000f672
mov esp, ebp
pop ebp
ret 4