Function at 0x10012af0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040c51
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x128c
call fcn.1002dca0
mov eax, dword [0x1004f39c]
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
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.10011600
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x10012b63
mov eax, dword [ebp - 0x20]
jmp 0x1001316b
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x1028]
push edx
call fcn.100132b0
test eax, eax
jne 0x10012b8c
push 0x20f
mov ecx, dword [ebp - 0x1284]
call fcn.100114f0
jmp 0x1001316b
mov ecx, dword [ebp - 0x1284]
call fcn.10011560
lea eax, [ebp - 0x1028]
push eax
mov ecx, dword [ebp - 0x1284]
call fcn.10011600
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x10012bba
mov eax, dword [ebp - 0x20]
jmp 0x1001316b
movzx ecx, word [ebp - 0x1c]
mov dword [ebp - 0x1288], ecx
cmp dword [ebp - 0x1288], 0x13
jg 0x10012bf5
cmp dword [ebp - 0x1288], 0x13
je 0x10012e10
cmp dword [ebp - 0x1288], 8
je 0x10012c06
cmp dword [ebp - 0x1288], 0x11
je 0x10012f9c
jmp 0x10013134
cmp dword [ebp - 0x1288], 0x4008
je 0x10012c23
jmp 0x10013134
push 1
lea edx, [ebp - 0x1028]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.100131c0
mov dword [ebp - 0x18], eax
jmp 0x10013134
lea ecx, [ebp - 0x1028]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov dword [ebp - 0x1134], eax
lea ecx, [ebp - 0x1130]
call fcn.10014380
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1134]
push edx
lea ecx, [ebp - 0x1130]
call fcn.10015dd0
jmp 0x10012c74
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1130]
call fcn.10012870
test eax, eax
je 0x10012df2
lea ecx, [ebp - 0x1130]
call fcn.10012870
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 0x10012db4
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 0x10012d22
mov eax, dword [ebp - 0x1144]
movsx ecx, byte [eax]
cmp ecx, 0x30
jne 0x10012d22
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 0x10012da0
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 0x10012d82
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 - 0x1140]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10012d72
jmp 0x10012db4
mov edx, dword [ebp - 0x113c]
mov eax, dword [ebp - 0x1140]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x113c]
add edx, 1
mov dword [ebp - 0x113c], edx
mov eax, dword [ebp - 0x1140]
add eax, 1
mov dword [ebp - 0x1140], eax
mov ecx, dword [ebp - 0x1134]
add ecx, 1
mov dword [ebp - 0x1134], ecx
jmp 0x10012cb5
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 - 0x113c]
mov byte [ecx], 0
lea ecx, [ebp - 0x1130]
call fcn.10012870
push eax
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.10013220
mov dword [ebp - 0x18], eax
jmp 0x10012df9
mov dword [ebp - 0x18], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1130]
call fcn.10015d80
jmp 0x10013134
call fcn.1000c0c0
mov dword [ebp - 0x1154], eax
lea ecx, [ebp - 0x115c]
call fcn.10014380
mov dword [ebp - 4], 3
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x114c], eax
cmp dword [ebp - 0x114c], 0
jne 0x10012e51
mov dword [ebp - 0x128c], 0
jmp 0x10012f1b
mov ecx, dword [ebp - 0x114c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x1158], eax
push 2
mov edx, dword [ebp - 0x1158]
push edx
lea eax, [ebp - 0x1158]
push eax
call fcn.1000bf80
test eax, eax
jge 0x10012e8f
mov dword [ebp - 0x1290], 0
jmp 0x10012f0f
cmp dword [ebp - 0x1158], 0x400
jg 0x10012ed0
mov ecx, dword [ebp - 0x1158]
push ecx
call fcn.1000bfe0
movzx edx, al
test edx, edx
je 0x10012ed0
mov eax, dword [ebp - 0x1158]
call fcn.1002da90
mov dword [ebp - 0x1294], esp
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x1294]
mov dword [ebp - 0x1298], eax
jmp 0x10012ee8
mov ecx, dword [ebp - 0x1158]
push ecx
lea ecx, [ebp - 0x115c]
call fcn.10014ed0
mov dword [ebp - 0x1298], eax
mov edx, dword [ebp - 0x1154]
push edx
mov eax, dword [ebp - 0x1158]
push eax
mov ecx, dword [ebp - 0x114c]
push ecx
mov edx, dword [ebp - 0x1298]
push edx
call fcn.100105f0
mov dword [ebp - 0x1290], eax
mov eax, dword [ebp - 0x1290]
mov dword [ebp - 0x128c], eax
mov ecx, dword [ebp - 0x128c]
mov dword [ebp - 0x1150], ecx
cmp dword [ebp - 0x1150], 0
jne 0x10012f57
mov dword [ebp - 0x127c], 0x8007000e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x115c]
call fcn.10014f40
mov eax, dword [ebp - 0x127c]
jmp 0x1001316b
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.10013190
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x115c]
call fcn.10014f40
jmp 0x10013134
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 0x10012fc4
mov eax, 0x80004005
jmp 0x1001316b
mov eax, dword [ebp - 0x1168]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1164], eax
lea ecx, [ebp - 0x1270]
call fcn.10014380
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1164]
push edx
lea ecx, [ebp - 0x1270]
call fcn.10015dd0
jmp 0x10013010
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1270]
call fcn.10012870
test eax, eax
jne 0x1001304d
mov dword [ebp - 0x1280], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1270]
call fcn.10015d80
mov eax, dword [ebp - 0x1280]
jmp 0x1001316b
mov eax, dword [ebp - 0x1164]
push eax
push 0
lea ecx, [ebp - 0x1270]
call fcn.10012870
push eax
call fcn.1002d330
add esp, 0xc
mov dword [ebp - 0x1278], 0
jmp 0x10013085
mov ecx, dword [ebp - 0x1278]
add ecx, 1
mov dword [ebp - 0x1278], ecx
mov edx, dword [ebp - 0x1278]
cmp edx, dword [ebp - 0x1168]
jge 0x100130f5
mov eax, dword [ebp - 0x1278]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [ebp - 0x1270]
call fcn.10012870
add eax, esi
mov dword [ebp - 0x129c], 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.10013380
movzx eax, al
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x129c]
movzx edx, byte [ecx]
or edx, eax
mov eax, dword [ebp - 0x129c]
mov byte [eax], dl
jmp 0x10013076
mov ecx, dword [ebp - 0x1164]
push ecx
lea ecx, [ebp - 0x1270]
call fcn.10012870
push eax
push 3
push 0
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.10012870
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.10015d80
cmp dword [ebp - 0x18], 0
je 0x1001314c
mov dword [ebp - 0x14], 0x204
mov eax, dword [ebp - 0x18]
push eax
call fcn.10012810
jmp 0x1001316b
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x1284]
call fcn.10011600
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x10013169
mov eax, dword [ebp - 0x20]
jmp 0x1001316b
xor eax, eax
lea esp, [ebp - 0x12ac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.1002cef5
mov esp, ebp
pop ebp
ret 0xc