Function at 0x40b44f
Capabilities:
Set registry value

Disassembly:
mov eax, 0x433470
call fcn.0041bbcc
push ecx
mov eax, 0x1114
call fcn.0041bdb0
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.0040a69c
test eax, eax
js 0x40b7b6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1124]
push eax
call fcn.0040a531
pop ecx
pop ecx
test eax, eax
jne 0x40b4a7
mov eax, 0x80020009
jmp 0x40b7b6
mov ecx, esi
call fcn.0040a67a
lea eax, [ebp - 0x1124]
push eax
mov ecx, esi
call fcn.0040a69c
test eax, eax
js 0x40b7b6
movzx eax, word [ebp - 0x18]
sub eax, 8
je 0x40b782
sub eax, 9
je 0x40b68e
dec eax
dec eax
je 0x40b5b7
sub eax, 0x3ff5
jne 0x40b7a5
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.0040b1fd
mov edi, dword [ebp - 0x124]
test edi, edi
je 0x40b592
cmp byte [ebp - 0x1124], 0
lea esi, [ebp - 0x1124]
je 0x40b578
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x40b557
cmp byte [eax], 0x30
jne 0x40b557
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x40b573
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x40b571
inc edi
inc esi
mov al, byte [esi]
test al, al
je 0x40b578
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x40b537
mov ecx, dword [ebp + 8]
mov word [edi], 0
push dword [ebp - 0x124]
push dword [ebp + 0xc]
call fcn.0040a412
mov ebx, eax
jmp 0x40b595
push 0xe
pop ebx
lea eax, [ebp - 0x120]
cmp dword [ebp - 0x124], eax
je 0x40b798
lea ecx, [ebp - 0x124]
call fcn.0040a8bf
jmp 0x40b798
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.00401b8a
add esp, 0xc
test eax, eax
js 0x40b684
mov edi, dword [ebp - 0x18]
cmp edi, 0x400
jg 0x40b60e
push edi
call fcn.00402b7a
pop ecx
test al, al
je 0x40b60e
mov eax, edi
call fcn.0041bbf0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40b61a
push edi
lea ecx, [ebp - 0x14]
call fcn.00403096
mov esi, dword [ebp - 0x14]
push ebx
shr edi, 1
push edi
lea ecx, [ebp - 0x1124]
push ecx
push eax
call fcn.00401402
xor edi, edi
cmp eax, edi
je 0x40b680
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 0x40b798
push esi
mov esi, dword [esi]
call fcn.0041bc1c
pop ecx
test esi, esi
jne 0x40b665
jmp 0x40b798
push esi
mov esi, dword [esi]
call fcn.0041bc1c
pop ecx
cmp esi, edi
jne 0x40b677
mov eax, 0x8007000e
jmp 0x40b7b6
lea eax, [ebp - 0x1124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x14], eax
test al, 1
je 0x40b6ac
mov eax, 0x80004005
jmp 0x40b7b6
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.0040b1fd
jmp 0x40b6df
xor edi, edi
cmp dword [ebp - 0x124], edi
jne 0x40b700
lea eax, [ebp - 0x120]
test eax, eax
je 0x40b6a2
lea ecx, [ebp - 0x124]
call fcn.0040a8bf
jmp 0x40b6a2
push ebx
push edi
push dword [ebp - 0x124]
call fcn.0041b5c0
add esp, 0xc
cmp dword [ebp - 0x14], edi
jle 0x40b74b
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.0040a5c7
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 0x40b715
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 0x40b798
lea ecx, [ebp - 0x124]
call fcn.0040a8bf
jmp 0x40b798
mov ecx, dword [ebp + 8]
push 1
lea eax, [ebp - 0x1124]
push eax
push dword [ebp + 0xc]
call fcn.0040a3de
mov ebx, eax
test ebx, ebx
je 0x40b7a5
push ebx
call fcn.0040a0c2
pop ecx
jmp 0x40b7b6
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
call fcn.0040a69c
test eax, eax
js 0x40b7b6
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