Function at 0x405e40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495943
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], 0x49a3e0
mov dword [ebp - 0xf0], 0x49a278
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.00407860
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.00407a70
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 0x49a2cc
push edx
mov dword [ebp - 4], 3
mov dword [ebp - 0x3c], esi
call fcn.00408020
push eax
call fcn.004082f0
add esp, 0x10
push eax
call fcn.00408620
add esp, 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x100]
call fcn.00406f60
cmp dword [eax + 0x14], 8
jb 0x405f32
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 0x405f59
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480641
add esp, 4
test bl, bl
je 0x405f79
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], 0xffffffff
call fcn.00406440
mov eax, 1
jmp 0x40641a
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 0x406296
xor ebx, ebx
mov dword [ebp - 0x50], ebx
lea eax, [esi + ebx]
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x405fb3
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 0x40628f
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + ebx + 0x48]
add eax, ebx
add eax, 0x38
cmp dword [eax + 0x14], esi
jb 0x405fdd
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 0x49a2e0
push edx
call esi
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x4060fa
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + ebx + 0x2c]
add eax, ebx
add eax, 0x1c
cmp dword [eax + 0x14], 8
jb 0x406017
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push 0x49a2e8
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 0x406040
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 0x4060a2
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 0x40608d
mov eax, dword [eax]
lea edx, [ecx + ecx + 2]
push edx
push eax
mov eax, dword [ebp - 0x30]
push 1
push 0
push 0x49a2fc
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 0x4060f7
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 0x4060e2
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 0x406245
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 0x406245
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 0x406169
mov eax, dword [eax]
mov edi, dword [edx + 0x10]
mov ecx, edi
cmp ecx, edi
jae 0x406172
mov esi, edi
cmp edi, ebx
jb 0x40617a
mov esi, ebx
cmp dword [edx + 0x14], 8
jb 0x406184
mov ecx, dword [edx]
jmp 0x406186
mov ecx, edx
test esi, esi
je 0x4061ae
lea ebx, [ebx]
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x4061a3
add ecx, 2
add eax, 2
dec esi
jne 0x406190
jmp 0x4061ab
sbb eax, eax
and eax, 0xfffffffe
inc eax
jne 0x4061be
mov ebx, dword [ebp - 0x4c]
cmp edi, ebx
jae 0x4061b7
or eax, 0xffffffff
jmp 0x4061be
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 0x4061e7
cmp dword [eax + 0x14], 8
jb 0x4061d5
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 0x40620f
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x4061f3
mov eax, dword [eax]
cmp dword [edx + 0x14], esi
jb 0x4061fa
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 0x406151
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 0x40628f
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 0x405fa4
jmp 0x406296
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 0x4062f1
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax]
push eax
call fcn.00480641
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 0x4063ac
mov edi, dword [eax]
test edi, edi
je 0x4063a3
push 0
lea ecx, [ebp - 0x38]
call fcn.0047f848
mov eax, dword [edi + 4]
test eax, eax
je 0x406384
cmp eax, 0xffffffff
jae 0x406384
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.0047f870
and esi, edi
je 0x4063a3
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebx
call fcn.00480641
add esp, 4
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 4
call fcn.0047f8a1
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.0047f454
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.0048014c
mov esp, ebp
pop ebp
ret