Function at 0x40b919
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4454fe
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1124
call fcn.0042a390
mov eax, dword [0x45a400]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x1120], 0
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x1130], eax
lea eax, [ebp - 0x1014]
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x1128], edi
mov dword [ebp - 0x112c], ebx
call fcn.0040c081
test eax, eax
js 0x40bdb5
lea eax, [ebp - 0x1120]
push eax
lea eax, [ebp - 0x1014]
push eax
call fcn.0040b739
pop ecx
pop ecx
test eax, eax
jne 0x40b9ae
mov eax, 0x80020009
jmp 0x40bdb5
call fcn.0040c73c
lea eax, [ebp - 0x1014]
mov ecx, esi
call fcn.0040c081
test eax, eax
js 0x40bdb5
movzx eax, word [ebp - 0x1120]
sub eax, 8
je 0x40bd6a
sub eax, 9
je 0x40bc13
dec eax
dec eax
je 0x40bb19
sub eax, 0x3ff5
jne 0x40bda2
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
add eax, 2
mov dword [ebp - 0x1118], ecx
mov dword [ebp - 4], ecx
mov byte [ebp - 4], 1
cmp ecx, ecx
ja 0x40ba1c
cmp eax, 0xffffffff
jbe 0x40ba26
push 0x80070216
call fcn.00403585
cmp eax, 0x100
jbe 0x40ba44
push eax
lea eax, [ebp - 0x1118]
push eax
call fcn.0040b7e5
jmp 0x40ba50
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
mov edi, dword [ebp - 0x1118]
test edi, edi
je 0x40baf4
cmp byte [ebp - 0x1014], 0
lea esi, [ebp - 0x1014]
je 0x40baae
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40ba8d
cmp byte [eax], 0x30
jne 0x40ba8d
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x40baa9
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40baa7
inc edi
inc esi
mov al, byte [esi]
test al, al
je 0x40baae
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x40ba73
mov word [edi], 0
mov edi, dword [ebp - 0x1118]
mov ebx, edi
test edi, edi
jne 0x40bac3
push 0xd
jmp 0x40baf6
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add edi, eax
add esi, eax
cmp eax, 1
jne 0x40bac5
mov eax, dword [ebp - 0x1128]
push esi
push ebx
push 7
push 0
push dword [ebp - 0x112c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x40baf7
push 0xe
pop esi
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x40bd8f
lea eax, [ebp - 0x1118]
call fcn.0040b7cf
jmp 0x40bd8f
xor edi, edi
mov dword [ebp - 0x111c], edi
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x1120]
inc eax
push ecx
mov dword [ebp - 0x1120], eax
call fcn.0040b81d
pop ecx
test eax, eax
js 0x40bc09
mov ebx, dword [ebp - 0x1120]
cmp ebx, 0x400
jg 0x40bb78
push ebx
call fcn.0040b880
pop ecx
test al, al
je 0x40bb78
mov eax, ebx
call fcn.00432a40
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40bb8b
mov eax, ebx
lea esi, [ebp - 0x111c]
call fcn.0040b8ec
mov edi, dword [ebp - 0x111c]
push 3
shr ebx, 1
push ebx
lea ecx, [ebp - 0x1014]
push ecx
mov esi, eax
call fcn.0040b84d
test eax, eax
je 0x40bc05
lea ecx, [ebp - 0x1124]
push ecx
xor ebx, ebx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1124]
push 4
mov dword [ebp - 0x111c], eax
lea eax, [ebp - 0x111c]
push eax
mov eax, dword [ebp - 0x1128]
push 4
push ebx
push dword [ebp - 0x112c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp edi, ebx
je 0x40bd8f
push edi
mov edi, dword [edi]
call fcn.00428a5a
pop ecx
test edi, edi
jne 0x40bbea
jmp 0x40bd8f
push edi
mov edi, dword [edi]
call fcn.00428a5a
pop ecx
test edi, edi
jne 0x40bbfc
mov eax, 0x8007000e
jmp 0x40bdb5
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x111c], eax
test al, 1
je 0x40bc34
mov eax, 0x80004005
jmp 0x40bdb5
cdq
sub eax, edx
mov edi, eax
sar edi, 1
xor eax, eax
mov dword [ebp - 0x1124], edi
mov dword [ebp - 0x1118], eax
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
cmp eax, eax
ja 0x40ba1c
cmp edi, 0xffffffff
ja 0x40ba1c
cmp edi, 0x100
jbe 0x40bc8a
push edi
lea eax, [ebp - 0x1118]
push eax
call fcn.0040b7e5
jmp 0x40bc96
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
xor esi, esi
cmp dword [ebp - 0x1118], esi
jne 0x40bcba
lea eax, [ebp - 0x1114]
test eax, eax
je 0x40bc2a
lea eax, [ebp - 0x1118]
call fcn.0040b7cf
jmp 0x40bc2a
push edi
push esi
push dword [ebp - 0x1118]
call fcn.0042a4a0
add esp, 0xc
cmp dword [ebp - 0x111c], esi
jle 0x40bd2d
mov cl, byte [ebp + esi - 0x1014]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x1118]
cmp cl, 0x30
jl 0x40bd11
cmp cl, 0x39
jle 0x40bd0c
cmp cl, 0x40
jle 0x40bd11
cmp cl, 0x46
jle 0x40bd07
lea edx, [ecx - 0x61]
cmp dl, 5
ja 0x40bd11
lea edx, [ecx - 0x57]
jmp 0x40bd13
lea edx, [ecx - 0x37]
jmp 0x40bd13
lea edx, [ecx - 0x30]
jmp 0x40bd13
xor dl, dl
mov ebx, esi
and ebx, 1
shl ebx, 2
push 4
pop ecx
sub ecx, ebx
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x111c]
jl 0x40bcd2
mov eax, dword [ebp - 0x1128]
mov eax, dword [eax]
push edi
push dword [ebp - 0x1118]
push 3
push 0
push dword [ebp - 0x112c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x40bd8f
lea eax, [ebp - 0x1118]
call fcn.0040b7cf
jmp 0x40bd8f
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
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 esi, eax
test esi, esi
je 0x40bd9c
mov eax, esi
call fcn.0040c072
jmp 0x40bdb5
mov esi, dword [ebp - 0x1134]
mov eax, dword [ebp - 0x1130]
mov ecx, esi
call fcn.0040c081
test eax, eax
js 0x40bdb5
xor eax, eax
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.00428263
leave
ret 8