Function at 0x403709
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x2114
lea ebp, [esp - 0x6c]
call fcn.00417cd0
mov eax, dword [0x427300]
push esi
mov dword [ebp + 0x68], eax
push edi
lea eax, [ebp - 0x209c]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20a4], esi
mov dword [ebp - 0x20a0], edi
call fcn.00401760
cmp eax, edi
jl 0x4039c4
lea eax, [ebp - 0x20a0]
push eax
lea eax, [ebp - 0x209c]
push eax
call fcn.00401601
test eax, eax
pop ecx
pop ecx
jne 0x403769
mov eax, 0x80020009
jmp 0x4039c4
mov ecx, esi
call fcn.0040173e
lea eax, [ebp - 0x209c]
push eax
mov ecx, esi
call fcn.00401760
cmp eax, edi
jl 0x4039c4
movzx eax, word [ebp - 0x20a0]
sub eax, 8
push ebx
je 0x40398c
sub eax, 9
je 0x4038a6
dec eax
dec eax
je 0x403861
sub eax, 0x3ff5
jne 0x4039af
lea eax, [ebp - 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], edi
call fcn.00402514
mov esi, dword [ebp - 0x9c]
cmp esi, edi
je 0x40383c
cmp word [ebp - 0x209c], 0
lea edi, [ebp - 0x209c]
je 0x403821
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x403814
cmp word [eax], 0x30
jne 0x403814
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x40381b
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x4037f5
and word [esi], 0
push dword [ebp - 0x9c]
mov ecx, dword [ebp + 0x74]
push dword [ebp + 0x78]
call fcn.00401500
mov esi, eax
xor edi, edi
jmp 0x40383f
push 0xe
pop esi
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x4039a2
lea ecx, [ebp - 0x9c]
call fcn.00401ef5
jmp 0x4039a2
call dword [0x427080]
lea eax, [ebp - 0x20a0]
push eax
push edi
push edi
lea eax, [ebp - 0x209c]
push eax
mov dword [ebp - 0x20a8], edi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x20a0]
mov ecx, dword [ebp + 0x74]
push dword [ebp + 0x78]
call fcn.004014ba
lea ecx, [ebp - 0x20a8]
mov esi, eax
call fcn.00401a5a
jmp 0x4039a2
lea eax, [ebp - 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 0x20a0], eax
je 0x4038c7
mov eax, 0x80004005
jmp 0x4039c3
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], edi
call fcn.00402514
cmp dword [ebp - 0x9c], edi
jne 0x4038ff
lea eax, [ebp - 0x98]
test eax, eax
je 0x4038bd
lea ecx, [ebp - 0x9c]
call fcn.00401ef5
jmp 0x4038bd
push ebx
push edi
push dword [ebp - 0x9c]
call fcn.004177d0
add esp, 0xc
cmp dword [ebp - 0x20a0], edi
jle 0x403956
mov ecx, dword [ebp - 0x9c]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
xor eax, eax
mov ax, word [ebp + edi*2 - 0x209c]
push eax
call fcn.00401693
pop ecx
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x20a0]
jl 0x403917
xor edi, edi
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x9c]
push 3
push edi
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x4039a2
lea ecx, [ebp - 0x9c]
call fcn.00401ef5
jmp 0x4039a2
mov ecx, dword [ebp + 0x74]
push 1
lea eax, [ebp - 0x209c]
push eax
push dword [ebp + 0x78]
call fcn.004014d4
mov esi, eax
cmp esi, edi
je 0x4039af
push esi
call fcn.004011ac
pop ecx
jmp 0x4039c3
push dword [ebp + 0x7c]
mov ecx, dword [ebp - 0x20a4]
call fcn.00401760
cmp eax, edi
jl 0x4039c3
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
call fcn.004177b3
add ebp, 0x6c
leave
ret 0xc