Function at 0x404b30
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x441068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x44], esi
call fcn.0043fabe
lea ecx, [esp + 0x34]
mov byte [esp + 0x44], 1
call fcn.0043fabe
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 2
call fcn.0043fabe
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 3
call fcn.0043fabe
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 4
call fcn.0043fabe
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 5
call fcn.0043fabe
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 6
call fcn.0043fabe
lea eax, [esp + 0x20]
mov byte [esp + 0x44], 7
push eax
push 0xf003f
push esi
push 0x44f2b4
push Ordinal_4
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x404be1
mov esi, dword [esp + 0x20]
jmp 0x404c10
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
push ecx
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push 0x44f2b4
push Ordinal_4
mov dword [esp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x404c14
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], esi
lea eax, [esp + 0x20]
push eax
call fcn.00403a00
add esp, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 8
call fcn.0043fac4
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
add eax, 0xfffffffe
push eax
push edx
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 9
call fcn.0043fac4
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 8]
lea ecx, [eax + eax + 1]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
lea edx, [esp + 0x10]
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x45d978]
push eax
call fcn.00403560
add esp, 0xc
lea ecx, [esp + 0x20]
push edi
call sub.MFC42.DLL_CString::CString_1
mov ebp, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call ebx
inc eax
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push 0x44f2b0
push esi
call ebp
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
lea ecx, [esp + 0x24]
push ecx
call fcn.00403690
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0xa
call fcn.0043fac4
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x20]
push 0xc
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0xb
call fcn.0043fac4
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_CString::CString
push 0x19
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x45d978]
push ecx
call fcn.00403560
add esp, 0xc
lea ecx, [esp + 0x24]
push edi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [eax]
push eax
mov dword [esp + 0x24], eax
call ebx
mov edx, dword [esp + 0x20]
inc eax
push eax
push edx
push 1
push 0
push str.lasttime
push esi
call ebp
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.0043fabe
mov eax, dword [0x34bdb5c]
lea ecx, [esp + 0x1c]
push eax
push 0x44f180
push ecx
mov byte [esp + 0x50], 0xc
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edi, eax
push eax
call ebx
inc eax
push eax
push edi
push 1
push 0
push str.totalbags
push esi
call ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x404df0
push esi
call edi
xor esi, esi
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x404e67
push esi
call edi
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret