Function at 0xb12780
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
cmp dword [0xb14300], 0
push ebx
push esi
push edi
push ebp
jne 0xb127d2
cmp dword [0xb16971], 0
jl 0xb127bc
mov eax, dword [0xb16971]
shl eax, 2
lea ecx, [eax + eax*2]
mov eax, dword [0xb16bf8]
lea edx, [ecx + ecx*4]
test byte [edx + eax + 0x28], 8
jne 0xb127d2
cmp dword [0xb16971], 0
jge 0xb127c5
test byte [0xb16c00], 8
jne 0xb127d2
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp dword [0xb142fc], 0
je 0xb127e8
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp dword [0xb14314], 2
jne 0xb127fe
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 0xbb80
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0xb12822
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea eax, [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
push 0xb14318
push 0x80000000
call esi
test eax, eax
je 0xb128a6
lea eax, [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push eax
push 0xb143c0
push 0x80000000
call ebp
test eax, eax
je 0xb1287e
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call edi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebp
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 0xa
mov eax, dword [0xb16c0c]
push ebx
push eax
call fcn.00b131c0
add esp, 0xc
push 0x14
push ebx
push 1
push 0xb14318
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
jmp 0xb128ac
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
cmp dword [0xb14314], 1
jne 0xb12913
test byte [0xb168fa], 0xa
je 0xb12913
lea eax, [esp + 0x14]
push eax
push 0xb14328
push 0x80000000
call esi
test eax, eax
je 0xb128f0
call fcn.00b124e0
test byte [0xb168fa], 0x10
jne 0xb12913
jmp 0xb1290e
mov eax, dword [esp + 0x14]
push eax
call edi
test byte [0xb168fa], 0x20
jne 0xb12913
call fcn.00b124e0
test byte [0xb168fa], 0x10
jne 0xb12913
call fcn.00b11f50
lea eax, [esp + 0x14]
mov ecx, dword [0xb16b24]
push eax
push ecx
push 0x80000000
call esi
test eax, eax
je 0xb12967
lea eax, [esp + 0x14]
mov ecx, dword [0xb16b24]
push eax
push ecx
push 0x80000000
call ebp
test eax, eax
je 0xb12967
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call edi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebp
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
push eax
call edi
test byte [0xb168fa], 4
je 0xb129ba
cmp byte [0xb16975], 1
jne 0xb12a35
xor esi, esi
push 0x1010
mov word [0xb1695d], si
push 0xb14094
mov word [0xb1695f], si
mov eax, dword [0xb16b6c]
push eax
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
push esi
mov dword [0xb14308], esi
call ebp
mov word [0xb14348], si
mov eax, dword [0xb14308]
mov esi, 0xb16900
mov edi, ebx
mov ecx, 0x20
mov dword [0xb1697a], eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [ebx + 0x82]
mov ebp, 0xb16990
mov dword [esp + 0x10], 0x82
mov dword [esp + 0x1c], ecx
mov edi, dword [ebp]
test edi, edi
je 0xb12a79
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
add dword [esp + 0x10], ecx
lea ecx, [esp + 0x1c]
call fcn.00b0f2e0
jmp 0xb12a88
cmp byte [0xb16975], 2
jne 0xb129ba
cmp word [0xb14348], 0
jne 0xb129ba
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call edi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebp
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
mov byte [eax], 0
inc dword [esp + 0x1c]
inc dword [esp + 0x10]
add ebp, 4
cmp ebp, 0xb169e0
jb 0xb129eb
push 0
push 0xb16a20
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
mov esi, eax
push edi
xor esi, dword [0xb16c0c]
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [0xb14314], 1
jne 0xb12b52
mov dword [ebx + 0x7e], esi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push ecx
mov ecx, ebx
call fcn.00b0f750
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push esi
mov edx, dword [0xb16b24]
push eax
push 1
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov dword [esp + 0x14], eax
call edi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebp
push ebx
call edi
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebx
mov edx, esi
mov ecx, dword [esp + 0x18]
call fcn.00b11640
test eax, eax
mov eax, dword [esp + 0x18]
push eax
jne 0xb12b91
call edi
push eax
call ebp
mov eax, dword [esp + 0x18]
push eax
call edi
push eax
call ebx
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp dword [ebx + 0x7e], esi
je 0xb12ad0
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call edi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebp
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop ebp
mov word [0xb14348], ax
pop edi
pop esi
mov dword [0xb14304], eax
mov eax, 1
pop ebx
add esp, 0x10
ret
call edi
push eax
call ebp
mov eax, dword [esp + 0x18]
push eax
call edi
push eax
call ebx
mov dword [0xb14300], 0
cmp dword [esp + 0x10], 1
sbb eax, eax
pop ebp
neg eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret