Function at 0x423190
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0e21
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x50c7c4]
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 ebx, edx
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x423383
cmp byte [ebp + 0x10], 0
je 0x4231f1
push 0
lea eax, [ebp - 0x78]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4233a1
lea eax, [ebp - 0x7c]
push eax
push 0x20019
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x42338a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x1dc]
mov esi, eax
call fcn.00407790
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004242a0
push esi
push ecx
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1cc]
call fcn.0040a2f0
mov edx, 0x4ef678
mov ecx, eax
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.004075f0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x30], 0x10
jb 0x42326d
push dword [ebp - 0x44]
call fcn.004a78e3
add esp, 4
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x1dc]
call fcn.004078f0
push eax
mov edx, str.In_getRegedit__HKEY_CURRENT_USER_RegOpenCurrentUser_error_:
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.0040a7d0
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 3
call fcn.00424920
push str.debuglog.txt
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00403c80
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x4232c1
mov eax, dword [eax]
push ecx
mov edx, esi
mov ecx, eax
call fcn.00424710
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x4232df
push dword [ebp - 0x2c]
call fcn.004a78e3
add esp, 4
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x423302
push dword [ebp - 0x74]
call fcn.004a78e3
add esp, 4
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x423325
push dword [ebp - 0x5c]
call fcn.004a78e3
add esp, 4
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jb 0x423348
push dword [ebp - 0x44]
call fcn.004a78e3
add esp, 4
push dword [ebp - 0x78]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x7c]
call esi
lea ecx, [ebp - 0x174]
mov dword [ebp - 4], 0xffffffff
call fcn.00407840
lea eax, [ebp - 0x174]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.004a6211
add esp, 4
xor al, al
jmp 0x42375a
push 0
lea eax, [ebp - 0x78]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x42358b
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x12c]
mov esi, eax
call fcn.00407790
mov edx, edi
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x44]
call fcn.004242a0
push esi
push ecx
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x11c]
call fcn.0040a2f0
mov edx, 0x4ef678
mov ecx, eax
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.004075f0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x30], 0x10
jb 0x423414
push dword [ebp - 0x44]
call fcn.004a78e3
add esp, 4
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004078f0
push eax
mov edx, str.RegCreateKeyEx_error_:
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
call fcn.0040a7d0
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 9
call fcn.00424920
push str.debuglog.txt
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x5c]
call fcn.00403c80
add esp, 4
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x423468
mov eax, dword [eax]
push ecx
mov edx, esi
mov ecx, eax
call fcn.00424710
add esp, 4
cmp dword [ebp - 0x48], 0x10
jb 0x423486
push dword [ebp - 0x5c]
call fcn.004a78e3
add esp, 4
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jb 0x4234a9
push dword [ebp - 0x74]
call fcn.004a78e3
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x4234cc
push dword [ebp - 0x2c]
call fcn.004a78e3
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x4234f3
push dword [ebp - 0x44]
call fcn.004a78e3
add esp, 4
push 0x4ef4d1
lea ecx, [ebp - 0x2c]
call fcn.00403030
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xc
call fcn.00408560
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x1c]
cmovae edx, eax
mov dword [ebp - 0xdc], 0
test esi, esi
je 0x423542
push esi
push edx
lea ecx, [ebp - 0x114]
call fcn.00409270
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x423550
push eax
call fcn.004a78e3
add esp, 4
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 0xffffffff
call fcn.00407840
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], vtable.std::ios_base.0
push eax
call fcn.004a6211
add esp, 4
xor al, al
jmp 0x42375a
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4235a6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423597
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x42374f
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea ecx, [ebp - 0x28c]
mov esi, eax
call fcn.00407790
mov edx, edi
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x44]
call fcn.004242a0
push esi
push ecx
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x27c]
call fcn.0040a2f0
mov edx, 0x4ef678
mov ecx, eax
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.004075f0
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x30], 0x10
jb 0x42362a
push dword [ebp - 0x44]
call fcn.004a78e3
add esp, 4
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28c]
call fcn.004078f0
push eax
mov edx, str.RegSetValueEx_error_:
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2c]
call fcn.0040a7d0
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x10
call fcn.00424920
push str.debuglog.txt
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x5c]
call fcn.00403c80
add esp, 4
mov byte [ebp - 4], 0x12
cmp dword [eax + 0x14], 0x10
jb 0x42367e
mov eax, dword [eax]
push ecx
mov edx, esi
mov ecx, eax
call fcn.00424710
add esp, 4
cmp dword [ebp - 0x48], 0x10
jb 0x42369c
push dword [ebp - 0x5c]
call fcn.004a78e3
add esp, 4
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jb 0x4236bf
push dword [ebp - 0x74]
call fcn.004a78e3
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x4236e2
push dword [ebp - 0x2c]
call fcn.004a78e3
add esp, 4
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x423705
push dword [ebp - 0x44]
call fcn.004a78e3
add esp, 4
push dword [ebp - 0x78]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call fcn.00407840
lea eax, [ebp - 0x224]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.004a6211
add esp, 4
xor al, al
jmp 0x42375a
push dword [ebp - 0x78]
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 - 0x14]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret