Function at 0x409a50
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x1128
lea ebp, [esp - 0x10a8]
call fcn.00414ee0
mov eax, dword [0x42482c]
push ebx
push esi
mov esi, dword [ebp + 0x10b4]
mov ebx, ecx
xor eax, ebp
push edi
mov edi, dword [ebp + 0x10b0]
lea ecx, [ebp + 0xa4]
mov dword [ebp + 0x10a4], eax
mov eax, dword [ebp + 0x10b8]
push ecx
mov ecx, ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], 0
call fcn.00408c60
test eax, eax
jl 0x409ddd
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp + 0xa4]
push eax
call fcn.00409e40
add esp, 8
test eax, eax
jne 0x409ad0
mov eax, 0x80020009
jmp 0x409ddd
mov ecx, dword [ebx]
xor edx, edx
mov dl, byte [ecx]
mov ecx, ebx
push edx
call fcn.00408c10
test eax, eax
je 0x409aff
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
xor edx, edx
mov dword [ebx], eax
mov dl, byte [ecx]
mov ecx, ebx
push edx
call fcn.00408c10
test eax, eax
jne 0x409ae2
lea eax, [ebp + 0xa4]
push eax
mov ecx, ebx
call fcn.00408c60
test eax, eax
jl 0x409ddd
movzx eax, word [ebp - 0x74]
cmp eax, 0x13
jg 0x409d0e
je 0x409c5a
cmp eax, 8
je 0x409c32
cmp eax, 0x11
jne 0x409dc8
lea ecx, [ebp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test bl, 1
jne 0x409b86
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0x100
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], 0
jbe 0x409b90
push esi
lea ecx, [ebp - 0x60]
call fcn.00409fa0
mov edi, dword [ebp - 0x60]
test edi, edi
jne 0x409b96
lea edx, [ebp - 0x5c]
test edx, edx
je 0x409b86
lea ecx, [ebp - 0x60]
call fcn.00409f60
mov eax, 0x80004005
jmp 0x409ddd
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x60], edi
mov ecx, esi
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
test ebx, ebx
jle 0x409bec
mov edi, edi
mov eax, dword [ebp - 0x60]
mov esi, edi
shr esi, 1
add esi, eax
xor eax, eax
mov al, byte [ebp + edi + 0xa4]
push eax
call fcn.00409ef0
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
mov ecx, 4
sub ecx, edx
mov dl, byte [esi]
shl al, cl
add esp, 4
or dl, al
inc edi
cmp edi, ebx
mov byte [esi], dl
jl 0x409bb0
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
push esi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x60]
mov esi, eax
lea eax, [ebp - 0x5c]
cmp ecx, eax
je 0x409c19
lea ecx, [ebp - 0x60]
call fcn.00409f60
mov ebx, dword [ebp - 0x70]
test esi, esi
je 0x409dc8
push esi
call fcn.004097f0
add esp, 4
jmp 0x409ddd
lea ecx, [ebp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [edi]
lea edx, [ebp + 0xa4]
push edx
push 1
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x409c1c
call dword [0x424550]
lea ecx, [ebp + 0xa4]
push ecx
mov ebx, eax
mov dword [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x400
ja 0x409ca2
push edi
call fcn.004081b0
add esp, 4
test al, al
je 0x409ca2
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00414ee0
mov eax, esp
jmp 0x409cab
push edi
lea ecx, [ebp - 0x64]
call fcn.00408400
push ebx
push esi
lea edx, [ebp + 0xa4]
push edx
push eax
call fcn.00408240
test eax, eax
jne 0x409cd0
lea ecx, [ebp - 0x64]
call fcn.00408300
mov eax, 0x8007000e
jmp 0x409ddd
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x6c]
push 4
lea eax, [ebp - 0x80]
push eax
push 4
mov dword [ebp - 0x80], edx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x64]
mov esi, eax
call fcn.00408300
jmp 0x409c19
cmp eax, 0x4008
jne 0x409dc8
lea ecx, [ebp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
call fcn.00409f70
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x409dab
mov al, byte [ebp + 0xa4]
test al, al
lea esi, [ebp + 0xa4]
je 0x409d91
mov edi, edi
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x409d72
cmp byte [eax], 0x30
jne 0x409d72
mov byte [edi], 0
push eax
inc edi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x409d8c
xor edx, edx
mov byte [edi], cl
mov dl, byte [esi]
push edx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x409d8a
mov al, byte [esi + 1]
inc edi
inc esi
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x409d50
mov edx, dword [ebp - 0x6c]
mov byte [edi], 0
mov ecx, dword [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x68]
push edx
call fcn.00409e00
mov edi, dword [ebp - 0x60]
mov esi, eax
jmp 0x409db0
mov esi, 0xe
lea eax, [ebp - 0x5c]
cmp edi, eax
je 0x409c1c
lea ecx, [ebp - 0x60]
call fcn.00409f60
jmp 0x409c1c
mov ecx, dword [ebp - 0x7c]
push ecx
mov ecx, ebx
call fcn.00408c60
xor edx, edx
test eax, eax
setge dl
dec edx
and eax, edx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10a4]
xor ecx, ebp
call fcn.004144ff
add ebp, 0x10a8
mov esp, ebp
pop ebp
ret 0xc