Function at 0x403772
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x10a4]
mov eax, 0x1124
call fcn.00411360
mov eax, dword [0x42a8c0]
xor eax, ebp
mov dword [ebp + 0x10a0], eax
mov eax, dword [ebp + 0x10b4]
push ebx
mov ebx, dword [ebp + 0x10b0]
push esi
mov esi, dword [ebp + 0x10ac]
push edi
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0xa0]
xor edi, edi
push eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x68], edi
call fcn.004025e6
cmp eax, edi
jl 0x403a6f
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.00402496
test eax, eax
pop ecx
pop ecx
jne 0x4037eb
mov eax, 0x80020009
jmp 0x403a6f
mov ecx, dword [ebp - 0x74]
call fcn.004025c4
mov ecx, dword [ebp - 0x74]
lea eax, [ebp + 0xa0]
push eax
call fcn.004025e6
cmp eax, edi
jl 0x403a6f
movzx eax, word [ebp - 0x68]
sub eax, 8
je 0x403a3e
sub eax, 9
je 0x403986
dec eax
dec eax
je 0x4038dc
sub eax, 0x3ff5
jne 0x403a5e
lea eax, [ebp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
inc eax
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
call fcn.00402f08
mov esi, dword [ebp - 0x64]
cmp esi, edi
je 0x4038c0
cmp byte [ebp + 0xa0], 0
lea edi, [ebp + 0xa0]
je 0x4038a5
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x403884
cmp byte [eax], 0x30
jne 0x403884
mov byte [esi], 0
push eax
inc esi
call ebx
mov edi, eax
jmp 0x4038a0
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40389e
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x4038a5
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x40386a
mov ecx, dword [ebp - 0x70]
mov byte [esi], 0
mov byte [esi + 1], 0
push dword [ebp - 0x64]
push dword [ebp - 0x78]
call fcn.0040234e
mov esi, eax
xor edi, edi
jmp 0x4038c3
push 0xe
pop esi
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x403a51
lea ecx, [ebp - 0x64]
call fcn.0040281a
jmp 0x403a51
call dword [0x42a820]
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0xa0]
push eax
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 2
push eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.004015bb
add esp, 0xc
test eax, eax
jl 0x40394b
mov ebx, dword [ebp - 0x6c]
cmp ebx, 0x400
jg 0x40392d
push ebx
call fcn.00401cb1
test al, al
pop ecx
je 0x40392d
mov eax, ebx
call fcn.004111f0
mov eax, esp
jmp 0x403936
push ebx
lea ecx, [ebp - 0x68]
call fcn.00401f58
push dword [ebp - 0x70]
lea ecx, [ebp + 0xa0]
push ebx
push ecx
push eax
call fcn.004015e8
cmp eax, edi
jne 0x40395d
lea ecx, [ebp - 0x68]
call fcn.00401af1
mov eax, 0x8007000e
jmp 0x403a6f
lea ecx, [ebp - 0x80]
push ecx
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x80]
mov ecx, esi
push dword [ebp - 0x78]
call fcn.004022fb
lea ecx, [ebp - 0x68]
mov esi, eax
call fcn.00401af1
jmp 0x403a51
lea eax, [ebp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x6c], eax
je 0x4039a4
mov eax, 0x80004005
jmp 0x403a6f
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
call fcn.00402f08
cmp dword [ebp - 0x64], edi
jne 0x4039cd
lea eax, [ebp - 0x60]
test eax, eax
je 0x40399a
lea ecx, [ebp - 0x64]
call fcn.0040281a
jmp 0x40399a
push ebx
push edi
push dword [ebp - 0x64]
call fcn.004109f0
add esp, 0xc
cmp dword [ebp - 0x6c], edi
jle 0x403a17
mov ecx, dword [ebp - 0x64]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, byte [ebp + edi + 0xa0]
push eax
call fcn.00402528
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 - 0x6c]
jl 0x4039df
mov esi, dword [ebp - 0x70]
xor edi, edi
mov eax, dword [esi]
push ebx
push dword [ebp - 0x64]
push 3
push edi
push dword [ebp - 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x403a51
lea ecx, [ebp - 0x64]
call fcn.0040281a
jmp 0x403a51
push 1
lea eax, [ebp + 0xa0]
push eax
push ebx
mov ecx, esi
call fcn.00402315
mov esi, eax
cmp esi, edi
je 0x403a5e
push esi
call fcn.0040219b
pop ecx
jmp 0x403a6f
push dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x74]
call fcn.004025e6
cmp eax, edi
jl 0x403a6f
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10a0]
xor ecx, ebp
call fcn.00410c90
add ebp, 0x10a4
leave
ret 0xc