Function at 0x405a27
Capabilities:
Set registry value

Disassembly:
push 0x234
mov eax, 0x43f3e3
call fcn.004207e7
mov dword [ebp - 0x22c], ecx
xor ebx, ebx
mov dword [ebp - 0x220], ebx
call fcn.0040133b
push eax
lea ecx, [ebp - 0x23c]
call fcn.00402b5c
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.00421f80
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x405f5d
mov esi, 0x104
cmp eax, esi
jae 0x405f5d
lea ecx, [ebp - 0x228]
call fcn.0041e04b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
push dword [eax]
call fcn.00402b0d
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00401745
push esi
lea ecx, [ebp - 0x224]
call fcn.00402d11
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push eax
call edi
push ecx
lea ecx, [ebp - 0x224]
call fcn.004064ad
push ebx
mov edx, str.WBEbRhYVQEVBDkYQE0YOF0UVFQ4bFkcbDhAQGhsbFkEUERVBG14
lea ecx, [ebp - 0x234]
call fcn.0041b686
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x224]
mov esi, dword [eax]
mov dword [esp], 0x104
call fcn.00402d11
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ecx
lea ecx, [ebp - 0x224]
call fcn.004064ad
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x234]
lea ecx, [ecx - 0x10]
call fcn.00401745
push 0x104
lea ecx, [ebp - 0x224]
call fcn.00402d11
push eax
call edi
push ecx
lea ecx, [ebp - 0x224]
call fcn.004064ad
push dword [ebp - 0x224]
lea eax, [ebp - 0x238]
push eax
call fcn.00405f73
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x238]
cmp dword [eax - 0xc], ebx
je 0x405f41
push ebx
mov edx, str.AQZQAQMMVk1KTVBXQk9P
lea ecx, [ebp - 0x228]
call fcn.0041b686
pop ecx
mov byte [ebp - 4], 6
push dword [ebp - 0x238]
push dword [eax]
lea eax, [ebp - 0x23c]
push eax
call fcn.00402eae
mov byte [ebp - 4], 5
add esp, 0xc
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00401745
push ebx
mov edx, 0x44e068
lea ecx, [ebp - 0x228]
call fcn.0041b686
pop ecx
push ebx
lea ecx, [ebp - 0x220]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [eax]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [ebp - 0x228]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.00401745
test esi, esi
jne 0x405f41
push ebx
mov edx, str.YE9MVkcDak1QV0JPT0ZR
lea ecx, [ebp - 0x228]
call fcn.0041b686
pop ecx
push ebx
mov edx, str.Fw0RDRMNGw
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x234]
call fcn.0041b686
pop ecx
push ebx
mov edx, 0x44e1a4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x21c]
call fcn.0041b686
mov edi, dword [ebp - 0x22c]
pop ecx
mov ecx, eax
mov edx, dword [edi + 8]
mov eax, dword [edx - 0xc]
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ecx]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x21c]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ecx - 0x10]
inc bl
call fcn.00401745
push esi
mov edx, str.Z0pQU09CWnVGUVBKTE0
lea ecx, [ebp - 0x21c]
call fcn.0041b686
pop ecx
mov edx, eax
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push esi
push dword [edx]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x21c]
neg eax
sbb al, al
inc al
and al, bl
lea ecx, [ecx - 0x10]
mov dword [ebp - 0x22c], eax
call fcn.00401745
push esi
mov edx, str.c1ZBT0pQS0ZR
lea ecx, [ebp - 0x21c]
call fcn.0041b686
pop ecx
mov edx, eax
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push esi
push dword [edx]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb al, al
inc al
mov ecx, dword [ebp - 0x21c]
mov ebx, dword [ebp - 0x22c]
and bl, al
lea ecx, [ecx - 0x10]
call fcn.00401745
push esi
mov edx, str.ak1QV0JPT29MQEJXSkxN
lea ecx, [ebp - 0x21c]
call fcn.0041b686
pop ecx
mov edx, eax
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push esi
push dword [edx]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x21c]
neg eax
sbb al, al
inc al
lea ecx, [ecx - 0x10]
and bl, al
call fcn.00401745
push esi
mov edx, str.dk1KTVBXQk9PcFdRSk1E
lea ecx, [ebp - 0x21c]
call fcn.0041b686
pop ecx
mov edx, eax
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push esi
push dword [edx]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x21c]
neg eax
sbb al, al
inc al
lea ecx, [ecx - 0x10]
and bl, al
call fcn.00401745
push esi
mov edx, 0x44e268
lea ecx, [ebp - 0x21c]
call fcn.0041b686
pop ecx
push 4
mov ecx, dword [eax]
lea eax, [edi + 4]
push eax
push 4
push esi
push ecx
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x21c]
neg eax
sbb al, al
inc al
and al, bl
lea ecx, [ecx - 0x10]
mov dword [ebp - 0x240], eax
call fcn.00401745
push esi
mov edx, 0x44e294
lea ecx, [ebp - 0x230]
call fcn.0041b686
pop ecx
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 9
lea ebx, [edi + 0x1c]
mov eax, dword [ebx]
mov ecx, dword [ebx]
mov eax, dword [eax - 0xc]
cmp dword [ecx - 4], 1
mov dword [ebp - 0x21c], eax
jle 0x405e42
push dword [ecx - 0xc]
mov ecx, ebx
call fcn.00402e36
mov eax, dword [ebp - 0x21c]
lea eax, [eax*2 + 2]
push eax
push dword [ebx]
mov eax, dword [ebp - 0x22c]
push 1
push esi
push dword [eax]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x240]
xor ebx, ebx
movzx ecx, cl
test eax, eax
mov byte [ebp - 4], 8
cmove ebx, ecx
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00401745
push esi
mov edx, 0x44e2c8
lea ecx, [ebp - 0x230]
call fcn.0041b686
mov edx, dword [edi + 0x2c]
pop ecx
mov ecx, eax
mov eax, dword [edx - 0xc]
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push esi
push dword [ecx]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x230]
neg eax
sbb al, al
inc al
lea ecx, [ecx - 0x10]
and bl, al
call fcn.00401745
push esi
mov edx, 0x44e304
lea ecx, [ebp - 0x230]
call fcn.0041b686
mov edx, dword [edi + 0x24]
pop ecx
mov ecx, eax
mov eax, dword [edx - 0xc]
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push esi
push dword [ecx]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x230]
neg eax
sbb al, al
inc al
lea ecx, [ecx - 0x10]
and bl, al
call fcn.00401745
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x234]
lea ecx, [ecx - 0x10]
call fcn.00401745
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00401745
mov ecx, dword [ebp - 0x238]
lea ecx, [ecx - 0x10]
call fcn.00401745
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00401745
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.00401745
mov al, bl
call fcn.00420791
ret