Function at 0x42200f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44fd3f
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x462700]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x462700]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov edi, edx
mov dword [esp + 0x10], ebx
jb 0x422065
mov eax, dword [eax]
push ebx
lea edx, [esp + 0x14]
push edx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x4221bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x14]
push eax
call fcn.00404d15
mov dword [esp + 0x110], ebx
push esi
push ecx
lea eax, [esp + 0x1c]
push 0x45665c
push eax
call fcn.0040616a
add esp, 0xc
push eax
call fcn.004096fb
push 0xf
pop esi
push 0x17
push str.path_manager::write_reg
lea ecx, [esp + 0xb4]
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.00407efb
mov byte [esp + 0x110], 1
push 0x10
push str.path_manager.cpp
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
call fcn.00407efb
mov byte [esp + 0x110], 2
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x18]
call fcn.00404dc4
mov byte [esp + 0x110], 3
push eax
lea eax, [esp + 0xb0]
push eax
push 0x22e
push 2
call fcn.004109b9
lea ecx, [esp + 0xd8]
mov ebx, eax
call fcn.004109f8
mov byte [esp + 0x110], 2
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xec]
call fcn.00407e53
mov byte [esp + 0x110], 1
push ebx
push esi
lea ecx, [esp + 0xd0]
call fcn.00407e53
mov byte [esp + 0x110], bl
push ebx
lea ecx, [esp + 0xb0]
push esi
call fcn.00407e53
or dword [esp + 0x110], 0xffffffff
lea ecx, [esp + 0x64]
call fcn.00404d81
lea ecx, [esp + 0x64]
call fcn.00407b8a
mov eax, esi
jmp 0x42231a
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4221c8
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x4221d2
mov ecx, dword [edi]
jmp 0x4221d4
mov ecx, edi
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push ecx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x422318
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x14]
push eax
call fcn.00404d15
mov dword [esp + 0x110], 4
push esi
push ecx
lea eax, [esp + 0x1c]
push 0x45665c
push eax
call fcn.0040616a
add esp, 0xc
push eax
call fcn.004096fb
push 0xf
pop esi
push 0x17
push str.path_manager::write_reg
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
call fcn.00407efb
mov byte [esp + 0x110], 5
push 0x10
push str.path_manager.cpp
lea ecx, [esp + 0xb4]
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.00407efb
mov byte [esp + 0x110], 6
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x18]
call fcn.00404dc4
mov byte [esp + 0x110], 7
push eax
lea eax, [esp + 0xcc]
push eax
push 0x23a
push 2
call fcn.004109b9
lea ecx, [esp + 0xbc]
mov ebx, eax
call fcn.004109f8
mov byte [esp + 0x110], 6
xor edi, edi
xor esi, esi
push edi
inc esi
push esi
lea ecx, [esp + 0xec]
call fcn.00407e53
mov byte [esp + 0x110], 5
push edi
push esi
lea ecx, [esp + 0xb4]
call fcn.00407e53
mov byte [esp + 0x110], 4
push edi
lea ecx, [esp + 0xcc]
jmp 0x422196
xor eax, eax
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.004313d1
mov esp, ebp
pop ebp
ret 8