Function at 0x4037e0
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.004080f0
push 0xffffffffffffffff
push 0x408e58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x40e4b8]
xor eax, ebp
mov dword [ebp + 0x2104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov edi, dword [ebp + 0x2110]
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp + 0x2114]
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 0x2118]
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0x14], esi
lea edx, [ebp + 0x104]
push edx
call fcn.00401aa0
cmp eax, esi
jl 0x403b14
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x104]
push ecx
call fcn.00401890
add esp, 8
test eax, eax
jne 0x403878
mov eax, 0x80020009
jmp 0x403b14
mov ecx, dword [ebp - 0x20]
call fcn.00401a40
lea edx, [ebp + 0x104]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.00401aa0
cmp eax, esi
jl 0x403b14
movzx eax, word [ebp - 0x14]
cmp eax, 0x13
jg 0x403a1a
je 0x4039db
cmp eax, 8
je 0x4039c3
cmp eax, 0x11
jne 0x403afe
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test bl, 1
jne 0x403930
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x14], edi
mov dword [ebp], esi
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
push edi
lea ecx, [ebp]
call fcn.004033a0
mov dword [ebp - 4], 4
jmp 0x403912
mov eax, dword [ebp]
cmp eax, esi
jne 0x40393a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x403930
lea ecx, [ebp]
call fcn.00401f20
mov eax, 0x80004005
jmp 0x403b14
push edi
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp ebx, esi
jle 0x403989
lea esp, [esp]
mov edx, esi
shr edx, 1
mov eax, dword [ebp]
lea edi, [edx + eax]
movzx ecx, word [ebp + esi*2 + 0x104]
push ecx
call fcn.00401990
add esp, 4
mov edx, esi
and edx, 1
add edx, edx
add edx, edx
mov ecx, 4
sub ecx, edx
shl al, cl
or byte [edi], al
inc esi
cmp esi, ebx
jl 0x403950
xor esi, esi
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
push edi
mov ecx, dword [ebp]
push ecx
push 3
push esi
mov edx, dword [ebp - 0x24]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x403aef
lea ecx, [ebp]
call fcn.00401f20
jmp 0x403aef
push 1
lea ecx, [ebp + 0x104]
push ecx
push ebx
mov ecx, edi
call fcn.004016b0
mov edi, eax
jmp 0x403aef
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 3
lea edx, [ebp - 0x1c]
push edx
push esi
push esi
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ecx, dword [ebp - 0x1c]
push ecx
push ebx
mov ecx, edi
call fcn.00401690
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401eb0
jmp 0x403aef
cmp eax, 0x4008
jne 0x403afe
lea edx, [ebp + 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
mov dword [ebp], esi
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp]
call fcn.00403350
mov dword [ebp - 4], esi
jmp 0x403a5c
mov eax, dword [ebp]
cmp eax, esi
je 0x403ad3
mov esi, eax
lea edi, [ebp + 0x104]
cmp word [ebp + 0x104], 0
je 0x403ab0
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
jmp 0x403a80
push edi
call ebx
movzx ecx, word [edi]
cmp cx, 0x5c
jne 0x403aa1
cmp word [eax], 0x30
jne 0x403aa1
xor ecx, ecx
mov word [esi], cx
add esi, 2
push eax
call ebx
mov edi, eax
jmp 0x403aaa
mov word [esi], cx
add esi, 2
add edi, 2
cmp word [edi], 0
jne 0x403a80
xor edx, edx
mov word [esi], dx
add esi, 2
xor eax, eax
mov word [esi], ax
mov ecx, dword [ebp]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.004016f0
mov edi, eax
xor esi, esi
jmp 0x403ad8
mov edi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x403aef
lea ecx, [ebp]
call fcn.00401f20
cmp edi, esi
je 0x403afe
push edi
call fcn.00401450
add esp, 4
jmp 0x403b14
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00401aa0
xor edx, edx
cmp eax, esi
setge dl
dec edx
and eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2104]
xor ecx, ebp
call fcn.004080de
add ebp, 0x2108
mov esp, ebp
pop ebp
ret 0xc