Function at 0x4026a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4052c8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x409008]
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 ebx, edx
mov esi, ecx
cmp dword [esi + 0x14], 0x10
mov eax, esi
mov edi, dword [ebp + 8]
jb 0x4026dc
mov eax, dword [esi]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push 0
push 2
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402789
cmp dword [esi + 0x14], 0x10
jb 0x40270a
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x28]
push str.failed_to_create_key:__s
push eax
call fcn.004023d0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40272e
mov eax, dword [eax]
push 0x403b40
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, eax
call fcn.00403f00
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x402782
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402778
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402778
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004046b6
add esp, 8
xor al, al
jmp 0x4029a9
cmp dword [ebp - 0x48], 1
jne 0x40280c
cmp dword [esi + 0x14], 0x10
jb 0x402797
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x28]
push str.successed_to_create_key:__s
push eax
call fcn.004023d0
add esp, 0xc
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4027bb
mov eax, dword [eax]
push 0x403b40
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, eax
call fcn.00403f00
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x402842
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402838
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402838
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [esi + 0x14], 0x10
jb 0x402814
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x28]
push str.successed_to_open_key:__s
push eax
call fcn.004023d0
add esp, 0xc
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4027bb
jmp 0x4027b9
push edx
push ecx
call fcn.004046b6
add esp, 8
cmp dword [ebx + 0x10], 0
jne 0x402852
cmp dword [edi + 0x10], 0
je 0x40299e
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40285c
mov eax, dword [edi]
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x402866
mov ecx, dword [ebx]
push dword [edi + 0x10]
push eax
push 1
push 0
push ecx
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402917
cmp dword [edi + 0x14], 0x10
jb 0x402888
mov edi, dword [edi]
cmp dword [ebx + 0x14], 0x10
jb 0x402890
mov ebx, dword [ebx]
push edi
push ebx
lea eax, [ebp - 0x28]
push str.failed_to_set_value_entryName:__s__entryData:__s
push eax
call fcn.004023d0
add esp, 0x10
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4028b5
mov eax, dword [eax]
push 0x403b40
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, eax
call fcn.00403f00
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x402907
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4028fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402806
push edx
push ecx
call fcn.004046b6
add esp, 8
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4029a9
cmp dword [edi + 0x14], 0x10
jb 0x40291f
mov edi, dword [edi]
cmp dword [ebx + 0x14], 0x10
jb 0x402927
mov ebx, dword [ebx]
push edi
push ebx
lea eax, [ebp - 0x40]
push str.successed_to_set_value_entryName:__s__entryData:__s
push eax
call fcn.004023d0
add esp, 0x10
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40294c
mov eax, dword [eax]
push 0x403b40
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, eax
call fcn.00403f00
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40299e
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402994
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402806
push edx
push ecx
call fcn.004046b6
add esp, 8
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
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.004042fa
mov esp, ebp
pop ebp
ret