Function at 0x404c6d
Capabilities:
Set registry value

Disassembly:
mov eax, 0x42b060
call fcn.00413008
push ecx
mov eax, 0x1114
call fcn.00413350
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x1124]
mov dword [ebp - 0x10], esp
mov esi, ecx
push eax
mov dword [ebp - 0x20], esi
call fcn.004031b1
test eax, eax
js 0x404fd4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1124]
push eax
call fcn.00403046
pop ecx
pop ecx
test eax, eax
jne 0x404cc5
mov eax, 0x80020009
jmp 0x404fd4
mov ecx, esi
call fcn.0040318f
lea eax, [ebp - 0x1124]
push eax
mov ecx, esi
call fcn.004031b1
test eax, eax
js 0x404fd4
movzx eax, word [ebp - 0x18]
sub eax, 8
je 0x404fa0
sub eax, 9
je 0x404eac
dec eax
dec eax
je 0x404dd5
sub eax, 0x3ff5
jne 0x404fc3
lea eax, [ebp - 0x1124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x124], 0
add eax, 2
and dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00404a1b
mov edi, dword [ebp - 0x124]
test edi, edi
je 0x404db0
cmp byte [ebp - 0x1124], 0
lea esi, [ebp - 0x1124]
je 0x404d96
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x404d75
cmp byte [eax], 0x30
jne 0x404d75
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x404d91
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x404d8f
inc edi
inc esi
mov al, byte [esi]
test al, al
je 0x404d96
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x404d55
mov ecx, dword [ebp + 8]
mov word [edi], 0
push dword [ebp - 0x124]
push dword [ebp + 0xc]
call fcn.00402f27
mov ebx, eax
jmp 0x404db3
push 0xe
pop ebx
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x404fb6
lea ecx, [ebp - 0x124]
call fcn.004033ed
jmp 0x404fb6
xor esi, esi
mov dword [ebp - 0x14], esi
push 3
pop ebx
lea eax, [ebp - 0x1124]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 2
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402ade
add esp, 0xc
test eax, eax
js 0x404ea2
mov edi, dword [ebp - 0x18]
cmp edi, 0x400
jg 0x404e2c
push edi
call fcn.00403488
pop ecx
test al, al
je 0x404e2c
mov eax, edi
call fcn.004135f0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x404e38
push edi
lea ecx, [ebp - 0x14]
call fcn.00403607
mov esi, dword [ebp - 0x14]
push ebx
shr edi, 1
push edi
lea ecx, [ebp - 0x1124]
push ecx
push eax
call fcn.00402b8c
xor edi, edi
cmp eax, edi
je 0x404e9e
lea ecx, [ebp - 0x1c]
push ecx
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1c]
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push 4
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp esi, edi
je 0x404fb6
push esi
mov esi, dword [esi]
call fcn.004132a0
pop ecx
test esi, esi
jne 0x404e83
jmp 0x404fb6
push esi
mov esi, dword [esi]
call fcn.004132a0
pop ecx
cmp esi, edi
jne 0x404e95
mov eax, 0x8007000e
jmp 0x404fd4
lea eax, [ebp - 0x1124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x14], eax
test al, 1
je 0x404eca
mov eax, 0x80004005
jmp 0x404fd4
and dword [ebp - 0x124], 0
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 4
push ebx
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 5
call fcn.00404a1b
jmp 0x404efd
xor edi, edi
cmp dword [ebp - 0x124], edi
jne 0x404f1e
lea eax, [ebp - 0x120]
test eax, eax
je 0x404ec0
lea ecx, [ebp - 0x124]
call fcn.004033ed
jmp 0x404ec0
push ebx
push edi
push dword [ebp - 0x124]
call fcn.00412420
add esp, 0xc
cmp dword [ebp - 0x14], edi
jle 0x404f69
mov ecx, dword [ebp - 0x124]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, byte [ebp + edi - 0x1124]
push eax
call fcn.004030dc
pop ecx
mov edx, edi
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x404f33
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x124]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x404fb6
lea ecx, [ebp - 0x124]
call fcn.004033ed
jmp 0x404fb6
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x1124]
push eax
push dword [ebp + 0xc]
call fcn.00402ef3
mov ebx, eax
test ebx, ebx
je 0x404fc3
push ebx
call fcn.00402c94
pop ecx
jmp 0x404fd4
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
call fcn.004031b1
test eax, eax
js 0x404fd4
xor eax, eax
lea esp, [ebp - 0x1130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc