Function at 0x404750
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Enumerate pe sections
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x440fe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x44]
mov dword [esp + 0x50], ebp
call fcn.0043fabe
lea ecx, [esp + 0x40]
mov byte [esp + 0x50], 1
call fcn.0043fabe
lea ecx, [esp + 0x3c]
mov byte [esp + 0x50], 2
call fcn.0043fabe
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 3
call fcn.0043fabe
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 4
call fcn.0043fabe
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 5
call fcn.0043fabe
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 6
call fcn.0043fabe
push 0x19
mov byte [esp + 0x54], 7
call sub.MFC42.DLL_operatornew
push 8
mov dword [esp + 0x34], eax
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [esp + 0x60]
add esp, 8
lea eax, [eax + eax*2]
mov byte [esi], 0xfa
mov byte [esi + 1], 0xa
mov byte [esi + 2], 2
lea eax, [eax + eax*4]
mov byte [esi + 3], 0xc
mov byte [esi + 4], 0xc
mov byte [esi + 5], 1
lea ebx, [eax + eax*4]
lea eax, [esp + 0x58]
push eax
mov byte [esi + 6], 1
lea ebx, [ebx + ebx*8]
mov byte [esi + 7], 1
shl ebx, 7
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
push 7
push esi
push str.0623
mov dword [esp + 0x24], ecx
call fcn.00410690
add esp, 0xc
xor edx, edx
mov dl, byte [esi + 6]
xor eax, eax
mov al, byte [esi + 5]
push 0xffffffffffffffff
push edx
xor ecx, ecx
mov cl, byte [esi + 4]
xor edx, edx
mov dl, byte [esi + 3]
push eax
push ecx
push edx
xor eax, eax
mov al, byte [esi + 1]
xor ecx, ecx
mov cl, byte [esi]
push eax
add ecx, 0x76c
push ecx
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CTime::CTime
push ebp
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CTime::GetLocalTm
mov edi, dword [eax + 0x14]
push ebp
lea ecx, [esp + 0x5c]
add edi, 0x76c
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebp, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x5c]
inc ebp
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x28], edx
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 8]
push 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov ecx, dword [eax + 4]
push 0
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax]
push 0xffffffffffffffff
and eax, 0xffff
and ebp, 0xffff
push eax
mov eax, dword [esp + 0x24]
and eax, 0xffff
and edi, 0xffff
push eax
mov eax, dword [esp + 0x2c]
and eax, 0xffff
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
and eax, 0xffff
push eax
push ebp
push edi
call sub.MFC42.DLL_CTime::CTime
push ecx
lea edx, [esp + 0x28]
mov eax, esp
mov dword [esp + 0x28], esp
push edx
lea ecx, [esp + 0x30]
mov dword [eax], ebx
call fcn.00404b10
mov eax, dword [eax]
lea ecx, [esp + 0x58]
push str._Y_m_d_H_M
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CTime::Format
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 8
call fcn.0043fac4
lea ecx, [esp + 0x58]
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x58]
push 0xc
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 9
call fcn.0043fac4
lea ecx, [esp + 0x58]
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x45d978]
push ecx
call fcn.00403560
add esp, 0xc
lea edx, [esp + 0x58]
xor ebx, ebx
push edx
push 0xf003f
push ebx
push 0x44f2b4
push Ordinal_4
mov dword [esp + 0x6c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4049e4
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x10], ebp
jmp 0x404a1b
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x58]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x44f2b4
push Ordinal_4
mov dword [esp + 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x404a17
mov edx, dword [esp + 0x58]
mov dword [esp + 0x10], edx
mov ebp, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x58]
push 0x18
push ecx
mov ecx, eax
mov byte [esp + 0x58], 0xa
call sub.MFC42.DLL_CString::Left
mov ebx, dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push 1
push 0
push str.deadtime
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CString::CString
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x404a84
push ebp
call ebx
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
push edi
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString
test ebp, ebp
je 0x404afc
push ebp
call ebx
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret