Function at 0x40243c
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x10a0]
mov eax, 0x1120
call fcn.004044c0
mov eax, dword [0x407010]
xor eax, ebp
mov dword [ebp + 0x109c], eax
mov eax, dword [ebp + 0x10b0]
and dword [ebp - 0x6c], 0
push ebx
mov ebx, dword [ebp + 0x10ac]
push esi
push edi
mov edi, dword [ebp + 0x10a8]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x9c]
mov esi, ecx
push eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], ebx
call fcn.004019f4
test eax, eax
jl 0x40273b
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x9c]
push eax
call fcn.004018a4
test eax, eax
pop ecx
pop ecx
jne 0x4024b6
mov eax, 0x80020009
jmp 0x40273b
mov ecx, esi
call fcn.004019d2
lea eax, [ebp + 0x9c]
push eax
mov ecx, esi
call fcn.004019f4
test eax, eax
jl 0x40273b
movzx eax, word [ebp - 0x6c]
sub eax, 8
je 0x40270a
sub eax, 9
je 0x402651
dec eax
dec eax
je 0x4025a4
sub eax, 0x3ff5
jne 0x40272a
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x68], 0
inc eax
inc eax
push eax
lea ecx, [ebp - 0x68]
call fcn.00402237
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x402588
cmp byte [ebp + 0x9c], 0
lea edi, [ebp + 0x9c]
je 0x40256f
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x40254e
cmp byte [eax], 0x30
jne 0x40254e
mov byte [esi], 0
push eax
inc esi
call ebx
mov edi, eax
jmp 0x40256a
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x402568
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x40256f
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x402534
mov ecx, dword [ebp - 0x78]
mov byte [esi], 0
mov byte [esi + 1], 0
push dword [ebp - 0x68]
push dword [ebp - 0x74]
call fcn.0040175c
mov esi, eax
jmp 0x40258b
push 0xe
pop esi
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x40271d
lea ecx, [ebp - 0x68]
call fcn.00401c3e
jmp 0x40271d
call dword [section..data]
and dword [ebp - 0x6c], 0
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x9c]
push eax
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.004013dc
add esp, 0xc
test eax, eax
jl 0x402616
mov esi, dword [ebp - 0x70]
cmp esi, 0x400
jg 0x4025f6
push esi
call fcn.00401cd4
test al, al
pop ecx
je 0x4025f6
mov eax, esi
call fcn.00404670
mov eax, esp
jmp 0x4025ff
push esi
lea ecx, [ebp - 0x6c]
call fcn.00401e6f
push dword [ebp - 0x74]
shr esi, 1
push esi
lea ecx, [ebp + 0x9c]
push ecx
push eax
call fcn.00401486
test eax, eax
jne 0x402628
lea ecx, [ebp - 0x6c]
call fcn.00401ba3
mov eax, 0x8007000e
jmp 0x40273b
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x78]
mov ecx, edi
push ebx
call fcn.00401709
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.00401ba3
jmp 0x40271d
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x70], eax
je 0x40266f
mov eax, 0x80004005
jmp 0x40273b
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
xor edi, edi
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], edi
call fcn.00402237
cmp dword [ebp - 0x68], edi
jne 0x40269a
lea eax, [ebp - 0x64]
test eax, eax
je 0x402665
lea ecx, [ebp - 0x68]
call fcn.00401c3e
jmp 0x402665
push ebx
push edi
push dword [ebp - 0x68]
call fcn.00404130
add esp, 0xc
cmp dword [ebp - 0x70], edi
jle 0x4026df
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.00401936
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 0x4026ac
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x68]
push 3
push 0
push dword [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x40271d
lea ecx, [ebp - 0x68]
call fcn.00401c3e
jmp 0x40271d
push 1
lea eax, [ebp + 0x9c]
push eax
push ebx
mov ecx, edi
call fcn.00401723
mov esi, eax
test esi, esi
je 0x40272a
push esi
call fcn.004015a9
pop ecx
jmp 0x40273b
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
call fcn.004019f4
test eax, eax
jl 0x40273b
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x109c]
xor ecx, ebp
call fcn.004044a8
add ebp, 0x10a0
leave
ret 0xc