Function at 0x403385
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x1118
lea ebp, [esp - 0x6c]
call fcn.00407150
mov eax, dword [0x40a140]
push ebx
push esi
mov dword [ebp + 0x68], eax
push edi
lea eax, [ebp - 0x109c]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x10ac], esi
mov dword [ebp - 0x10a4], edi
call fcn.004027bf
cmp eax, edi
jl 0x40372f
lea eax, [ebp - 0x10a4]
push eax
lea eax, [ebp - 0x109c]
push eax
call fcn.0040377e
test eax, eax
pop ecx
pop ecx
jne 0x4033e6
mov eax, 0x80020009
jmp 0x40372f
mov ecx, esi
call fcn.00402797
lea eax, [ebp - 0x109c]
push eax
mov ecx, esi
call fcn.004027bf
cmp eax, edi
jl 0x40372f
movzx eax, word [ebp - 0x10a4]
sub eax, 8
je 0x4036e3
sub eax, 9
je 0x4035eb
dec eax
dec eax
je 0x4034f8
sub eax, 0x3ff5
jne 0x40371b
lea eax, [ebp - 0x109c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x100
mov dword [ebp - 0x9c], edi
jbe 0x403458
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040383b
jmp 0x403464
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov edi, dword [ebp - 0x9c]
test edi, edi
je 0x4034d3
cmp byte [ebp - 0x109c], 0
lea esi, [ebp - 0x109c]
je 0x4034bb
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40349d
cmp byte [eax], 0x30
jne 0x40349d
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x4034b6
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4034b4
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x403483
mov ecx, dword [ebp + 0x74]
mov byte [edi], 0
push dword [ebp - 0x9c]
push dword [ebp + 0x78]
call fcn.00403747
mov esi, eax
jmp 0x4034d6
push 0xe
pop esi
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x40370c
lea ecx, [ebp - 0x9c]
call fcn.0040264e
jmp 0x40370c
call dword [0x40a050]
mov dword [ebp - 0x10a0], eax
lea eax, [ebp - 0x109c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x40353b
push ebx
call fcn.00401f23
test al, al
pop ecx
je 0x40353b
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.00407150
mov ebx, esp
jmp 0x403552
lea eax, [esi + esi + 8]
push eax
call fcn.004067f7
test eax, eax
pop ecx
je 0x40357b
and dword [eax], 0
mov edi, eax
lea ebx, [eax + 8]
test ebx, ebx
je 0x40357b
and word [ebx], 0
push esi
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x109c]
push eax
push 0
push dword [ebp - 0x10a0]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x40357d
xor eax, eax
test eax, eax
je 0x4035c9
lea ecx, [ebp - 0x10a8]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10a8]
push 4
mov dword [ebp - 0x10a0], eax
lea eax, [ebp - 0x10a0]
push eax
mov eax, dword [ebp + 0x74]
push 4
push 0
push dword [ebp + 0x78]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x4035e2
mov eax, edi
mov edi, dword [edi]
push eax
call fcn.0040681d
pop ecx
test edi, edi
jne 0x4035be
mov eax, 0x8007000e
jmp 0x40372f
mov eax, edi
mov edi, dword [edi]
push eax
call fcn.0040681d
pop ecx
test edi, edi
jne 0x4035d7
jmp 0x40370c
lea eax, [ebp - 0x109c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x10a0], eax
jne 0x40364e
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, 0x100
mov dword [ebp - 0x9c], edi
jbe 0x403625
push ebx
lea ecx, [ebp - 0x9c]
call fcn.0040383b
jmp 0x403631
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], edi
jne 0x403658
lea eax, [ebp - 0x98]
test eax, eax
je 0x40364e
lea ecx, [ebp - 0x9c]
call fcn.0040264e
mov eax, 0x80004005
jmp 0x40372f
push ebx
push edi
push dword [ebp - 0x9c]
call fcn.00406c50
add esp, 0xc
cmp dword [ebp - 0x10a0], 0
jle 0x4036ac
mov eax, edi
cdq
sub eax, edx
mov esi, eax
xor eax, eax
mov al, byte [ebp + edi - 0x109c]
sar esi, 1
add esi, dword [ebp - 0x9c]
push eax
call fcn.00403810
pop ecx
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x10a0]
jl 0x403671
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x9c]
push 3
push 0
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x40370c
lea ecx, [ebp - 0x9c]
call fcn.0040264e
jmp 0x40370c
lea eax, [ebp - 0x109c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x109c]
push eax
mov eax, dword [ebp + 0x74]
push 1
push edi
push dword [ebp + 0x78]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x40371b
push esi
call fcn.004031e6
pop ecx
jmp 0x40372f
push dword [ebp + 0x7c]
mov ecx, dword [ebp - 0x10ac]
call fcn.004027bf
cmp eax, edi
jl 0x40372f
xor eax, eax
lea esp, [ebp - 0x10b8]
mov ecx, dword [ebp + 0x68]
call fcn.00406730
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc