Function at 0x40bb17
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x10a0]
mov eax, 0x1120
call fcn.0042e6d0
mov eax, dword [0x46a470]
xor eax, ebp
mov dword [ebp + 0x109c], eax
mov eax, dword [ebp + 0x10b0]
push ebx
mov ebx, dword [ebp + 0x10ac]
push esi
mov esi, dword [ebp + 0x10a8]
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x9c]
xor edi, edi
push eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], edi
call fcn.0040ac25
cmp eax, edi
jl 0x40be0c
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x9c]
push eax
call fcn.0040aabb
pop ecx
pop ecx
test eax, eax
jne 0x40bb90
mov eax, 0x80020009
jmp 0x40be0c
mov ecx, dword [ebp - 0x7c]
call fcn.0040ac03
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp + 0x9c]
push eax
call fcn.0040ac25
cmp eax, edi
jl 0x40be0c
movzx eax, word [ebp - 0x6c]
sub eax, 8
je 0x40bddb
sub eax, 9
je 0x40bd23
dec eax
dec eax
je 0x40bc81
sub eax, 0x3ff5
jne 0x40bdfb
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
inc eax
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], edi
call fcn.0040b83c
mov esi, dword [ebp - 0x68]
cmp esi, edi
je 0x40bc65
cmp byte [ebp + 0x9c], 0
lea edi, [ebp + 0x9c]
je 0x40bc4a
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x40bc29
cmp byte [eax], 0x30
jne 0x40bc29
mov byte [esi], 0
push eax
inc esi
call ebx
mov edi, eax
jmp 0x40bc45
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40bc43
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x40bc4a
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x40bc0f
mov ecx, dword [ebp - 0x74]
mov byte [esi], 0
mov byte [esi + 1], 0
push dword [ebp - 0x68]
push dword [ebp - 0x78]
call fcn.0040a931
mov esi, eax
xor edi, edi
jmp 0x40bc68
push 0xe
pop esi
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x40bdee
lea ecx, [ebp - 0x68]
call fcn.0040af54
jmp 0x40bdee
lea eax, [ebp + 0x9c]
push eax
mov dword [ebp - 0x6c], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 2
push eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040a4b3
add esp, 0xc
test eax, eax
jl 0x40bce8
mov ebx, dword [ebp - 0x70]
cmp ebx, 0x400
jg 0x40bcc9
push ebx
call fcn.0040b05d
pop ecx
test al, al
je 0x40bcc9
mov eax, ebx
call fcn.0042edf0
mov eax, esp
jmp 0x40bcd2
push ebx
lea ecx, [ebp - 0x6c]
call fcn.0040b207
push 3
shr ebx, 1
push ebx
lea ecx, [ebp + 0x9c]
push ecx
push eax
call fcn.0040a587
cmp eax, edi
jne 0x40bcfa
lea ecx, [ebp - 0x6c]
call fcn.0040ae09
mov eax, 0x8007000e
jmp 0x40be0c
lea ecx, [ebp - 0x74]
push ecx
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x74]
mov ecx, esi
push dword [ebp - 0x78]
call fcn.0040a8e3
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.0040ae09
jmp 0x40bdee
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x70], eax
test al, 1
je 0x40bd41
mov eax, 0x80004005
jmp 0x40be0c
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], edi
call fcn.0040b858
cmp dword [ebp - 0x68], edi
jne 0x40bd6a
lea eax, [ebp - 0x64]
test eax, eax
je 0x40bd37
lea ecx, [ebp - 0x68]
call fcn.0040af5d
jmp 0x40bd37
push ebx
push edi
push dword [ebp - 0x68]
call fcn.00429d40
add esp, 0xc
cmp dword [ebp - 0x70], edi
jle 0x40bdb4
mov ecx, dword [ebp - 0x68]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, byte [ebp + edi + 0x9c]
push eax
call fcn.0040ab4f
pop ecx
mov edx, edi
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x70]
jl 0x40bd7c
mov esi, dword [ebp - 0x74]
xor edi, edi
mov eax, dword [esi]
push ebx
push dword [ebp - 0x68]
push 3
push edi
push dword [ebp - 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x40bdee
lea ecx, [ebp - 0x68]
call fcn.0040af5d
jmp 0x40bdee
push 1
lea eax, [ebp + 0x9c]
push eax
push ebx
mov ecx, esi
call fcn.0040a8fd
mov esi, eax
cmp esi, edi
je 0x40bdfb
push esi
call fcn.0040a6c3
pop ecx
jmp 0x40be0c
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
call fcn.0040ac25
cmp eax, edi
jl 0x40be0c
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x109c]
xor ecx, ebp
call fcn.00429649
add ebp, 0x10a0
leave
ret 0xc