Function at 0x405d00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495ba3
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x4a93dc]
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
xor esi, esi
mov dword [ebp - 0x38], esi
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x100], 0x49a3d8
mov dword [ebp - 0xf0], 0x49a3e0
mov dword [ebp - 0xa0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], esi
mov ebx, 1
push ecx
mov dword [ebp - 0x38], ebx
call fcn.004077f0
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xe8]
push ecx
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.00407b20
mov dword [ebp - 0xe8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], esi
push edi
push ecx
lea edx, [ebp - 0xf0]
push 0x49a2c4
push edx
mov dword [ebp - 4], 3
mov dword [ebp - 0x3c], esi
call fcn.004080f0
push eax
call fcn.004083c0
add esp, 0x10
push eax
call fcn.004086f0
add esp, 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x100]
call fcn.00406ef0
cmp dword [eax + 0x14], 8
jb 0x405df2
mov eax, dword [eax]
lea ecx, [ebp - 0x58]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
setne bl
cmp dword [ebp - 0x18], 8
jb 0x405e19
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480861
add esp, 4
test bl, bl
je 0x405e39
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], 0xffffffff
call fcn.00406300
mov eax, 1
jmp 0x4062da
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x40], esi
mov esi, dword [edi + 0x1c]
sub ecx, esi
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x406156
xor ebx, ebx
mov dword [ebp - 0x50], ebx
lea eax, [esi + ebx]
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x405e73
mov eax, dword [eax]
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x30]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40614f
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + ebx + 0x48]
add eax, ebx
add eax, 0x38
cmp dword [eax + 0x14], esi
jb 0x405e9d
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push 0x49a2d8
push edx
call esi
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x405fba
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + ebx + 0x2c]
add eax, ebx
add eax, 0x1c
cmp dword [eax + 0x14], 8
jb 0x405ed7
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push 0x49a2e0
push edx
call esi
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + ebx + 0x64]
add eax, ebx
add eax, 0x54
cmp dword [eax + 0x14], 8
jb 0x405f00
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push str.lang
push edx
call esi
mov ecx, dword [edi + 0x1c]
add ecx, ebx
mov eax, dword [ecx + 0x80]
add ecx, 0x70
push 0x49a07c
xor edi, edi
call fcn.00402aa0
test eax, eax
je 0x405f62
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + ebx + 0x80]
add eax, ebx
add eax, 0x70
cmp dword [eax + 0x14], 8
jb 0x405f4d
mov eax, dword [eax]
lea edx, [ecx + ecx + 2]
push edx
push eax
mov eax, dword [ebp - 0x30]
push 1
push 0
push 0x49a2f4
push eax
call esi
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx + 0x1c]
add ecx, ebx
mov eax, dword [ecx + 0x9c]
add ecx, 0x8c
push 0x49a07c
xor edi, edi
call fcn.00402aa0
test eax, eax
je 0x405fb7
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ebx + 0x9c]
add eax, ebx
add eax, 0x8c
cmp dword [eax + 0x14], 8
jb 0x405fa2
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push str.mode
push edx
call esi
mov edi, dword [ebp - 0x34]
mov eax, dword [edi + 0x1c]
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x44]
push ecx
push str.components
lea esi, [eax + ebx + 0xa8]
push edx
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x406105
mov esi, dword [esi]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
test ecx, ecx
jle 0x406105
mov dword [ebp - 0x48], 0
mov eax, dword [edi + 0x1c]
mov edx, dword [ebp - 0x48]
add eax, ebx
mov ebx, dword [eax + 0x10]
add edx, esi
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x4c], ebx
jb 0x406029
mov eax, dword [eax]
mov edi, dword [edx + 0x10]
mov ecx, edi
cmp ecx, edi
jae 0x406032
mov esi, edi
cmp edi, ebx
jb 0x40603a
mov esi, ebx
cmp dword [edx + 0x14], 8
jb 0x406044
mov ecx, dword [edx]
jmp 0x406046
mov ecx, edx
test esi, esi
je 0x40606e
lea ebx, [ebx]
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x406063
add ecx, 2
add eax, 2
dec esi
jne 0x406050
jmp 0x40606b
sbb eax, eax
and eax, 0xfffffffe
inc eax
jne 0x40607e
mov ebx, dword [ebp - 0x4c]
cmp edi, ebx
jae 0x406077
or eax, 0xffffffff
jmp 0x40607e
xor eax, eax
cmp edi, ebx
setne al
mov ecx, dword [edx + 0x2c]
test eax, eax
sete al
test al, al
lea eax, [edx + 0x1c]
je 0x4060a7
cmp dword [eax + 0x14], 8
jb 0x406095
mov eax, dword [eax]
mov edx, dword [ebp - 0x44]
push ecx
push eax
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
jmp 0x4060cf
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x4060b3
mov eax, dword [eax]
cmp dword [edx + 0x14], esi
jb 0x4060ba
mov edx, dword [edx]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push edx
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x38]
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov edi, dword [ebp - 0x54]
add dword [ebp - 0x48], 0x38
mov ebx, dword [ebp - 0x50]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [ebp - 0x54], edi
cmp edi, eax
mov edi, dword [ebp - 0x34]
jl 0x406011
mov ecx, dword [ebp - 0x44]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [ebp - 0x30]
push edx
call esi
cmp dword [ebp - 0x3c], 0
jne 0x40614f
mov esi, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
inc dword [ebp - 0x40]
sub ecx, esi
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add ebx, 0xb8
add eax, edx
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x40], eax
jl 0x405e64
jmp 0x406156
mov dword [ebp - 0x3c], 3
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0xa0]
mov dword [ebp - 0x54], edx
mov dword [ebp + ecx - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 4], 4
test byte [ebp - 0xa8], 1
lea edx, [ebp - 0xe8]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0xe8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
je 0x4061b1
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax]
push eax
call fcn.00480861
add esp, 4
mov ecx, dword [ebp - 0xd8]
mov dword [ecx], 0
mov edx, dword [ebp - 0xc8]
mov dword [edx], 0
mov eax, dword [ebp - 0xb8]
mov dword [eax], 0
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], 0
mov edx, dword [ebp - 0xc4]
mov dword [edx], 0
mov eax, dword [ebp - 0xb4]
mov dword [eax], 0
and dword [ebp - 0xa8], 0xfffffffe
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xe8], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xb0]
mov ebx, eax
test eax, eax
je 0x40626c
mov edi, dword [eax]
test edi, edi
je 0x406263
push 0
lea ecx, [ebp - 0x38]
call fcn.0047fa68
mov eax, dword [edi + 4]
test eax, eax
je 0x406244
cmp eax, 0xffffffff
jae 0x406244
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x38]
not esi
call fcn.0047fa90
and esi, edi
je 0x406263
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebx
call fcn.00480861
add esp, 4
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 4
call fcn.0047fac1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx + 4]
mov dword [ebp + edx - method.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0xf0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xa0]
mov dword [ebp + eax - method.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
push ecx
mov dword [ebp - 0xa0], vtable.std::ios_base.0
call fcn.0047f674
mov eax, dword [ebp - 0x3c]
add esp, 4
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.0048036c
mov esp, ebp
pop ebp
ret