Function at 0x40bbce
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x40fc18
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x420
mov al, byte [0x4168a0]
push ebx
push esi
mov ebx, ecx
push edi
mov byte [ebp - 0x42c], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x42b]
and dword [ebp - 0x14], 0
rep stosd dword es:[edi], eax
push 1
lea ecx, [ebp - 0x10]
stosw word es:[edi], ax
pop esi
mov dword [ebp - 0x24], 0x400
mov dword [ebp - 0x2c], esi
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_1
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 1
mov eax, dword [eax]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40bdd7
lea eax, [ebp - 0x24]
mov edi, str.STARTUPAPPS
push eax
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bd93
lea eax, [ebp - 0x42c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040e3ba
push 0x4168a0
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x40bd68
lea eax, [ebx + 0x1e0]
mov ebx, str.o2kloader.dll
push ebx
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_operator
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::Find_1
lea ecx, [ebp + 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.0040e3ae
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40bdd9
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.STARTUPAPPSBAKUP
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x10]
push 0x416818
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MFC42.DLL_operator
push dword [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_operator_1
push ebx
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 4
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0040e3b4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0040e3ae
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.0040e3ae
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040e3ae
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
push 1
push 0
push edi
push dword [ebp - 0x14]
call esi
push 1
pop esi
jmp 0x40bdd9
add ebx, 0x1e0
push str.o2kloader.dll
lea eax, [ebp + 8]
push ebx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.0040e3b4
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
jmp 0x40bdbc
add ebx, 0x1e0
push str.o2kloader.dll
lea eax, [ebp + 8]
push ebx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0040e3b4
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.0040e3ae
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
push esi
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40bdd9
xor esi, esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040e3ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040e3ae
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4