Function at 0x40ccc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d2d1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1138
call fcn.00534ce0
mov eax, dword [0x5b7f60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1130], eax
lea eax, [ebp - 0x1018]
mov edi, esi
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x112c], ecx
mov dword [ebp - 0x113c], edx
mov dword [ebp - 0x1124], 0
call fcn.0040d530
test eax, eax
js 0x40d139
lea eax, [ebp - 0x1124]
push eax
lea ebx, [ebp - 0x1018]
call fcn.0040c950
add esp, 4
test eax, eax
jne 0x40cd56
mov eax, 0x80020009
jmp 0x40d139
call fcn.0040dd90
lea eax, [ebp - 0x1018]
mov edi, esi
call fcn.0040d530
xor ebx, ebx
cmp eax, ebx
jl 0x40d139
movzx eax, word [ebp - 0x1124]
cmp eax, 0x13
jg 0x40d002
je 0x40cf30
cmp eax, 8
je 0x40cf0e
cmp eax, 0x11
jne 0x40d11e
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov dword [ebp - 0x1128], ebx
test bl, 1
jne 0x40ce4d
cdq
sub eax, edx
mov edi, eax
sar edi, 1
xor eax, eax
mov dword [ebp - 0x1124], edi
mov dword [ebp - 0x1120], eax
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
cmp eax, eax
ja 0x40cde1
cmp edi, 0xffffffff
jbe 0x40cdeb
push 0x80070216
call fcn.00406540
cmp edi, 0x100
jbe 0x40ce22
lea edx, [ebp - 0x1120]
push edx
mov eax, edi
call fcn.0040cc70
jmp 0x40ce2e
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x1120], eax
mov eax, dword [ebp - 0x1120]
test eax, eax
jne 0x40ce57
lea ecx, [ebp - 0x111c]
test ecx, ecx
je 0x40ce4d
lea eax, [ebp - 0x1120]
call fcn.0040c160
mov eax, 0x80004005
jmp 0x40d139
push edi
push 0
push eax
call fcn.00534390
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x40cec8
lea esp, [esp]
mov al, byte [ebp + esi - 0x1018]
movsx ecx, al
mov edx, esi
shr edx, 1
add edx, dword [ebp - 0x1120]
add ecx, 0xffffffd0
cmp ecx, 0x36
ja case.0x40ce93.58
movzx ecx, byte [ecx + 0x40d170]
jmp dword [ecx*4 + 0x40d160]
sub al, 0x30
jmp 0x40cea8
sub al, 0x37
jmp 0x40cea8
sub al, 0x57
jmp 0x40cea8
xor al, al
mov ecx, esi
and ecx, 1
add ecx, ecx
lea edi, [ecx + ecx]
mov ecx, 4
sub ecx, edi
shl al, cl
inc esi
or byte [edx], al
cmp esi, ebx
jl 0x40ce70
mov edi, dword [ebp - 0x1124]
mov ecx, dword [ebp - 0x1120]
mov edx, dword [ebp - 0x1130]
mov eax, dword [edx]
mov edx, dword [ebp - 0x112c]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x111c]
cmp dword [ebp - 0x1120], eax
je 0x40d10f
lea eax, [ebp - 0x1120]
call fcn.0040c160
jmp 0x40d10f
mov edx, dword [ebp - 0x112c]
push 1
lea ecx, [ebp - 0x1018]
push ecx
mov ecx, dword [ebp - 0x1130]
push edx
call fcn.0040ca00
mov esi, eax
jmp 0x40d10f
mov dword [ebp - 0x1124], ebx
lea eax, [ebp - 0x1018]
push eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 2
push eax
lea ecx, [ebp - 0x1128]
push ecx
mov dword [ebp - 0x1128], eax
call fcn.0040cab0
add esp, 0xc
test eax, eax
js 0x40cfb2
mov esi, dword [ebp - 0x1128]
cmp esi, 0x400
jg 0x40cf90
push esi
call fcn.0040cb20
add esp, 4
test al, al
je 0x40cf90
mov eax, esi
call fcn.00534b70
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40cf9c
push esi
lea ecx, [ebp - 0x1124]
call fcn.0040cc10
push 3
shr esi, 1
push esi
lea edx, [ebp - 0x1018]
push edx
push eax
call fcn.0040cae0
cmp eax, ebx
jne 0x40cfc7
lea ecx, [ebp - 0x1124]
call fcn.0040ca90
mov eax, 0x8007000e
jmp 0x40d139
lea ecx, [ebp - 0x1138]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edx, dword [ebp - 0x1138]
mov eax, dword [ebp - 0x112c]
mov ecx, dword [ebp - 0x1130]
push edx
push eax
call fcn.0040cc50
lea ecx, [ebp - 0x1124]
mov esi, eax
call fcn.0040ca90
jmp 0x40d10f
cmp eax, 0x4008
jne 0x40d11e
lea ecx, [ebp - 0x1018]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
mov dword [ebp - 0x1120], ebx
xor ecx, ecx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp ecx, ebx
ja 0x40d035
cmp eax, 0xffffffff
jbe 0x40d03f
push 0x80070216
call fcn.00406540
cmp eax, 0x100
jbe 0x40d067
lea edx, [ebp - 0x1120]
push edx
call fcn.0040cc70
jmp 0x40d073
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x1120], eax
mov ebx, dword [ebp - 0x1120]
test ebx, ebx
je 0x40d0f1
cmp byte [ebp - 0x1018], 0
lea esi, [ebp - 0x1018]
je 0x40d0ce
mov edi, dword [sym.imp.USER32.dll_CharNextA]
push esi
call edi
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40d0ac
cmp byte [eax], 0x30
jne 0x40d0ac
mov byte [ebx], 0
push eax
inc ebx
call edi
mov esi, eax
jmp 0x40d0c9
mov byte [ebx], cl
movzx ecx, byte [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40d0c7
mov al, byte [esi + 1]
inc esi
inc ebx
test al, al
je 0x40d0ce
mov byte [ebx], al
inc ebx
inc esi
cmp byte [esi], 0
jne 0x40d092
mov eax, dword [ebp - 0x112c]
mov ecx, dword [ebp - 0x1130]
mov word [ebx], 0
mov edx, dword [ebp - 0x1120]
push edx
push eax
push ecx
call fcn.0040ca40
mov esi, eax
jmp 0x40d0f6
mov esi, 0xe
lea edx, [ebp - 0x111c]
cmp dword [ebp - 0x1120], edx
je 0x40d10f
lea eax, [ebp - 0x1120]
call fcn.0040c160
xor ebx, ebx
cmp esi, ebx
je 0x40d11e
mov eax, esi
call fcn.0040d520
jmp 0x40d139
mov eax, dword [ebp - 0x113c]
mov edi, dword [ebp - 0x1134]
call fcn.0040d530
xor ecx, ecx
cmp eax, ebx
setge cl
dec ecx
and eax, ecx
lea esp, [ebp - 0x1158]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005319a6
mov esp, ebp
pop ebp
ret 8