Function at 0x431d50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449776
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1120
call fcn.004421c0
mov eax, dword [0x45b990]
xor eax, ebp
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x1120], eax
mov dword [ebp - 0x112c], ecx
lea eax, [ebp - 0x1014]
mov ecx, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1130], esi
mov dword [ebp - 0x1128], edi
mov dword [ebp - 0x111c], 0
call fcn.00431c30
test eax, eax
jl 0x432148
lea edx, [ebp - 0x111c]
push edx
lea ebx, [ebp - 0x1014]
call fcn.00431aa0
add esp, 4
test eax, eax
jne 0x431de5
mov eax, 0x80020009
jmp 0x432148
call fcn.00431be0
lea eax, [ebp - 0x1014]
mov ecx, esi
call fcn.00431c30
xor ebx, ebx
cmp eax, ebx
jl 0x432148
movzx eax, word [ebp - 0x111c]
cmp eax, 0x13
jg 0x43202c
je 0x431f6f
cmp eax, 8
je 0x431f53
cmp eax, 0x11
jne 0x432131
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test bl, 1
mov dword [ebp - 0x1124], ebx
jne 0x431ea5
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x111c], edi
mov dword [ebp - 0x1118], 0
mov dword [ebp - 4], 3
mov eax, edi
lea esi, [ebp - 0x1118]
mov byte [ebp - 4], 4
call fcn.00433310
jmp 0x431e86
mov edx, dword [ebp - 0x1118]
test edx, edx
jne 0x431eaf
lea ecx, [ebp - 0x1114]
test ecx, ecx
je 0x431ea5
lea eax, [ebp - 0x1118]
call fcn.004333a0
mov eax, 0x80004005
jmp 0x432148
mov ecx, edi
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
xor esi, esi
test ebx, ebx
rep stosb byte es:[edi], al
jle 0x431f05
lea esp, [esp]
mov ecx, dword [ebp - 0x1118]
mov eax, esi
shr eax, 1
lea edi, [eax + ecx]
mov cl, byte [ebp + esi - 0x1014]
call fcn.00431b40
mov edx, esi
and edx, 1
shl edx, 2
mov ecx, 4
sub ecx, edx
mov dl, byte [edi]
shl al, cl
or dl, al
inc esi
cmp esi, ebx
mov byte [edi], dl
jl 0x431ed0
mov ecx, dword [ebp - 0x111c]
mov edx, dword [ebp - 0x1118]
mov eax, dword [ebp - 0x1128]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp - 0x1120]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov eax, dword [ebp - 0x1118]
lea edx, [ebp - 0x1114]
cmp eax, edx
je 0x43211e
lea eax, [ebp - 0x1118]
call fcn.004333a0
jmp 0x43211e
mov eax, dword [ebp - 0x1120]
push 1
push eax
push edi
lea esi, [ebp - 0x1014]
call fcn.00430ad0
mov ebx, eax
jmp 0x43211e
call dword [0x45ccb0]
lea ecx, [ebp - 0x1014]
push ecx
mov edi, eax
mov dword [ebp - 0x111c], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
lea esi, [ebx + ebx]
cmp esi, 0x400
ja 0x431fb9
push esi
call fcn.00430800
add esp, 4
test al, al
je 0x431fb9
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.004421c0
mov dword [ebp - 0x10], esp
mov esi, esp
jmp 0x431fc8
mov eax, esi
lea esi, [ebp - 0x111c]
call fcn.00433240
mov esi, eax
mov edx, edi
mov ecx, ebx
lea eax, [ebp - 0x1014]
call fcn.00430890
test eax, eax
jne 0x431ff0
lea esi, [ebp - 0x111c]
call fcn.00433260
mov eax, 0x8007000e
jmp 0x432148
lea edx, [ebp - 0x1124]
push edx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1124]
mov ecx, dword [ebp - 0x1120]
mov edx, dword [ebp - 0x1128]
push eax
call fcn.00430ab0
lea esi, [ebp - 0x111c]
mov ebx, eax
call fcn.00433260
jmp 0x43211e
cmp eax, 0x4008
jne 0x432131
lea ecx, [ebp - 0x1014]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x1118], ebx
cmp eax, 0x100
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
jbe 0x4320b0
lea edx, [ebp - 0x1118]
push edx
call fcn.004333b0
mov eax, dword [ebp - 0x1118]
test eax, eax
je 0x432104
mov ebx, eax
mov al, byte [ebp - 0x1014]
test al, al
lea esi, [ebp - 0x1014]
je 0x4320dd
mov edi, dword [sym.imp.USER32.dll_CharNextA]
jmp 0x432090
push esi
call edi
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x4320be
cmp byte [eax], 0x30
jne 0x4320be
mov byte [ebx], 0
push eax
inc ebx
call edi
mov esi, eax
jmp 0x4320d8
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
jmp 0x432073
xor eax, eax
mov byte [ebx], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4320d6
mov cl, byte [esi + 1]
inc ebx
inc esi
mov byte [ebx], cl
inc ebx
inc esi
cmp byte [esi], 0
jne 0x432090
mov eax, dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x1128]
mov byte [ebx], 0
mov edx, dword [ebp - 0x1118]
push edx
push eax
push ecx
call fcn.00430b00
mov ebx, eax
mov eax, dword [ebp - 0x1118]
jmp 0x432109
mov ebx, 0xe
lea edx, [ebp - 0x1114]
cmp eax, edx
je 0x43211e
lea eax, [ebp - 0x1118]
call fcn.004333a0
test ebx, ebx
je 0x43212b
mov eax, ebx
call fcn.00430910
jmp 0x432148
mov esi, dword [ebp - 0x1130]
mov eax, dword [ebp - 0x112c]
mov ecx, esi
call fcn.00431c30
xor ecx, ecx
test eax, eax
setge cl
dec ecx
and eax, ecx
lea esp, [ebp - 0x113c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004395fe
mov esp, ebp
pop ebp
ret 8