Function at 0x404178
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x211c
call fcn.0042d4a0
mov eax, dword [0x47e064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x211c], ecx
lea ecx, [ebp - 0x2004]
push edi
mov edi, dword [ebp + 0xc]
push ecx
mov ecx, eax
mov dword [ebp - 0x2114], eax
mov dword [ebp - 0x2110], ebx
mov dword [ebp - 0x210c], edi
call fcn.00407b40
test eax, eax
js 0x404425
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0x2004]
push 0x46a4d0
push eax
call esi
test eax, eax
jne 0x404020
lea esi, [eax + 8]
jmp 0x404069
push 0x46a4d8
lea eax, [ebp - 0x2004]
push eax
call esi
test eax, eax
jne 0x404039
mov esi, 0x4008
jmp 0x404069
push 0x46a4e0
lea eax, [ebp - 0x2004]
push eax
call esi
test eax, eax
jne 0x404050
lea esi, [eax + 0x13]
jmp 0x404069
push 0x46a4e8
lea eax, [ebp - 0x2004]
push eax
call esi
test eax, eax
jne 0x40441f
lea esi, [eax + 0x11]
mov ecx, dword [ebp - 0x2114]
call fcn.004093b0
mov ecx, dword [ebp - 0x2114]
lea eax, [ebp - 0x2004]
push eax
call fcn.00407b40
test eax, eax
js 0x404424
cmp esi, 0x13
ja 0x4042a1
je 0x404225
cmp esi, 8
je 0x4041ea
cmp esi, 0x11
jne 0x4043f2
lea ebx, [ebp - 0x2004]
lea ecx, [ebx + 2]
nop dword [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4040c0
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x404116
mov eax, ebx
mov dword [ebp - 0x2108], 0
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x2118], esi
cmp esi, 0x100
jbe 0x40412e
push esi
lea ecx, [ebp - 0x2108]
call fcn.00404490
mov eax, dword [ebp - 0x2108]
test eax, eax
jne 0x40413a
lea ecx, [ebp - 0x2108]
call fcn.00406e40
pop esi
pop edi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d480
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
push esi
push 0
push eax
call fcn.0042f790
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x4041a7
nop dword [eax]
movzx edx, word [ebp + edi*2 - 0x2004]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x2108]
lea eax, [edx - 0x30]
cmp eax, 0x36
ja case.0x404171.58
movzx eax, byte [eax + 0x404454]
jmp dword [eax*4 + 0x404444]
sub dl, 0x30
jmp 0x404189
sub dl, 0x37
jmp 0x404189
sub dl, 0x57
jmp 0x404189
xor dl, dl
mov eax, edi
mov ecx, 4
and eax, 1
inc edi
shl eax, 2
sub ecx, eax
shl dl, cl
or byte [esi], dl
cmp edi, ebx
jl 0x404150
mov esi, dword [ebp - 0x2118]
mov eax, dword [ebp - 0x2110]
push esi
push dword [ebp - 0x2108]
push 3
push 0
push dword [ebp - 0x210c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x4043d2
lea ecx, [ebp - 0x2108]
call fcn.00406e40
jmp 0x4043d2
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4041f3
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x4043d2
lea eax, [ebp - 0x2118]
mov dword [ebp - 0x210c], 0
push eax
push 0
push 0
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x40426d
lea ecx, [ebp - 0x210c]
call fcn.00403a00
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d480
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x2118]
push 4
mov dword [ebp - 0x2110], eax
lea eax, [ebp - 0x2110]
push eax
push 4
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x210c]
mov edi, eax
call fcn.00403a00
jmp 0x4043d2
cmp esi, 0x4008
jne 0x4043f2
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4042b6
sub ecx, edx
mov dword [ebp - 0x2108], 0
sar ecx, 1
lea eax, [ecx + 2]
mov ecx, 2
mul ecx
test edx, edx
ja 0x404437
jb 0x4042ec
cmp eax, 0xffffffff
ja 0x404437
cmp eax, 0x100
jbe 0x404311
push eax
lea ecx, [ebp - 0x2108]
call fcn.004044c0
mov esi, dword [ebp - 0x2108]
test esi, esi
jne 0x40431d
lea edi, [esi + 0xe]
jmp 0x4043bd
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
cmp word [ebp - 0x2004], 0
lea edi, [ebp - 0x2004]
je 0x40435f
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x404350
cmp word [eax], 0x30
jne 0x404350
xor ecx, ecx
push eax
mov word [esi], cx
call ebx
mov edi, eax
jmp 0x404356
mov word [esi], cx
add edi, 2
add esi, 2
cmp word [edi], 0
jne 0x404333
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x2108]
test esi, esi
jne 0x404372
lea edi, [eax + 0xd]
jmp 0x4043bd
xor ebx, ebx
mov edx, esi
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404380
sub ecx, edi
sar ecx, 1
inc ecx
lea edx, [edx + ecx*2]
lea ebx, [ebx + ecx*2]
cmp ecx, 1
jne 0x404376
mov eax, dword [ebp - 0x2110]
push ebx
push esi
push 7
push 0
push dword [ebp - 0x210c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x2108]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x4043d2
lea ecx, [ebp - 0x2108]
call fcn.00406e50
test edi, edi
je 0x4043f2
push edi
call fcn.00404710
add esp, 4
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d480
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x211c]
mov ecx, dword [ebp - 0x2114]
call fcn.00407b40
xor ecx, ecx
test eax, eax
pop esi
cmovs ecx, eax
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d480
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x80020009
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042d480
mov esp, ebp
pop ebp
ret 0xc
push 0x80070216
call fcn.00404730
nop dword [eax]
js 0x404487
inc eax
add byte [ebp + 0x41], bh
inc eax
add byte [edx - 0x78ffbfbf], al
inc ecx
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
int3