Function at 0x464340
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x112c
call fcn.004ab980
mov eax, dword [0x4e2204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x1008]
mov edi, edx
mov dword [ebp - 0x1128], eax
push ecx
mov eax, esi
mov dword [ebp - 0x1124], esi
mov dword [ebp - 0x1118], ebx
mov dword [ebp - 0x111c], edi
mov dword [ebp - 0x1114], 0
call fcn.00464200
test eax, eax
jl 0x46476c
lea edx, [ebp - 0x1114]
push edx
lea eax, [ebp - 0x1008]
push eax
call fcn.00464050
add esp, 8
test eax, eax
jne 0x4643c0
mov eax, 0x80020009
jmp 0x46476c
call fcn.004641b0
lea ecx, [ebp - 0x1008]
push ecx
mov eax, esi
call fcn.00464200
test eax, eax
jl 0x46476c
movzx eax, word [ebp - 0x1114]
cmp eax, 0x13
jg 0x464642
je 0x46454b
cmp eax, 8
je 0x464520
cmp eax, 0x11
jne 0x464754
lea edx, [ebp - 0x1008]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test bl, 1
jne 0x464476
cdq
sub eax, edx
mov edi, eax
xor esi, esi
sar edi, 1
xor eax, eax
mov dword [ebp - 0x1114], edi
mov dword [ebp - 0x1110], esi
cmp eax, esi
ja 0x464437
cmp edi, 0xffffffff
jbe 0x464441
push 0x80070057
call fcn.00462ab0
cmp edi, 0x100
jbe 0x464480
lea eax, [ebp - 0x1110]
push eax
mov eax, edi
call fcn.0046b460
mov eax, dword [ebp - 0x1110]
cmp eax, esi
jne 0x46448c
lea ecx, [ebp - 0x110c]
test ecx, ecx
je 0x464476
lea eax, [ebp - 0x1110]
call fcn.0046b1e0
mov eax, 0x80004005
jmp 0x46476c
lea eax, [ebp - 0x110c]
mov dword [ebp - 0x1110], eax
push edi
push esi
push eax
call fcn.004a16b0
add esp, 0xc
cmp ebx, esi
jle 0x4644da
jmp 0x4644a0
mov eax, dword [ebp - 0x1110]
mov cl, byte [ebp + esi - 0x1008]
mov edx, esi
shr edx, 1
lea edi, [edx + eax]
call fcn.00464100
mov ecx, esi
and ecx, 1
add ecx, ecx
add ecx, ecx
mov edx, ecx
mov ecx, 4
sub ecx, edx
shl al, cl
inc esi
or byte [edi], al
cmp esi, ebx
jl 0x4644a0
mov edi, dword [ebp - 0x1114]
mov ecx, dword [ebp - 0x1110]
mov edx, dword [ebp - 0x111c]
mov eax, dword [ebp - 0x1118]
mov eax, dword [eax]
push edi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x110c]
cmp dword [ebp - 0x1110], eax
je 0x464741
lea eax, [ebp - 0x1110]
call fcn.0046b1e0
jmp 0x464741
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [ebx]
lea edx, [ebp - 0x1008]
push edx
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
jmp 0x464741
lea ecx, [ebp - 0x1008]
push ecx
mov dword [ebp - 0x1114], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push 0
mov dword [ebp - 0x1118], eax
cdq
push 2
push edx
push eax
call fcn.004a6c00
test edx, edx
jg 0x4645e0
jl 0x464582
cmp eax, 0x7fffffff
ja 0x4645e0
push edx
push eax
lea ecx, [ebp - 0x1118]
call fcn.00462950
add esp, 8
test eax, eax
jl 0x4645e0
mov edi, dword [ebp - 0x1118]
cmp edi, 0x400
jg 0x4645bc
push edi
call fcn.00462970
add esp, 4
test al, al
je 0x4645bc
mov eax, edi
call fcn.004a1730
mov esi, esp
jmp 0x4645cb
mov eax, edi
lea esi, [ebp - 0x1114]
call fcn.0046ab30
mov esi, eax
mov edx, edi
push 3
shr edx, 1
lea eax, [ebp - 0x1008]
call fcn.00462a20
test eax, eax
jne 0x4645f5
lea esi, [ebp - 0x1114]
call fcn.0046ab60
mov eax, 0x8007000e
jmp 0x46476c
lea edx, [ebp - 0x1120]
push edx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1120]
mov edx, dword [ebp - 0x111c]
push 4
lea ecx, [ebp - 0x1118]
push ecx
push 4
push 0
mov dword [ebp - 0x1118], eax
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esi, [ebp - 0x1114]
mov edi, eax
call fcn.0046ab60
jmp 0x464741
cmp eax, 0x4008
jne 0x464754
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
xor ecx, ecx
mov dword [ebp - 0x1110], 0
ja 0x464670
cmp eax, 0xffffffff
jbe 0x46467a
push 0x80070057
call fcn.00462ab0
cmp eax, 0x100
jbe 0x4646cc
lea edx, [ebp - 0x1110]
push edx
call fcn.0046b440
mov eax, dword [ebp - 0x1110]
test eax, eax
je 0x464727
cmp byte [ebp - 0x1008], 0
mov edi, eax
lea esi, [ebp - 0x1008]
je 0x464702
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x4646da
cmp byte [eax], 0x30
jne 0x4646da
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x4646f7
lea eax, [ebp - 0x110c]
mov dword [ebp - 0x1110], eax
jmp 0x46469b
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4646f5
mov al, byte [esi + 1]
inc esi
inc edi
test al, al
je 0x4646fc
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x4646b2
mov ebx, dword [ebp - 0x1118]
mov edx, dword [ebp - 0x111c]
mov byte [edi], 0
mov byte [edi + 1], 0
mov ecx, dword [ebp - 0x1110]
push ecx
push edx
push ebx
call fcn.00463200
mov edi, eax
mov eax, dword [ebp - 0x1110]
jmp 0x46472c
mov edi, 0xe
lea ecx, [ebp - 0x110c]
cmp eax, ecx
je 0x464741
lea eax, [ebp - 0x1110]
call fcn.0046b1d0
test edi, edi
je 0x46474e
mov eax, edi
call fcn.00462be0
jmp 0x46476c
mov esi, dword [ebp - 0x1124]
mov edx, dword [ebp - 0x1128]
push edx
mov eax, esi
call fcn.00464200
xor ecx, ecx
test eax, eax
setge cl
dec ecx
and eax, ecx
lea esp, [ebp - 0x1138]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ca20
mov esp, ebp
pop ebp
ret 8