Function at 0x40b7a3
Capabilities:
Set registry value

Disassembly:
jmp 0x4a1c70
sub esp, 0x300
mov eax, dword [0x589780]
xor eax, esp
mov dword [esp + 0x2fc], eax
push ebx
mov ebx, dword [esp + 0x310]
push ebp
mov ebp, dword [esp + 0x30c]
push esi
push edi
mov edi, dword [esp + 0x318]
mov byte [esp + 0x1c], 0
call fcn.00403783
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.0040c383
lea eax, [esp + 0x28]
test esi, esi
push eax
cmove ebx, edi
push ebx
call fcn.0040463d
test eax, eax
jne 0x4a1cd6
lea ecx, [esp + 0x28]
call fcn.004042ff
xor eax, eax
jmp 0x4a2032
call fcn.00404d2c
lea eax, [esp + 0x100]
push eax
push 0x40
lea eax, [esp + 0x48]
push eax
push 0x566518
call fcn.0040a290
push eax
call fcn.00403481
lea eax, [esp + 0x18]
push eax
push 0xf003f
push 0
lea eax, [esp + 0x10c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a2022
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ebp
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a2004
lea eax, [esp + 0x80]
mov dword [esp + 0x10], 1
push eax
push 0x40
lea eax, [esp + 0x48]
push eax
push 0x5664ec
call fcn.0040a290
push eax
call fcn.00403481
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x4a1ff3
mov dword [esp + 0x10], eax
lea eax, [esp + 0x80]
push eax
push 0x40
lea eax, [esp + 0x48]
push eax
push 0x5664f4
call fcn.0040a290
push eax
call fcn.00403481
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x4a1ff3
lea eax, [esp + 0x80]
mov dword [esp + 0x10], 4
push eax
push 0x40
lea eax, [esp + 0x48]
push eax
push 0x566504
call fcn.0040a290
push eax
call fcn.00403481
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x4a1ff3
lea ecx, [esp + 0x28]
mov dword [esp + 0x100], 0x3f005c
mov dword [esp + 0x104], 0x5c003f
mov word [esp + 0x108], ax
call fcn.004026a3
push eax
lea eax, [esp + 0x104]
push 0x105
push eax
call fcn.00404755
add esp, 0xc
lea eax, [esp + 0x80]
push eax
push 0x40
lea eax, [esp + 0x48]
push eax
push 0x56650c
call fcn.0040a290
push eax
call fcn.00403481
lea ecx, [esp + 0x100]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a1e93
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x104]
push eax
push 1
push 0
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x4a1ff3
lea eax, [esp + 0x80]
mov dword [esp + 0x100], 0x5c
push eax
push 0x40
lea eax, [esp + 0x48]
push eax
push str.02____t846__0U
call fcn.0040a290
push eax
call fcn.00403481
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x104]
push 0x105
push eax
call fcn.00404755
push 0x56656c
lea eax, [esp + 0x110]
push 0x105
push eax
call fcn.00404755
add esp, 0x18
lea eax, [esp + 0x80]
push eax
push 0x40
lea eax, [esp + 0x48]
push eax
push 0x566518
call fcn.0040a290
push eax
call fcn.00403481
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x104]
push 0x105
push eax
call fcn.00404755
push 0x56656c
lea eax, [esp + 0x110]
push 0x105
push eax
call fcn.00404755
push ebp
lea eax, [esp + 0x11c]
push 0x105
push eax
call fcn.00404755
lea eax, [esp + 0x124]
add esp, 0x24
mov ecx, eax
mov dword [esp + 0x24], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a1fa0
sub ecx, edx
sar ecx, 1
push 0
push 0x5664b4
lea eax, [ecx + ecx]
mov word [esp + 0x28], ax
add eax, 2
mov word [esp + 0x2a], ax
call fcn.004072fc
test eax, eax
je 0x4a1ff3
lea ecx, [esp + 0x20]
push ecx
call eax
mov ecx, eax
shr eax, 0x1f
xor al, 1
mov dword [esp + 0x1c], eax
je 0x4a1fe7
push 0
jmp 0x4a1ff1
push ecx
call fcn.004093d6
add esp, 4
push eax
call edi
call ebx
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call edi
call ebx
push ebp
push dword [esp + 0x1c]
mov esi, eax
call fcn.0040bc08
add esp, 8
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call edi
lea ecx, [esp + 0x28]
call fcn.004042ff
mov ecx, dword [esp + 0x1c]
movzx eax, cl
mov ecx, dword [esp + 0x30c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040512d
add esp, 0x300
ret 0xc