Function at 0x40d8c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1120
call fcn.0041e560
mov eax, dword [0x475aa8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
mov ecx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x1120], ecx
lea ecx, [ebp - 0x1004]
push edi
mov edi, dword [ebp + 0xc]
push ecx
mov ecx, eax
mov dword [ebp - 0x111c], eax
mov dword [ebp - 0x1118], ebx
mov dword [ebp - 0x1114], edi
call fcn.00410490
test eax, eax
js 0x40dd84
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x1004]
push 0x464668
push eax
call esi
test eax, eax
jne 0x40d930
lea esi, [eax + 8]
jmp 0x40d979
push 0x464670
lea eax, [ebp - 0x1004]
push eax
call esi
test eax, eax
jne 0x40d949
mov esi, 0x4008
jmp 0x40d979
push 0x464678
lea eax, [ebp - 0x1004]
push eax
call esi
test eax, eax
jne 0x40d960
lea esi, [eax + 0x13]
jmp 0x40d979
push 0x464680
lea eax, [ebp - 0x1004]
push eax
call esi
test eax, eax
jne 0x40dd7f
lea esi, [eax + 0x11]
mov ecx, dword [ebp - 0x111c]
call fcn.00415790
mov ecx, dword [ebp - 0x111c]
lea eax, [ebp - 0x1004]
push eax
call fcn.00410490
test eax, eax
js 0x40dd84
cmp esi, 0x13
ja 0x40dc38
je 0x40db0d
cmp esi, 8
je 0x40dadc
cmp esi, 0x11
jne 0x40dd63
lea ebx, [ebp - 0x1004]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x40d9c8
sub ebx, ecx
test bl, 1
jne 0x40da18
mov eax, ebx
mov dword [ebp - 0x1108], 0
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x110c], esi
cmp esi, 0x100
jbe 0x40da22
push esi
lea ecx, [ebp - 0x1108]
call fcn.0040dea0
mov eax, dword [ebp - 0x1108]
test eax, eax
jne 0x40da2e
lea ecx, [ebp - 0x1108]
call fcn.0040fb10
mov eax, 0x80004005
jmp 0x40dd84
lea eax, [ebp - 0x1104]
mov dword [ebp - 0x1108], eax
push esi
push 0
push eax
call fcn.00420310
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x40da99
mov dl, byte [ebp + edi - 0x1004]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x1108]
movsx eax, dl
add eax, 0xffffffd0
cmp eax, 0x36
ja case.0x40da63.58
movzx eax, byte [eax + 0x40ddb0]
jmp dword [eax*4 + 0x40dda0]
sub dl, 0x30
jmp 0x40da7b
sub dl, 0x37
jmp 0x40da7b
sub dl, 0x57
jmp 0x40da7b
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 0x40da40
mov esi, dword [ebp - 0x110c]
mov eax, dword [ebp - 0x1118]
push esi
push dword [ebp - 0x1108]
push 3
push 0
push dword [ebp - 0x1114]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
lea eax, [ebp - 0x1104]
cmp dword [ebp - 0x1108], eax
je 0x40dd54
lea ecx, [ebp - 0x1108]
call fcn.0040fb10
jmp 0x40dd54
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dae5
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x1004]
push eax
push 1
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
jmp 0x40dd54
xor esi, esi
lea ecx, [ebp - 0x1004]
mov dword [ebp - 0x110c], esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40db20
sub ecx, edx
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x1110], eax
lea eax, [ebp - 0x1110]
push eax
call fcn.0040cfe0
add esp, 0xc
test eax, eax
js 0x40dc16
mov edi, dword [ebp - 0x1110]
cmp edi, 0x400
jg 0x40db72
push edi
call fcn.00416be0
add esp, 4
test al, al
je 0x40db72
mov eax, edi
call fcn.0041e530
mov ebx, esp
jmp 0x40db86
push edi
lea ecx, [ebp - 0x110c]
call fcn.0040ddf0
mov esi, dword [ebp - 0x110c]
mov ebx, eax
test ebx, ebx
je 0x40dc16
shr edi, 1
xor eax, eax
push edi
push ebx
push 0xffffffffffffffff
mov word [ebx], ax
lea eax, [ebp - 0x1004]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40dc16
lea eax, [ebp - 0x1110]
push eax
push 0
push 0
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov ebx, eax
test ebx, ebx
js 0x40dc1b
mov eax, dword [ebp - 0x1110]
push 4
mov dword [ebp - 0x110c], eax
lea eax, [ebp - 0x110c]
push eax
mov eax, dword [ebp - 0x1118]
push 4
push 0
push dword [ebp - 0x1114]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test esi, esi
je 0x40dd54
nop dword [eax]
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.0043b14e
add esp, 4
test edi, edi
jne 0x40dc00
jmp 0x40dd54
mov ebx, 0x8007000e
test esi, esi
je 0x40dc31
nop
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.0043b14e
add esp, 4
test edi, edi
jne 0x40dc20
mov eax, ebx
jmp 0x40dd84
cmp esi, 0x4008
jne 0x40dd63
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dc50
sub ecx, edx
mov dword [ebp - 0x1108], 0
add ecx, 2
cmp ecx, 0x100
jbe 0x40dc8c
push ecx
lea ecx, [ebp - 0x1108]
call fcn.0040de40
mov edi, dword [ebp - 0x1108]
test edi, edi
jne 0x40dc98
lea ebx, [edi + 0xe]
jmp 0x40dd3f
lea edi, [ebp - 0x1104]
mov dword [ebp - 0x1108], edi
cmp byte [ebp - 0x1004], 0
lea esi, [ebp - 0x1004]
je 0x40dceb
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
nop dword [eax]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40dcc9
cmp byte [eax], 0x30
jne 0x40dcc9
push eax
mov byte [edi], 0
call ebx
mov esi, eax
jmp 0x40dce5
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40dce4
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
je 0x40dceb
mov byte [edi], al
inc esi
inc edi
cmp byte [esi], 0
jne 0x40dcb0
mov word [edi], 0
mov edi, dword [ebp - 0x1108]
test edi, edi
jne 0x40dcff
lea ebx, [edi + 0xd]
jmp 0x40dd3f
xor esi, esi
mov edx, edi
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dd08
sub ecx, ebx
lea eax, [ecx + 1]
add edx, eax
add esi, eax
cmp eax, 1
jne 0x40dd03
mov eax, dword [ebp - 0x1118]
push esi
push edi
push 7
push 0
push dword [ebp - 0x1114]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [ebp - 0x1108]
mov ebx, eax
lea eax, [ebp - 0x1104]
cmp edi, eax
je 0x40dd54
lea ecx, [ebp - 0x1108]
call fcn.0040faf0
test ebx, ebx
je 0x40dd63
push ebx
call fcn.0040e020
add esp, 4
jmp 0x40dd84
push dword [ebp - 0x1120]
mov ecx, dword [ebp - 0x111c]
call fcn.00410490
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
jmp 0x40dd84
mov eax, 0x80020009
lea esp, [ebp - 0x112c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041de32
mov esp, ebp
pop ebp
ret 0xc