Function at 0x407b75
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e026
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1128
call fcn.0040fb30
mov eax, dword [0x4791b4]
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]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1138], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x112c], ecx
mov dword [ebp - 0x1124], edi
mov dword [ebp - 0x1120], esi
mov dword [ebp - 0x111c], ebx
call fcn.00408764
test eax, eax
js 0x407fc2
lea eax, [ebp - 0x111c]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.0040a311
pop ecx
pop ecx
test eax, eax
jne 0x407c11
mov eax, 0x80020009
jmp 0x407fc2
mov ecx, dword [ebp - 0x1128]
call fcn.00409bb6
mov ecx, dword [ebp - 0x1128]
lea eax, [ebp - 0x1014]
push eax
call fcn.00408764
test eax, eax
js 0x407fc2
movzx eax, word [ebp - 0x111c]
sub eax, 8
je 0x407f77
sub eax, 9
je 0x407e52
dec eax
sub eax, 1
je 0x407d44
sub eax, 0x3ff5
jne 0x407fa8
lea eax, [ebp - 0x1014]
push eax
call fcn.0041bd80
pop ecx
add eax, 2
mov dword [ebp - 0x1118], ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1118]
push eax
mov byte [ebp - 4], 1
call fcn.00408011
jmp 0x407ca3
mov esi, dword [ebp - 0x1118]
test esi, esi
je 0x407d23
cmp byte [ebp - 0x1014], 0
lea edi, [ebp - 0x1014]
je 0x407cfd
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x407cdc
cmp byte [eax], 0x30
jne 0x407cdc
push eax
mov byte [esi], bl
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x407cf7
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x407cf6
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x407cfd
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
jne 0x407cbc
mov ecx, dword [ebp - 0x1124]
mov word [esi], 0
push dword [ebp - 0x1118]
push dword [ebp - 0x1120]
call fcn.00409b0c
mov esi, dword [ebp - 0x1118]
mov edi, eax
jmp 0x407d26
push 0xe
pop edi
lea eax, [ebp - 0x1114]
cmp esi, eax
je 0x407f9b
lea ecx, [ebp - 0x1118]
call fcn.00408595
jmp 0x407f9b
mov esi, ebx
mov dword [ebp - 0x112c], esi
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 3
push eax
call fcn.0041bd80
inc eax
push 2
push eax
mov dword [ebp - 0x111c], eax
lea eax, [ebp - 0x111c]
push eax
call fcn.0040765a
add esp, 0x10
test eax, eax
js 0x407e22
mov edi, dword [ebp - 0x111c]
cmp edi, 0x400
jg 0x407da7
push edi
call fcn.0040a3a4
pop ecx
test al, al
je 0x407da7
mov eax, edi
call fcn.004101e0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x407db9
push edi
lea ecx, [ebp - 0x112c]
call fcn.00407fe4
mov esi, dword [ebp - 0x112c]
push 3
shr edi, 1
lea ecx, [ebp - 0x1014]
push edi
push ecx
push eax
call fcn.00408193
test eax, eax
je 0x407e1e
lea ecx, [ebp - 0x1134]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test edi, edi
js 0x407e35
mov eax, dword [ebp - 0x1134]
push 4
mov dword [ebp - 0x1130], eax
lea eax, [ebp - 0x1130]
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 0x407e49
push esi
mov esi, dword [esi]
call fcn.0041c464
pop ecx
test esi, esi
jne 0x407e15
mov eax, 0x8007000e
jmp 0x407fc2
push esi
mov esi, dword [esi]
call fcn.0041c464
pop ecx
test esi, esi
jne 0x407e2c
mov eax, edi
jmp 0x407fc2
push esi
mov esi, dword [esi]
call fcn.0041c464
pop ecx
test esi, esi
jne 0x407e40
jmp 0x407f9b
lea eax, [ebp - 0x1014]
push eax
call fcn.0041bd80
mov dword [ebp - 0x1130], eax
pop ecx
test al, 1
jne 0x407ec3
cdq
sub eax, edx
mov dword [ebp - 0x1118], ebx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x1134], esi
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1118]
push esi
mov byte [ebp - 4], 5
call fcn.0040806f
jmp 0x407eaf
cmp dword [ebp - 0x1118], 0
jne 0x407ecd
lea ecx, [ebp - 0x1118]
call fcn.004085a7
mov eax, 0x80004005
jmp 0x407fc2
push esi
push ebx
push dword [ebp - 0x1118]
call fcn.004120c0
add esp, 0xc
mov dword [ebp - 0x111c], ebx
cmp dword [ebp - 0x1130], 0
mov eax, ebx
jle 0x407f3c
mov ebx, dword [ebp - 0x1130]
mov esi, dword [ebp - 0x1118]
mov edi, eax
movzx eax, byte [ebp + eax - 0x1014]
push eax
shr edi, 1
call fcn.0040839d
mov edx, dword [ebp - 0x111c]
pop ecx
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [edi + esi], al
mov eax, dword [ebp - 0x111c]
inc eax
mov dword [ebp - 0x111c], eax
cmp eax, ebx
jl 0x407ef4
mov esi, dword [ebp - 0x1134]
xor ebx, ebx
mov eax, dword [ebp - 0x1124]
push esi
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 0x407f9b
lea ecx, [ebp - 0x1118]
call fcn.004085a7
jmp 0x407f9b
lea eax, [ebp - 0x1014]
push eax
call fcn.0041bd80
pop ecx
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x407fa8
push edi
call fcn.0040827a
pop ecx
jmp 0x407fc2
push dword [ebp - 0x1138]
mov ecx, dword [ebp - 0x1128]
call fcn.00408764
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x1148]
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.0040fb14
leave
ret 0xc