Function at 0x407859
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506c41
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1124
call fcn.004f0e50
mov eax, dword [0xaba010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1128], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x111c], ecx
mov dword [ebp - 0x1124], edi
mov dword [ebp - 0x1120], ebx
call fcn.0040813c
test eax, eax
js 0x407d37
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x1014]
push 0x51e9f4
push eax
call esi
test eax, eax
jne 0x4078e6
push 8
jmp 0x40792d
push 0x51e9f8
lea eax, [ebp - 0x1014]
push eax
call esi
test eax, eax
jne 0x4078ff
mov esi, 0x4008
jmp 0x40792e
push 0x51e9fc
lea eax, [ebp - 0x1014]
push eax
call esi
test eax, eax
jne 0x407915
push 0x13
jmp 0x40792d
push 0x51eb60
lea eax, [ebp - 0x1014]
push eax
call esi
test eax, eax
jne 0x407d32
push 0x11
pop esi
mov ecx, dword [ebp - 0x1128]
call fcn.0040886b
mov ecx, dword [ebp - 0x1128]
lea eax, [ebp - 0x1014]
push eax
call fcn.0040813c
test eax, eax
js 0x407d37
sub esi, 8
je 0x407ce4
sub esi, 9
je 0x407b87
dec esi
sub esi, 1
je 0x407a7a
sub esi, 0x3ff5
jne 0x407d16
lea eax, [ebp - 0x1014]
push eax
call fcn.004f5d90
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1118], ebx
xor edx, edx
mov dword [ebp - 4], ebx
inc edx
mov byte [ebp - 4], 1
lea ecx, [eax + 2]
call fcn.0040783e
cmp eax, 0x100
jbe 0x4079b7
push eax
lea ecx, [ebp - 0x1118]
call fcn.004070ee
jmp 0x4079d9
lea esi, [ebp - 0x1114]
mov dword [ebp - 0x1118], esi
jmp 0x4079df
mov esi, dword [ebp - 0x1118]
test esi, esi
je 0x407a59
cmp byte [ebp - 0x1014], 0
lea edi, [ebp - 0x1014]
je 0x407a33
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x407a12
cmp byte [eax], 0x30
jne 0x407a12
push eax
mov byte [esi], bl
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x407a2d
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x407a2c
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x407a33
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
jne 0x4079f2
mov ecx, dword [ebp - 0x1124]
mov word [esi], 0
push dword [ebp - 0x1118]
push dword [ebp - 0x1120]
call fcn.004076d2
mov esi, dword [ebp - 0x1118]
mov edi, eax
jmp 0x407a5c
push 0xe
pop edi
lea eax, [ebp - 0x1114]
cmp esi, eax
je 0x407d09
lea ecx, [ebp - 0x1118]
call fcn.004070c2
jmp 0x407d09
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0x111c], esi
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 3
push eax
call fcn.004f5d90
inc eax
lea ecx, [ebp - 0x112c]
mov edx, eax
mov dword [ebp - 0x112c], eax
call fcn.00407733
add esp, 4
test eax, eax
js 0x407b57
mov edi, dword [ebp - 0x112c]
cmp edi, 0x400
jg 0x407add
mov ecx, edi
call fcn.00407793
test al, al
je 0x407add
mov eax, edi
call fcn.004f0800
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x407aef
push edi
lea ecx, [ebp - 0x111c]
call fcn.00407801
mov esi, dword [ebp - 0x111c]
push ebx
shr edi, 1
lea edx, [ebp - 0x1014]
push edi
mov ecx, eax
call fcn.00407760
test eax, eax
je 0x407b53
lea ecx, [ebp - 0x1130]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test edi, edi
js 0x407b6a
mov eax, dword [ebp - 0x1130]
push 4
mov dword [ebp - 0x111c], eax
lea eax, [ebp - 0x111c]
push eax
mov eax, dword [ebp - 0x1124]
push 4
push ebx
push dword [ebp - 0x1120]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
jmp 0x407b7e
push esi
mov esi, dword [esi]
call fcn.004f5e43
pop ecx
test esi, esi
jne 0x407b4a
mov eax, 0x8007000e
jmp 0x407d37
push esi
mov esi, dword [esi]
call fcn.004f5e43
pop ecx
test esi, esi
jne 0x407b61
mov eax, edi
jmp 0x407d37
push esi
mov esi, dword [esi]
call fcn.004f5e43
pop ecx
test esi, esi
jne 0x407b75
jmp 0x407d09
lea eax, [ebp - 0x1014]
push eax
call fcn.004f5d90
mov dword [ebp - 0x1130], eax
pop ecx
test al, 1
je 0x407ba8
mov eax, 0x80004005
jmp 0x407d37
cdq
xor ebx, ebx
sub eax, edx
mov dword [ebp - 0x1118], ebx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x112c], edi
xor edx, edx
mov dword [ebp - 4], 4
inc edx
mov byte [ebp - 4], 5
mov ecx, edi
call fcn.0040783e
cmp eax, 0x100
jbe 0x407be7
push eax
lea ecx, [ebp - 0x1118]
call fcn.004070ee
jmp 0x407c0f
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
jmp 0x407c15
mov eax, dword [ebp - 0x1118]
test eax, eax
jne 0x407c29
lea ecx, [ebp - 0x1118]
call fcn.004070c2
jmp 0x407b9e
push edi
push ebx
push eax
call fcn.004f1a90
mov esi, dword [ebp - 0x1130]
add esp, 0xc
test esi, esi
jle 0x407ca9
mov edi, ebx
mov eax, edi
cdq
sub eax, edx
mov dl, byte [ebp + edi - 0x1014]
sar eax, 1
add eax, dword [ebp - 0x1118]
mov dword [ebp - 0x1130], eax
cmp dl, 0x30
jl 0x407c85
cmp dl, 0x39
jle 0x407c80
cmp dl, 0x40
jle 0x407c85
cmp dl, 0x46
jle 0x407c7b
mov al, dl
sub al, 0x61
cmp al, 5
ja 0x407c85
sub dl, 0x57
jmp 0x407c87
sub dl, 0x37
jmp 0x407c87
sub dl, 0x30
jmp 0x407c87
mov dl, bl
mov eax, edi
and eax, 1
shl eax, 2
push 4
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x1130]
shl dl, cl
or byte [eax], dl
inc edi
cmp edi, esi
jl 0x407c40
mov edi, dword [ebp - 0x112c]
mov eax, dword [ebp - 0x1124]
push edi
push dword [ebp - 0x1118]
push 3
push ebx
push dword [ebp - 0x1120]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x407d09
lea ecx, [ebp - 0x1118]
call fcn.004070c2
jmp 0x407d09
lea eax, [ebp - 0x1014]
push eax
call fcn.004f5d90
pop ecx
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x407d16
mov ecx, edi
call fcn.0040812e
jmp 0x407d37
push dword [ebp - 0x1134]
mov ecx, dword [ebp - 0x1128]
call fcn.0040813c
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
jmp 0x407d37
mov eax, 0x80020009
lea esp, [ebp - 0x1144]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004efcea
mov esp, ebp
pop ebp
ret 0xc