Function at 0x40b275
Capabilities:
Set registry value

Disassembly:
mov eax, 0x432d84
call fcn.0041b53c
push ecx
mov eax, 0x1114
call fcn.0041b720
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x1124]
mov dword [ebp - 0x10], esp
mov esi, ecx
push eax
mov dword [ebp - 0x20], esi
call fcn.00426fbf
test eax, eax
js 0x40b5dc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1124]
push eax
call fcn.00426fbf
pop ecx
pop ecx
test eax, eax
jne 0x40b2cd
mov eax, 0x80020009
jmp 0x40b5dc
mov ecx, esi
call fcn.0040a4a5
lea eax, [ebp - 0x1124]
push eax
mov ecx, esi
call fcn.00426fbf
test eax, eax
js 0x40b5dc
movzx eax, word [ebp - 0x18]
sub eax, 8
je 0x40b5a8
sub eax, 9
je 0x40b4b4
dec eax
dec eax
je 0x40b3dd
sub eax, 0x3ff5
jne 0x40b5cb
lea eax, [ebp - 0x1124]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
and dword [ebp - 0x124], 0
add eax, 2
and dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00426fbf
mov edi, dword [ebp - 0x124]
test edi, edi
je 0x40b3b8
cmp byte [ebp - 0x1124], 0
lea esi, [ebp - 0x1124]
je 0x40b39e
mov ebx, dword [sym.imp.user32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40b37d
cmp byte [eax], 0x30
jne 0x40b37d
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x40b399
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.kernel32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40b397
inc edi
inc esi
mov al, byte [esi]
test al, al
je 0x40b39e
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x40b35d
mov ecx, dword [ebp + 8]
mov word [edi], 0
push dword [ebp - 0x124]
push dword [ebp + 0xc]
call fcn.00426fbf
mov ebx, eax
jmp 0x40b3bb
push 0xe
pop ebx
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x40b5be
lea ecx, [ebp - 0x124]
call fcn.0040a6ea
jmp 0x40b5be
xor esi, esi
mov dword [ebp - 0x14], esi
push 3
pop ebx
lea eax, [ebp - 0x1124]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
push 2
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00426fbf
add esp, 0xc
test eax, eax
js 0x40b4aa
mov edi, dword [ebp - 0x18]
cmp edi, 0x400
jg 0x40b434
push edi
call fcn.00402aa1
pop ecx
test al, al
je 0x40b434
mov eax, edi
call fcn.0041b560
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40b440
push edi
lea ecx, [ebp - 0x14]
call fcn.00426fbf
mov esi, dword [ebp - 0x14]
push ebx
shr edi, 1
push edi
lea ecx, [ebp - 0x1124]
push ecx
push eax
call fcn.00426fbf
xor edi, edi
cmp eax, edi
je 0x40b4a6
lea ecx, [ebp - 0x1c]
push ecx
push edi
push edi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x1c]
push 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push 4
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov ebx, eax
cmp esi, edi
je 0x40b5be
push esi
mov esi, dword [esi]
call fcn.00426fbf
pop ecx
test esi, esi
jne 0x40b48b
jmp 0x40b5be
push esi
mov esi, dword [esi]
call fcn.00426fbf
pop ecx
cmp esi, edi
jne 0x40b49d
mov eax, 0x8007000e
jmp 0x40b5dc
lea eax, [ebp - 0x1124]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
mov dword [ebp - 0x14], eax
test al, 1
je 0x40b4d2
mov eax, 0x80004005
jmp 0x40b5dc
and dword [ebp - 0x124], 0
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 4
push ebx
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 5
call fcn.00426fbf
jmp 0x40b505
xor edi, edi
cmp dword [ebp - 0x124], edi
jne 0x40b526
lea eax, [ebp - 0x120]
test eax, eax
je 0x40b4c8
lea ecx, [ebp - 0x124]
call fcn.0040a6ea
jmp 0x40b4c8
push ebx
push edi
push dword [ebp - 0x124]
call fcn.0041b010
add esp, 0xc
cmp dword [ebp - 0x14], edi
jle 0x40b571
mov ecx, dword [ebp - 0x124]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
movzx eax, byte [ebp + edi - 0x1124]
push eax
call fcn.00426fbf
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 - 0x14]
jl 0x40b53b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x124]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov ebx, eax
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x40b5be
lea ecx, [ebp - 0x124]
call fcn.0040a6ea
jmp 0x40b5be
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x1124]
push eax
push dword [ebp + 0xc]
call fcn.00426fbf
mov ebx, eax
test ebx, ebx
je 0x40b5cb
push ebx
call fcn.00426fbf
pop ecx
jmp 0x40b5dc
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
call fcn.00426fbf
test eax, eax
js 0x40b5dc
xor eax, eax
lea esp, [ebp - 0x1130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc