Function at 0x4067f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478931
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1288
call fcn.00450d60
mov eax, dword [0x4b0b90]
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1284], ecx
mov word [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1028]
push eax
mov ecx, dword [ebp - 0x1284]
call fcn.004054f0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x406860
mov eax, dword [ebp - 0x20]
jmp 0x406e2c
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x1028]
push edx
call fcn.00406f20
add esp, 8
test eax, eax
jne 0x40688c
push 0x20f
mov ecx, dword [ebp - 0x1284]
call fcn.004053e0
jmp 0x406e2c
mov ecx, dword [ebp - 0x1284]
call fcn.00405450
lea eax, [ebp - 0x1028]
push eax
mov ecx, dword [ebp - 0x1284]
call fcn.004054f0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x4068ba
mov eax, dword [ebp - 0x20]
jmp 0x406e2c
movzx ecx, word [ebp - 0x1c]
mov dword [ebp - 0x1288], ecx
cmp dword [ebp - 0x1288], 0x13
jg 0x4068f5
cmp dword [ebp - 0x1288], 0x13
je 0x406ae9
cmp dword [ebp - 0x1288], 8
je 0x406906
cmp dword [ebp - 0x1288], 0x11
je 0x406c54
jmp 0x406df2
cmp dword [ebp - 0x1288], 0x4008
je 0x406923
jmp 0x406df2
push 1
lea edx, [ebp - 0x1028]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406e80
mov dword [ebp - 0x18], eax
jmp 0x406df2
lea ecx, [ebp - 0x1028]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x1134], eax
lea ecx, [ebp - 0x1130]
call fcn.00403830
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1134]
push edx
lea ecx, [ebp - 0x1130]
call fcn.00408df0
jmp 0x406974
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1130]
call fcn.00406540
test eax, eax
je 0x406acb
lea ecx, [ebp - 0x1130]
call fcn.00406540
mov dword [ebp - 0x113c], eax
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x1140], eax
mov dword [ebp - 0x1134], 0
mov ecx, dword [ebp - 0x1140]
movsx edx, byte [ecx]
test edx, edx
je 0x406aa5
mov eax, dword [ebp - 0x1140]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x1144], eax
mov ecx, dword [ebp - 0x1140]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x406a22
mov eax, dword [ebp - 0x1144]
movsx ecx, byte [eax]
cmp ecx, 0x30
jne 0x406a22
mov edx, dword [ebp - 0x113c]
mov byte [edx], 0
mov eax, dword [ebp - 0x113c]
add eax, 1
mov dword [ebp - 0x113c], eax
mov ecx, dword [ebp - 0x1144]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x1140], eax
jmp 0x406a91
mov edx, dword [ebp - 0x113c]
mov eax, dword [ebp - 0x1140]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x1140]
mov al, byte [edx]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x406a73
mov ecx, dword [ebp - 0x113c]
add ecx, 1
mov dword [ebp - 0x113c], ecx
mov edx, dword [ebp - 0x1140]
add edx, 1
mov dword [ebp - 0x1140], edx
mov eax, dword [ebp - 0x113c]
mov ecx, dword [ebp - 0x1140]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x113c]
add eax, 1
mov dword [ebp - 0x113c], eax
mov ecx, dword [ebp - 0x1140]
add ecx, 1
mov dword [ebp - 0x1140], ecx
mov edx, dword [ebp - 0x1134]
add edx, 1
mov dword [ebp - 0x1134], edx
jmp 0x4069b5
mov eax, dword [ebp - 0x113c]
mov byte [eax], 0
lea ecx, [ebp - 0x1130]
call fcn.00406540
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406ec0
mov dword [ebp - 0x18], eax
jmp 0x406ad2
mov dword [ebp - 0x18], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1130]
call fcn.00408dd0
jmp 0x406df2
call fcn.00402400
mov dword [ebp - 0x1154], eax
lea ecx, [ebp - 0x115c]
call fcn.00403830
mov dword [ebp - 4], 3
lea edx, [ebp - 0x1028]
mov dword [ebp - 0x114c], edx
cmp dword [ebp - 0x114c], 0
jne 0x406b2a
mov dword [ebp - 0x128c], 0
jmp 0x406bd3
mov eax, dword [ebp - 0x114c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x1158], eax
mov ecx, dword [ebp - 0x1158]
shl ecx, 1
cmp ecx, 0x400
ja 0x406b92
mov edx, dword [ebp - 0x1158]
shl edx, 1
push edx
call fcn.00404610
add esp, 4
movzx eax, al
test eax, eax
je 0x406b92
mov eax, dword [ebp - 0x1158]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.00450d60
mov dword [ebp - 0x1290], esp
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp - 0x1290]
mov dword [ebp - 0x1294], ecx
jmp 0x406bac
mov edx, dword [ebp - 0x1158]
shl edx, 1
push edx
lea ecx, [ebp - 0x115c]
call fcn.00408a90
mov dword [ebp - 0x1294], eax
mov eax, dword [ebp - 0x1154]
push eax
mov ecx, dword [ebp - 0x1158]
push ecx
mov edx, dword [ebp - 0x114c]
push edx
mov eax, dword [ebp - 0x1294]
push eax
call fcn.004046b0
mov dword [ebp - 0x128c], eax
mov ecx, dword [ebp - 0x128c]
mov dword [ebp - 0x1150], ecx
cmp dword [ebp - 0x1150], 0
jne 0x406c0f
mov dword [ebp - 0x127c], 0x8007000e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x115c]
call fcn.00408b00
mov eax, dword [ebp - 0x127c]
jmp 0x406e2c
lea edx, [ebp - 0x1160]
push edx
push 0
push 0
mov eax, dword [ebp - 0x1150]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [ebp - 0x1160]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406e50
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x115c]
call fcn.00408b00
jmp 0x406df2
lea eax, [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1168], eax
mov ecx, dword [ebp - 0x1168]
and ecx, 1
je 0x406c7c
mov eax, 0x80004005
jmp 0x406e2c
mov eax, dword [ebp - 0x1168]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1164], eax
lea ecx, [ebp - 0x1270]
call fcn.00403830
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1164]
push edx
lea ecx, [ebp - 0x1270]
call fcn.00408df0
jmp 0x406cc8
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1270]
call fcn.00406540
test eax, eax
jne 0x406d05
mov dword [ebp - 0x1280], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1270]
call fcn.00408dd0
mov eax, dword [ebp - 0x1280]
jmp 0x406e2c
mov eax, dword [ebp - 0x1164]
push eax
push 0
lea ecx, [ebp - 0x1270]
call fcn.00406540
push eax
call fcn.0044ffa0
add esp, 0xc
mov dword [ebp - 0x1278], 0
jmp 0x406d3d
mov ecx, dword [ebp - 0x1278]
add ecx, 1
mov dword [ebp - 0x1278], ecx
mov edx, dword [ebp - 0x1278]
cmp edx, dword [ebp - 0x1168]
jge 0x406db3
mov eax, dword [ebp - 0x1278]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [ebp - 0x1270]
call fcn.00406540
add eax, esi
mov dword [ebp - 0x1298], eax
mov eax, dword [ebp - 0x1278]
and eax, 1
mov esi, 1
sub esi, eax
shl esi, 2
mov ecx, dword [ebp - 0x1278]
mov dl, byte [ebp + ecx - 0x1028]
push edx
call fcn.00406fe0
add esp, 4
movzx eax, al
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x1298]
movzx edx, byte [ecx]
or edx, eax
mov eax, dword [ebp - 0x1298]
mov byte [eax], dl
jmp 0x406d2e
mov ecx, dword [ebp - 0x1164]
push ecx
lea ecx, [ebp - 0x1270]
call fcn.00406540
push eax
push 3
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406540
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1270]
call fcn.00408dd0
cmp dword [ebp - 0x18], 0
je 0x406e0d
mov dword [ebp - 0x14], 0x204
mov eax, dword [ebp - 0x18]
push eax
call fcn.004064e0
add esp, 4
jmp 0x406e2c
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x1284]
call fcn.004054f0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x406e2a
mov eax, dword [ebp - 0x20]
jmp 0x406e2c
xor eax, eax
lea esp, [ebp - 0x12a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0045040c
mov esp, ebp
pop ebp
ret 0xc