Function at 0x40ca70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fb16
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x6160b8]
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
push 0x206
lea eax, [ebp - 0x216]
push 0
push eax
call fcn.00434140
movups xmm0, xmmword [0x60dd68]
mov eax, dword [0x60dd88]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x1f8], eax
add esp, 0xc
mov ax, word [0x60dd8c]
add ecx, 0xfffffffe
movups xmmword [ebp - 0x218], xmm0
mov word [ebp - 0x1f4], ax
movups xmm0, xmmword [0x60dd78]
movups xmmword [ebp - 0x208], xmm0
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40caf1
mov eax, dword [0x60e8d4]
mov dword [ecx], eax
mov eax, dword [0x60e8d8]
mov dword [ecx + 4], eax
mov eax, dword [0x60e8dc]
mov dword [ecx + 8], eax
mov ax, word [0x60e8e0]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x650]
call fcn.00420e09
mov dword [ebp - 4], 0
call fcn.0041d11d
test al, al
je 0x40cb52
pop edi
push esp
push esi
pop ecx
pop edx
push esp
pop esi
pop ecx
push edx
pop edx
pop esp
pop esi
push esi
pop ebx
push edi
push eax
push esi
push ecx
call fcn.0041ceb0
test al, al
je 0x40cb71
pop ebp
pop ecx
push ecx
pop edi
push eax
pop ebp
pop ebp
push ebx
pop esi
push ecx
pop ebx
push edx
pop esi
push ebp
pop esp
pop esp
push esi
push edi
push ebp
pop ebx
pop esi
push esp
call fcn.0041ce6b
test al, al
je 0x40cb98
push esi
pop ebp
push edx
pop esp
push edi
pop ebp
pop esi
pop ebx
pop eax
push ecx
push ebx
push esp
push ebx
push ecx
push edi
pop edx
pop edi
pop ebx
push eax
push eax
pop ecx
push ebx
push esp
pop edx
push ecx
pop esp
pop ebx
push ebp
pop ebp
push ebx
lea ecx, [ebp - 0x650]
call fcn.00420eb0
test eax, eax
jne 0x40cd2e
push 0x208
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00434140
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00434140
add esp, 0x18
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.219263
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str.__s___s
push eax
call fcn.004048f0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x648]
add esp, 0x10
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x40cd2e
lea eax, [ebp - 0x644]
push eax
push 0xf003f
push 0
push 0x60e98c
push dword [ebp - 0x648]
call esi
test eax, eax
je 0x40cc7d
push 0
lea eax, [ebp - 0x644]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x60dcc0
push dword [ebp - 0x648]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40cd27
push 0x60dd68
lea ecx, [ebp - 0x640]
call fcn.00402db0
push 6
push str.353cfd
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 1
call fcn.004034d0
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ccb0
sub ecx, edx
sar ecx, 1
cmp dword [ebp - 0x62c], 8
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
lea ecx, [ebp - 0x640]
cmovae ecx, dword [ebp - 0x640]
push 0
push ecx
push dword [ebp - 0x644]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x644]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x648]
call esi
mov eax, dword [ebp - 0x62c]
cmp eax, 8
jb 0x40cd27
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.00403340
mov esi, 1
jmp 0x40cd30
xor esi, esi
lea ecx, [ebp - 0x650]
call fcn.00420e1e
mov eax, esi
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.004144d9
mov esp, ebp
pop ebp
ret