Function at 0x41f410
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e487c
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x53132c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
mov ebx, 7
xor edi, edi
xor edx, edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
mov word [ebp - 0x4c], dx
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], dx
lea edx, [ebp - 0x70]
push edx
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x4c]
push edx
push eax
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.0041e590
add esp, 0x10
test al, al
jne 0x41f4bd
mov esi, 8
cmp dword [ebp - 0x1c], esi
jb 0x41f499
mov eax, dword [ebp - 0x30]
push eax
call fcn.00458691
add esp, 4
mov dword [ebp - 0x20], edi
xor ecx, ecx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x38], esi
jb 0x41f4b6
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00458691
add esp, 4
xor al, al
jmp 0x41f783
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], edi
jae 0x41f4cc
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x78]
push edi
lea ecx, [ebp - 0x6c]
push ecx
push edi
push 2
push edi
push edi
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
je 0x41f5ee
push 0x9c40
mov ecx, 0x536e48
call fcn.0044af00
test al, al
je 0x41f5cc
push 1
push 2
lea ecx, [ebp - 0x114]
call fcn.004030f0
push edi
push ecx
lea eax, [ebp - 0x114]
push str.RegCreateKeyExW_failed_with:
push eax
mov byte [ebp - 4], 2
call fcn.00404c20
add esp, 0xc
mov ecx, eax
call fcn.0040d290
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x114]
call fcn.004031f0
push 0x75
push str.RegistryUtil.cpp
push eax
push 0x9c40
mov ecx, 0x536e48
mov byte [ebp - 4], 3
call fcn.0044af10
cmp dword [ebp - 0x54], 0x10
jb 0x41f56f
mov edx, dword [ebp - 0x68]
push edx
call fcn.00458691
add esp, 4
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x70], eax
mov dword [ebp + edx - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 4
call fcn.00403220
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0xc4]
mov dword [ebp + ecx - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push edx
mov dword [ebp - 0xc4], vtable.std::ios_base.0
call fcn.00447a81
add esp, 4
mov esi, 8
cmp dword [ebp - 0x1c], esi
jb 0x41f5e2
mov eax, dword [ebp - 0x30]
push eax
call fcn.00458691
add esp, 4
mov dword [ebp - 0x20], 0
jmp 0x41f49c
mov ebx, dword [ebp - 0x70]
test bl, 1
je 0x41f612
cmp dword [esi + 0x14], 8
jb 0x41f607
mov ecx, dword [esi]
mov esi, dword [esi + 0x10]
lea eax, [esi + esi + 1]
jmp 0x41f62e
mov ecx, esi
mov esi, dword [esi + 0x10]
lea eax, [esi + esi + 1]
jmp 0x41f62e
cmp dword [esi + 0x14], 8
jb 0x41f61a
mov esi, dword [esi]
push esi
call fcn.00458d50
mov dword [ebp - 0x74], eax
add esp, 4
lea ecx, [ebp - 0x74]
mov eax, 4
cmp dword [ebp - 0x1c], 8
mov edx, dword [ebp - 0x30]
jae 0x41f63a
lea edx, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x6c]
push ecx
push ebx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x41f737
push 0x9c40
mov ecx, 0x536e48
call fcn.0044af00
test al, al
je 0x41f737
push 1
push 2
lea ecx, [ebp - 0x114]
call fcn.004030f0
push esi
push ecx
lea ecx, [ebp - 0x114]
push str.RegSetValueExW_failed_with:
push ecx
mov byte [ebp - 4], 5
call fcn.00404c20
add esp, 0xc
mov ecx, eax
call fcn.0040d290
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x114]
call fcn.004031f0
push 0x8c
push str.RegistryUtil.cpp
push eax
push 0x9c40
mov ecx, 0x536e48
mov byte [ebp - 4], 6
call fcn.0044af10
cmp dword [ebp - 0x54], 0x10
jb 0x41f6da
mov eax, dword [ebp - 0x68]
push eax
call fcn.00458691
add esp, 4
mov edx, dword [ebp - 0x114]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x70], ecx
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 7
call fcn.00403220
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0xc4]
mov dword [ebp + edx - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push eax
mov dword [ebp - 0xc4], vtable.std::ios_base.0
call fcn.00447a81
add esp, 4
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov esi, 8
sete bl
cmp dword [ebp - 0x1c], esi
jb 0x41f75c
mov edx, dword [ebp - 0x30]
push edx
call fcn.00458691
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp dword [ebp - 0x38], esi
jb 0x41f781
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00458691
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004587b6
mov esp, ebp
pop ebp
ret