Function at 0x10013ae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b181
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1130
call fcn.10040450
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1130], eax
lea eax, [ebp - 0x1018]
mov edi, esi
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x112c], ecx
mov dword [ebp - 0x113c], edx
mov dword [ebp - 0x1124], 0
call fcn.10013960
test eax, eax
js 0x10013f69
lea eax, [ebp - 0x1124]
push eax
lea ebx, [ebp - 0x1018]
call fcn.10013830
add esp, 4
test eax, eax
jne 0x10013b76
mov eax, 0x80020009
jmp 0x10013f69
call fcn.10013910
lea eax, [ebp - 0x1018]
mov edi, esi
call fcn.10013960
xor esi, esi
cmp eax, esi
jl 0x10013f69
movzx eax, word [ebp - 0x1124]
cmp eax, 0x13
jg 0x10013e3d
je 0x10013d54
cmp eax, 8
je 0x10013d1e
cmp eax, 0x11
jne 0x10013f4e
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [ebp - 0x1128], ebx
test bl, 1
jne 0x10013c62
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x1124], edi
mov dword [ebp - 0x1120], esi
xor eax, eax
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
cmp eax, esi
ja 0x10013c01
cmp edi, 0xffffffff
jbe 0x10013c0b
push 0x80070216
call fcn.10012070
cmp edi, 0x100
jbe 0x10013c37
lea edx, [ebp - 0x1120]
push edx
mov eax, edi
call fcn.10018700
jmp 0x10013c43
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x1120], eax
mov eax, dword [ebp - 0x1120]
test eax, eax
jne 0x10013c6c
lea ecx, [ebp - 0x111c]
test ecx, ecx
je 0x10013c62
lea eax, [ebp - 0x1120]
call fcn.100186f0
mov eax, 0x80004005
jmp 0x10013f69
push edi
push 0
push eax
call fcn.10037e20
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x10013cd8
mov edi, edi
mov al, byte [ebp + esi - 0x1018]
movsx ecx, al
mov edx, esi
shr edx, 1
add edx, dword [ebp - 0x1120]
add ecx, 0xffffffd0
cmp ecx, 0x36
ja case.0x10013ca3.58
movzx ecx, byte [ecx + 0x10013fa0]
jmp dword [ecx*4 + 0x10013f90]
sub al, 0x30
jmp 0x10013cb8
sub al, 0x37
jmp 0x10013cb8
sub al, 0x57
jmp 0x10013cb8
xor al, al
mov ecx, esi
and ecx, 1
add ecx, ecx
lea edi, [ecx + ecx]
mov ecx, 4
sub ecx, edi
shl al, cl
inc esi
or byte [edx], al
cmp esi, ebx
jl 0x10013c80
mov edi, dword [ebp - 0x1124]
mov ecx, dword [ebp - 0x1120]
mov edx, dword [ebp - 0x1130]
mov eax, dword [edx]
mov edx, dword [ebp - 0x112c]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
lea eax, [ebp - 0x111c]
cmp dword [ebp - 0x1120], eax
je 0x10013f3f
lea eax, [ebp - 0x1120]
call fcn.100186f0
jmp 0x10013f3f
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x1130]
inc eax
push eax
mov eax, dword [ebp - 0x112c]
lea edx, [ebp - 0x1018]
push edx
mov edx, dword [ecx]
push 1
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
jmp 0x10013f3f
mov dword [ebp - 0x1124], esi
lea eax, [ebp - 0x1018]
push eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x1128]
inc eax
push ecx
mov dword [ebp - 0x1128], eax
call fcn.10011f00
add esp, 4
test eax, eax
js 0x10013dd5
mov ebx, dword [ebp - 0x1128]
cmp ebx, 0x400
jg 0x10013db1
push ebx
call fcn.10011f30
add esp, 4
test al, al
je 0x10013db1
mov eax, ebx
call fcn.10037990
mov dword [ebp - 0x10], esp
mov esi, esp
jmp 0x10013dc0
mov eax, ebx
lea esi, [ebp - 0x1124]
call fcn.100185e0
mov esi, eax
mov edx, ebx
push 3
shr edx, 1
lea eax, [ebp - 0x1018]
call fcn.10011fe0
test eax, eax
jne 0x10013dea
lea esi, [ebp - 0x1124]
call fcn.10018610
mov eax, 0x8007000e
jmp 0x10013f69
lea edx, [ebp - 0x1138]
push edx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1138]
mov edx, dword [ebp - 0x112c]
push 4
lea ecx, [ebp - 0x1128]
push ecx
push 4
mov dword [ebp - 0x1128], eax
mov eax, dword [ebp - 0x1130]
mov ecx, dword [eax]
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esi, [ebp - 0x1124]
mov ebx, eax
call fcn.10018610
jmp 0x10013f3f
cmp eax, 0x4008
jne 0x10013f4e
lea edx, [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov dword [ebp - 0x1120], esi
xor ecx, ecx
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
cmp ecx, esi
ja 0x10013e70
cmp eax, 0xffffffff
jbe 0x10013e7a
push 0x80070216
call fcn.10012070
cmp eax, 0x100
jbe 0x10013e97
lea ecx, [ebp - 0x1120]
push ecx
call fcn.10018700
jmp 0x10013ea3
lea edx, [ebp - 0x111c]
mov dword [ebp - 0x1120], edx
mov ebx, dword [ebp - 0x1120]
test ebx, ebx
je 0x10013f21
cmp byte [ebp - 0x1018], 0
lea esi, [ebp - 0x1018]
je 0x10013efe
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x10013edc
cmp byte [eax], 0x30
jne 0x10013edc
mov byte [ebx], 0
push eax
inc ebx
call edi
mov esi, eax
jmp 0x10013ef9
mov byte [ebx], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10013ef7
mov al, byte [esi + 1]
inc esi
inc ebx
test al, al
je 0x10013efe
mov byte [ebx], al
inc ebx
inc esi
cmp byte [esi], 0
jne 0x10013ec2
mov edx, dword [ebp - 0x112c]
mov eax, dword [ebp - 0x1130]
mov word [ebx], 0
mov ecx, dword [ebp - 0x1120]
push ecx
push edx
push eax
call fcn.10012730
mov ebx, eax
jmp 0x10013f26
mov ebx, 0xe
lea ecx, [ebp - 0x111c]
cmp dword [ebp - 0x1120], ecx
je 0x10013f3f
lea eax, [ebp - 0x1120]
call fcn.100186f0
xor esi, esi
cmp ebx, esi
je 0x10013f4e
mov eax, ebx
call fcn.10012240
jmp 0x10013f69
mov eax, dword [ebp - 0x113c]
mov edi, dword [ebp - 0x1134]
call fcn.10013960
xor edx, edx
cmp eax, esi
setge dl
dec edx
and eax, edx
lea esp, [ebp - 0x1150]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret 8