Function at 0x41518e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1120
call fcn.00431ab0
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x110c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1120], eax
mov edi, ecx
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x111c], edi
push eax
mov dword [ebp - 0x1114], ebx
mov dword [ebp - 0x1118], esi
call fcn.0041592e
test eax, eax
js 0x4155ad
lea edx, [ebp - 0x110c]
lea ecx, [ebp - 0x1004]
call fcn.00414f8d
test eax, eax
jne 0x415205
mov eax, 0x80020009
jmp 0x4155ad
mov ecx, edi
call fcn.00415fd7
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
call fcn.0041592e
test eax, eax
js 0x4155ad
movzx eax, word [ebp - 0x110c]
sub eax, 8
je 0x41555b
sub eax, 9
je 0x415456
dec eax
sub eax, 1
je 0x415365
sub eax, 0x3ff5
jne 0x41559a
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415259
and dword [ebp - 0x1108], 0
sub ecx, edx
add ecx, 2
call fcn.004150ee
cmp eax, 0x100
jbe 0x41528c
push eax
lea ecx, [ebp - 0x1108]
call fcn.00414a34
mov esi, dword [ebp - 0x1108]
jmp 0x415298
lea esi, [ebp - 0x1104]
mov dword [ebp - 0x1108], esi
test esi, esi
je 0x415344
cmp byte [ebp - 0x1004], 0
lea edi, [ebp - 0x1004]
je 0x4152ef
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x4152ce
cmp byte [eax], 0x30
jne 0x4152ce
push eax
mov byte [esi], 0
call ebx
mov edi, eax
jmp 0x4152e9
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4152e8
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x4152ef
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
jne 0x4152b5
mov word [esi], 0
mov esi, dword [ebp - 0x1108]
test esi, esi
jne 0x415302
push 0xd
jmp 0x415346
xor edx, edx
mov edi, esi
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41530b
sub ecx, ebx
lea eax, [ecx + 1]
add edi, eax
add edx, eax
cmp eax, 1
jne 0x415306
mov eax, dword [ebp - 0x1114]
push edx
push esi
push 7
push 0
push dword [ebp - 0x1118]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [ebp - 0x1108]
mov edi, eax
jmp 0x415347
push 0xe
pop edi
lea eax, [ebp - 0x1104]
cmp esi, eax
je 0x415587
lea ecx, [ebp - 0x1108]
call fcn.00414a18
jmp 0x415587
xor esi, esi
lea edx, [ebp - 0x1004]
mov dword [ebp - 0x1110], esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x415376
sub edx, ecx
inc edx
push ecx
lea ecx, [ebp - 0x110c]
mov dword [ebp - 0x110c], edx
call fcn.0041686a
test eax, eax
js 0x41543b
mov edi, dword [ebp - 0x110c]
cmp edi, 0x400
jg 0x4153be
mov ecx, edi
call fcn.00415039
test al, al
je 0x4153be
mov eax, edi
call fcn.00431a80
mov eax, esp
jmp 0x4153d0
push edi
lea ecx, [ebp - 0x1110]
call fcn.004150b2
mov esi, dword [ebp - 0x1110]
push 3
shr edi, 1
lea edx, [ebp - 0x1004]
push edi
mov ecx, eax
call fcn.00415006
test eax, eax
je 0x41543b
lea ecx, [ebp - 0x1114]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test edi, edi
js 0x41544b
mov eax, dword [ebp - 0x1114]
push 4
mov dword [ebp - 0x1110], eax
lea eax, [ebp - 0x1110]
push eax
push 4
push 0
push dword [ebp - 0x1118]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
jmp 0x415432
push esi
mov esi, dword [esi]
call fcn.0041c083
pop ecx
test esi, esi
jne 0x415429
jmp 0x415587
mov edi, 0x8007000e
jmp 0x41544b
push esi
mov esi, dword [esi]
call fcn.0041c083
pop ecx
test esi, esi
jne 0x415442
mov eax, edi
jmp 0x4155ad
lea ebx, [ebp - 0x1004]
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x41545f
sub ebx, ecx
test bl, 1
jne 0x4154c0
and dword [ebp - 0x1108], 0
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov ecx, esi
mov dword [ebp - 0x110c], esi
call fcn.004150ee
cmp eax, 0x100
jbe 0x4154a5
push eax
lea ecx, [ebp - 0x1108]
call fcn.00414a34
mov eax, dword [ebp - 0x1108]
jmp 0x4154b1
lea eax, [ebp - 0x1104]
mov dword [ebp - 0x1108], eax
test eax, eax
jne 0x4154ca
lea ecx, [ebp - 0x1108]
call fcn.00414a18
mov eax, 0x80004005
jmp 0x4155ad
push esi
push 0
push eax
call fcn.00419ee0
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x1110], edx
test ebx, ebx
jle 0x41551f
mov cl, byte [ebp + edx - 0x1004]
mov edi, edx
mov esi, dword [ebp - 0x1108]
shr edi, 1
call fcn.0041510e
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
mov edx, dword [ebp - 0x1110]
shl al, cl
or byte [edi + esi], al
inc edx
mov dword [ebp - 0x1110], edx
cmp edx, ebx
jl 0x4154e2
mov esi, dword [ebp - 0x110c]
mov eax, dword [ebp - 0x1114]
push esi
push dword [ebp - 0x1108]
push 3
push 0
push dword [ebp - 0x1118]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x1104]
cmp dword [ebp - 0x1108], eax
je 0x415587
lea ecx, [ebp - 0x1108]
call fcn.00414a18
jmp 0x415587
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415564
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x1004]
push eax
push 1
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x415594
mov ecx, edi
call fcn.0041591e
jmp 0x4155ad
mov edi, dword [ebp - 0x111c]
push dword [ebp - 0x1120]
mov ecx, edi
call fcn.0041592e
test eax, eax
js 0x4155ad
xor eax, eax
lea esp, [ebp - 0x112c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418af8
leave
ret 0xc