Function at 0x422550
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push edi
push esi
push ebx
sub esp, 0x4d4
mov dword [esp + 0x10], edx
cdq
mov esi, eax
xor esi, edx
mov eax, 0x66666667
sub esi, edx
imul esi
lea eax, [esp + 0x48e]
mov ecx, esi
mov ebx, edx
sar ebx, 1
sar ecx, 0x1f
sub ebx, ecx
push ebx
lea edi, [ebx + ebx*4]
sub esi, edi
push esi
push str..._d_d..
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
movsd xmm0, qword [0x53ee7c]
movsd qword [esp + 0x4b0], xmm0
movzx edi, word [0x53ee84]
mov word [esp + 0x4b8], di
mov al, byte [0x53ee86]
mov byte [esp + 0x4ba], al
pxor xmm0, xmm0
movaps xmmword [esp + 0x4a0], xmm0
lea eax, [esp + 0x390]
call fcn.004252d0
lea eax, [esp + 0x390]
mov edx, str._rv_
mov ecx, 4
call fcn.00401c90
lea eax, [esp + 0x390]
lea edx, [esp + 0x4b0]
mov ecx, 0xb
call fcn.00401c90
lea eax, [esp + 0x390]
mov edx, str._rv_
mov ecx, 4
call fcn.00401c90
lea edx, [esp + 0x48e]
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 0x42264c
mov eax, edx
add edx, ecx
call fcn.00425520
lea edx, [esp + 0x48e]
mov ecx, eax
lea eax, [esp + 0x390]
call fcn.00401c90
lea eax, [esp + 0x4a0]
lea edx, [esp + 0x390]
call fcn.00408c90
movzx edi, byte [esp + 0x4ac]
movzx ecx, byte [esp + 0x4ad]
movzx edx, byte [esp + 0x4ae]
movzx eax, byte [esp + 0x4af]
push eax
push edx
push ecx
push edi
movzx eax, byte [esp + 0x4bb]
push eax
movzx edx, byte [esp + 0x4be]
push edx
movzx ecx, byte [esp + 0x4c1]
push ecx
movzx edi, byte [esp + 0x4c4]
push edi
movzx eax, byte [esp + 0x4c7]
push eax
movzx edx, byte [esp + 0x4ca]
push edx
movzx ecx, byte [esp + 0x4cd]
push ecx
movzx edi, byte [esp + 0x4d0]
push edi
movzx eax, byte [esp + 0x4d3]
push eax
movzx edx, byte [esp + 0x4d6]
push edx
movzx ecx, byte [esp + 0x4d9]
push ecx
movzx edi, byte [esp + 0x4dc]
push edi
push str._.2X_.2X_.2X_.2X__.2X_.2X__.2X_.2X__.2X_.2X__.2X_.2X_.2X_.2X_.2X_.2X
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x48
movsd xmm0, qword [0x53ee88]
movsd qword [esp + 0x4bb], xmm0
movzx edi, word [0x53ee90]
mov word [esp + 0x4c3], di
mov al, byte [0x53ee92]
mov byte [esp + 0x4c5], al
pxor xmm0, xmm0
movaps xmmword [esp + 0x4a0], xmm0
lea eax, [esp + 0x3e8]
call fcn.004252d0
lea eax, [esp + 0x3e8]
mov edx, str..123456789
mov ecx, 0xa
call fcn.00401c90
lea eax, [esp + 0x3e8]
lea edx, [esp + 0x4bb]
mov ecx, 0xb
call fcn.00401c90
lea eax, [esp + 0x3e8]
mov edx, str..123456789
mov ecx, 0xa
call fcn.00401c90
lea edx, [esp + 0x48e]
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 0x4227cd
mov eax, edx
add edx, ecx
call fcn.00425520
lea edx, [esp + 0x48e]
mov ecx, eax
lea eax, [esp + 0x3e8]
call fcn.00401c90
lea eax, [esp + 0x4a0]
lea edx, [esp + 0x3e8]
call fcn.00408c90
movzx edi, byte [esp + 0x4ac]
movzx ecx, byte [esp + 0x4ad]
movzx edx, byte [esp + 0x4ae]
movzx eax, byte [esp + 0x4af]
push eax
push edx
push ecx
push edi
movzx eax, byte [esp + 0x4bb]
push eax
movzx edx, byte [esp + 0x4be]
push edx
movzx ecx, byte [esp + 0x4c1]
push ecx
movzx edi, byte [esp + 0x4c4]
push edi
movzx eax, byte [esp + 0x4c7]
push eax
movzx edx, byte [esp + 0x4ca]
push edx
movzx ecx, byte [esp + 0x4cd]
push ecx
movzx edi, byte [esp + 0x4d0]
push edi
movzx eax, byte [esp + 0x4d3]
push eax
movzx edx, byte [esp + 0x4d6]
push edx
movzx ecx, byte [esp + 0x4d9]
push ecx
movzx edi, byte [esp + 0x4dc]
push edi
push str._.2X_.2X_.2X_.2X__.2X_.2X__.2X_.2X__.2X_.2X__.2X_.2X_.2X_.2X_.2X_.2X
lea eax, [esp + 0x4ab]
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
lea edx, [esp + 0x358]
lea eax, [esp + 0x4af]
push eax
push dword [esp + 0x5c]
push str._d:_s
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x58
mov eax, 0x66666667
imul esi
mov ecx, esi
sar ecx, 0x1f
sar edx, 1
sub edx, ecx
lea edi, [edx + edx*4]
sub esi, edi
cmp esi, 4
ja case.default.0x4228df
mov eax, dword [esi*4 + 0x53f5a8]
jmp eax
lea eax, [esp + 0x210]
mov edx, str.cXM3t3L2M_258PJ2MXZxcze9v3DxM7F3dn26d_Y2M_E3or8z9jZw8XE9o_Z9uPE2d7LxsbU5sXJ9vzS7tk
call fcn.004224a0
lea ecx, [esp + 0x290]
lea edx, [esp + 0x440]
push edx
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
jmp 0x4229b4
lea eax, [esp + 0x210]
mov edx, str.cXM3t3L2M_20u3PxOvY3tn2cva2sLD2MK6_27ubmitzP2NT2j9k
call fcn.004224a0
lea ecx, [esp + 0x290]
lea edx, [esp + 0x440]
push edx
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
jmp 0x4229b4
lea eax, [esp + 0x210]
mov edx, str.cXM3t3L2M_27c_E69je2fb5y9rawsPYz4rr7_b80u72j9k
call fcn.004224a0
lea ecx, [esp + 0x290]
lea edx, [esp + 0x440]
push edx
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
jmp 0x4229b4
lea eax, [esp + 0x210]
mov edx, str.cXM3t3L2M_27c_E69je2fb5y9rawsPYz4rr7_bjxNney8bGh4_Z9u7L3svU
call fcn.004224a0
lea ecx, [esp + 0x290]
lea edx, [esp + 0x440]
push edx
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
jmp 0x4229b4
lea eax, [esp + 0x210]
mov edx, str.cXM3t3L2M_258PJ2MXZxcze9v3DxM7F3dn26d_Y2M_E3vzP2NnDxcT20NT20Y_Z1w
call fcn.004224a0
lea ecx, [esp + 0x290]
lea edx, [esp + 0x440]
push edx
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
and ebx, 0x80000003
jge 0x4229c6
sub ebx, 1
or ebx, 0xfffffffc
inc ebx
test ebx, ebx
je 0x422bc1
cmp ebx, 1
je 0x422a07
cmp ebx, 2
jne 0x4229eb
lea eax, [esp + 0x210]
mov edx, str._s_H2sbL3s_Z
call fcn.004224a0
jmp 0x422a18
cmp ebx, 3
jne 0x422a03
lea eax, [esp + 0x210]
mov edx, str._cPE8vo
call fcn.004224a0
jmp 0x422a18
xor ebx, ebx
jmp 0x422a1a
lea eax, [esp + 0x210]
mov edx, str.7s_My9_G3vnP3t7DxM3Z
call fcn.004224a0
mov ebx, eax
test ebx, ebx
je 0x422a97
movsx eax, byte [ebx]
test eax, eax
je 0x422a97
call fcn.00422e10
test eax, eax
je 0x422a4c
lea esi, [esp + 0x310]
mov dword [esp + 0xc], esi
lea edx, [esp + 0x290]
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebx
call fcn.00406800
lea edi, [esp + 0x290]
lea esi, [esp + 0x10]
mov dword [esp + 0x4c8], ebx
push 0x5428fc
push edi
call dword [sym.imp.MSVCR80.dll_strstr]
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x422aa4
sub ebx, edi
push ebx
push edi
push esi
call dword [sym.imp.MSVCR80.dll_memmove]
push 0
push 0x542830
add esi, ebx
push esi
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0x18
lea edi, [ebx + edi + 1]
jmp 0x422a5e
add esp, 0x4d4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x4c8]
mov edx, edi
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 0x422ad1
mov eax, edx
add edx, ecx
call fcn.00425520
inc eax
push eax
push edi
push esi
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
call fcn.00401b70
mov esi, eax
cmp dword [0x56e6a8], 0
jne 0x422b25
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 + 0x4c8]
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 0x422a97
lea edx, [esp + 0x310]
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 0x422b8b
mov eax, edx
add edx, ecx
call fcn.00425520
inc eax
push eax
lea edx, [esp + 0x314]
push edx
push 1
push 0
push ebx
push dword [esp + 0x4dc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x4c8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x4d4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x210]
mov edx, str.6f7v9ZmYiuTLx88
call fcn.004224a0
jmp 0x422a18