Function at 0x404bc9
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x1118
lea ebp, [esp - 0x6c]
call fcn.0040a250
mov eax, dword [0x40c058]
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.0040400e
cmp eax, edi
jl 0x404f6b
lea edx, [ebp - 0x10a4]
lea ecx, [ebp - 0x109c]
call fcn.00404fba
test eax, eax
jne 0x404c26
mov eax, 0x80020009
jmp 0x404f6b
mov ecx, esi
call fcn.00403fe6
lea eax, [ebp - 0x109c]
push eax
mov ecx, esi
call fcn.0040400e
cmp eax, edi
jl 0x404f6b
movzx eax, word [ebp - 0x10a4]
sub eax, 8
je 0x404f1f
sub eax, 9
je 0x404e28
dec eax
dec eax
je 0x404d36
sub eax, 0x3ff5
jne 0x404f57
lea eax, [ebp - 0x109c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x100
mov dword [ebp - 0x9c], edi
jbe 0x404c98
push eax
lea ecx, [ebp - 0x9c]
call fcn.00403e5e
jmp 0x404ca4
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov edi, dword [ebp - 0x9c]
test edi, edi
je 0x404d11
cmp byte [ebp - 0x109c], 0
lea esi, [ebp - 0x109c]
je 0x404cf9
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x404cdd
cmp byte [eax], 0x30
jne 0x404cdd
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x404cf4
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x404cf2
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x404cc3
mov ecx, dword [ebp + 0x74]
mov byte [edi], 0
push dword [ebp - 0x9c]
push dword [ebp + 0x78]
call fcn.00404f83
mov esi, eax
jmp 0x404d14
push 0xe
pop esi
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x404f48
lea ecx, [ebp - 0x9c]
call fcn.00405076
jmp 0x404f48
call dword [0x40c020]
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 0x404d78
mov ecx, ebx
call fcn.00403769
test al, al
je 0x404d78
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0040a250
mov ebx, esp
jmp 0x404d8f
lea eax, [esi + esi + 8]
push eax
call sub.MSVCRT.dll_malloc
test eax, eax
pop ecx
je 0x404db8
and dword [eax], 0
mov edi, eax
lea ebx, [eax + 8]
test ebx, ebx
je 0x404db8
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 0x404dba
xor eax, eax
test eax, eax
je 0x404e06
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 0x404e1f
mov eax, edi
mov edi, dword [edi]
push eax
call sub.MSVCRT.dll_free
pop ecx
test edi, edi
jne 0x404dfb
mov eax, 0x8007000e
jmp 0x404f6b
mov eax, edi
mov edi, dword [edi]
push eax
call sub.MSVCRT.dll_free
pop ecx
test edi, edi
jne 0x404e14
jmp 0x404f48
lea eax, [ebp - 0x109c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x10a0], eax
jne 0x404e8d
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, 0x100
mov dword [ebp - 0x9c], edi
jbe 0x404e62
push ebx
lea ecx, [ebp - 0x9c]
call fcn.00403e5e
jmp 0x404e6e
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov edi, dword [ebp - 0x9c]
test edi, edi
jne 0x404e97
lea eax, [ebp - 0x98]
test eax, eax
je 0x404e8d
lea ecx, [ebp - 0x9c]
call fcn.00405076
mov eax, 0x80004005
jmp 0x404f6b
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 0x10a0], edi
jle 0x404ee8
mov cl, byte [ebp + edi - 0x109c]
mov eax, edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, dword [ebp - 0x9c]
call fcn.0040504d
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 - 0x10a0]
jl 0x404eb3
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 0x404f48
lea ecx, [ebp - 0x9c]
call fcn.00405076
jmp 0x404f48
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 0x404f57
mov ecx, esi
call fcn.00404a2a
jmp 0x404f6b
push dword [ebp + 0x7c]
mov ecx, dword [ebp - 0x10ac]
call fcn.0040400e
cmp eax, edi
jl 0x404f6b
xor eax, eax
lea esp, [ebp - 0x10b8]
mov ecx, dword [ebp + 0x68]
call fcn.0040a1ae
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc