Function at 0x419889
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x1124
lea ebp, [esp - 0x10a4]
call fcn.0041f6a0
mov eax, dword [0x424050]
and dword [ebp - 0x68], 0
xor eax, ebp
push ebx
mov ebx, dword [ebp + 0x10ac]
mov dword [ebp + 0x10a0], eax
mov eax, dword [ebp + 0x10b0]
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0xa0]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
call fcn.00419281
test eax, eax
jl 0x419b7e
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push eax
call fcn.00419b9e
test eax, eax
pop ecx
pop ecx
jne 0x4198fe
mov eax, 0x80020009
jmp 0x419b7e
call fcn.00419f1d
mov ecx, dword [ebp - 0x74]
lea eax, [ebp + 0xa0]
call fcn.00419281
test eax, eax
jl 0x419b7e
movzx eax, word [ebp - 0x68]
sub eax, 8
je 0x419b4e
sub eax, 9
je 0x419a98
dec eax
dec eax
je 0x4199e2
sub eax, 0x3ff5
jne 0x419b6d
lea eax, [ebp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x64], 0
inc eax
push eax
lea esi, [ebp - 0x64]
call fcn.00419c58
mov edi, dword [ebp - 0x64]
test edi, edi
je 0x4199c6
cmp byte [ebp + 0xa0], 0
lea esi, [ebp + 0xa0]
je 0x4199b1
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x419993
cmp byte [eax], 0x30
jne 0x419993
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x4199ac
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4199aa
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x419979
mov byte [edi], 0
push dword [ebp - 0x64]
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
call fcn.00419c78
mov esi, eax
jmp 0x4199c9
push 0xe
pop esi
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x419b60
lea eax, [ebp - 0x64]
call fcn.00418e08
jmp 0x419b60
call dword [0x424080]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0xa0]
xor edi, edi
push eax
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
lea esi, [ebx + ebx]
cmp esi, 0x400
ja 0x419a27
push esi
call fcn.00418ac1
test al, al
pop ecx
je 0x419a27
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0041f6a0
mov eax, esp
jmp 0x419a34
mov eax, esi
lea esi, [ebp - 0x68]
call fcn.00418b1a
mov edi, dword [ebp - 0x68]
push dword [ebp - 0x78]
lea ecx, [ebp + 0xa0]
push ebx
push ecx
mov esi, eax
call fcn.00418a8f
test eax, eax
je 0x419a76
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x7c]
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
call fcn.00419caf
mov esi, eax
jmp 0x419a8f
mov eax, edi
mov edi, dword [edi]
push eax
call fcn.0041e6b0
pop ecx
test edi, edi
jne 0x419a6b
mov eax, 0x8007000e
jmp 0x419b7e
mov eax, edi
mov edi, dword [edi]
push eax
call fcn.0041e6b0
pop ecx
test edi, edi
jne 0x419a84
jmp 0x419b60
lea eax, [ebp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x68], eax
jne 0x419ad4
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
xor edi, edi
push ebx
lea esi, [ebp - 0x64]
mov dword [ebp - 0x64], edi
call fcn.00419c58
cmp dword [ebp - 0x64], edi
jne 0x419ade
lea eax, [ebp - 0x60]
test eax, eax
je 0x419ad4
mov eax, esi
call fcn.00418e08
mov eax, 0x80004005
jmp 0x419b7e
push ebx
push edi
push dword [ebp - 0x64]
call fcn.0041eb30
add esp, 0xc
cmp dword [ebp - 0x68], 0
jle 0x419b23
mov ecx, dword [ebp - 0x64]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi + 0xa0]
call fcn.00419cf2
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x68]
jl 0x419af1
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x64]
push 3
push 0
push dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x419b60
lea eax, [ebp - 0x64]
call fcn.00418e08
jmp 0x419b60
push 1
lea eax, [ebp + 0xa0]
push eax
push ebx
push edi
call fcn.00419c30
mov esi, eax
test esi, esi
je 0x419b6d
mov eax, esi
call fcn.00419f0e
jmp 0x419b7e
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x74]
call fcn.00419281
test eax, eax
jl 0x419b7e
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10a0]
xor ecx, ebp
call fcn.0041e95f
add ebp, 0x10a4
leave
ret 8