Function at 0x40c980
Capabilities:
Check if file exists
Create directory
Create process on windows
Create process suspended
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4408d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFile::CFile
mov dword [esp + 0x38], 0x442d40
mov eax, dword [ebx + 0x254]
lea edi, [esp + 0x9d]
xor ebp, ebp
mov esi, dword [ebx + eax*4 + 0x254]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x224], ebp
mov ecx, dword [esi - 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x28]
mov al, byte [esp + 0x2e]
mov dl, byte [esp + 0x2a]
and ecx, 0xffff
mov byte [esp + 0x99], al
mov al, byte [esp + 0x34]
mov dword [esp + 0x94], ecx
mov cl, byte [esp + 0x30]
mov byte [esp + 0x98], dl
mov dl, byte [esp + 0x32]
mov byte [esp + 0x9c], al
mov byte [esp + 0x9a], cl
mov byte [esp + 0x9b], dl
xor eax, eax
mov cl, byte [esp + eax + 0x9d]
add cl, 0xec
mov byte [esp + eax + 0x9d], cl
inc eax
cmp eax, 0x25
jl 0x40ca35
push ebp
push 0x8002
push str.d:_tempEEM.mfz
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x40ca97
push ebp
push 0x9002
push str.d:_tempEEM.mfz
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x40ca97
lea ecx, [esp + 0x38]
mov dword [esp + 0x220], 0xffffffff
call fcn.00422b78
xor al, al
jmp 0x40cf7a
mov edx, dword [esp + 0x38]
push 2
push ebp
lea ecx, [esp + 0x40]
call dword [edx + 0x30]
lea eax, [esp + 0x94]
push 0x30
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFile::Flush
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x220], 1
call sub.MFC42.DLL_CString::CString
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0xd4]
push str.C:Progra1WinRAR_rar.exe
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x224], 2
mov dword [esp + 0xd8], 0x44
mov word [esp + 0x108], bp
mov dword [esp + 0x104], 1
call fcn.00422c0e
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ecx
call esi
test eax, eax
jne 0x40cb47
push str.rar.exe
lea ecx, [esp + 0x18]
call fcn.00422c0e
push str.d:_temp_
call esi
test eax, eax
jne 0x40cb5e
push ebp
push str.d:_temp_
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebx + 0x254]
lea ecx, [esp + 0x10]
lea eax, [ebx + edx*4 + 0x254]
push eax
call fcn.00422ce0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
add eax, 0xfffffffc
push eax
push edx
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x224], 3
call fcn.00422ce0
lea ecx, [esp + 0x18]
mov byte [esp + 0x220], 2
call fcn.00422b90
mov eax, dword [ebx + 0x254]
lea edx, [esp + 0x18]
lea ecx, [ebx + eax*4 + 0x254]
add ebx, 0x13c
push ecx
push ebx
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x32]
push eax
mov eax, dword [esp + 0x34]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x36]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x36]
push eax
mov eax, dword [esp + 0x38]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x24]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
lea eax, [esp + 0x13c]
push str._s_a__hpsunnytemp__m5_d:_temp_s._04d_02d_02d._02d_02d_02d.tmp__s_d:_temp_temp.t
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x2c
lea ecx, [esp + 0x18]
call fcn.00422b90
lea ecx, [esp + 0xc4]
lea edx, [esp + 0xd4]
push ecx
push edx
push ebp
push ebp
push 0x80
push ebp
push ebp
lea eax, [esp + 0x134]
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebp
je 0x40cc79
mov ecx, dword [esp + 0xc4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.d:_temp_temp.t
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x24]
mov byte [esp + 0x220], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x220], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x220], 6
call sub.MFC42.DLL_CString::CString
mov ebx, 7
push ebp
push str.d:_temp.tmp
lea ecx, [esp + 0x80]
mov byte [esp + 0x228], bl
call sub.MFC42.DLL_CFileFind::FindFile
lea edx, [esp + 0x6c]
mov esi, eax
push edx
call sub.MFC42.DLL_CTime::GetTickCount
cmp esi, ebp
je 0x40cef5
mov esi, dword [sym.imp.MSVCRT.dll_atol]
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x224], 8
call fcn.00422ce0
lea ecx, [esp + 0x18]
mov byte [esp + 0x220], bl
call fcn.00422b90
lea ecx, [esp + 0x5c]
push 0x13
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x224], 9
call fcn.00422ce0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x220], bl
call fcn.00422b90
lea edx, [esp + 0x70]
push 8
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x224], 0xa
call fcn.00422ce0
lea ecx, [esp + 0x70]
mov byte [esp + 0x220], bl
call fcn.00422b90
lea eax, [esp + 0x54]
push 4
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x224], 0xb
call fcn.00422ce0
lea ecx, [esp + 0x54]
mov byte [esp + 0x220], bl
call fcn.00422b90
lea ecx, [esp + 0x60]
push 4
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x224], 0xc
call fcn.00422ce0
lea ecx, [esp + 0x60]
mov byte [esp + 0x220], bl
call fcn.00422b90
lea edx, [esp + 0x68]
push 2
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x224], 0xd
call fcn.00422ce0
lea ecx, [esp + 0x68]
mov byte [esp + 0x220], bl
call fcn.00422b90
push 2
lea eax, [esp + 0x68]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x224], 0xe
call fcn.00422ce0
lea ecx, [esp + 0x64]
mov byte [esp + 0x220], bl
call fcn.00422b90
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
push 0xffffffffffffffff
push 0
push 0
push 0
push ecx
call esi
add esp, 4
push eax
push edi
call esi
add esp, 4
push eax
push ebp
call esi
add esp, 4
lea ecx, [esp + 0x60]
push eax
call sub.MFC42.DLL_CTime::CTime
mov edx, dword [esp + 0x48]
push ecx
mov eax, esp
mov dword [esp + 0x78], esp
lea ecx, [esp + 0x70]
mov dword [eax], edx
lea eax, [esp + 0x54]
push eax
call fcn.0040cfa0
mov ecx, dword [esp + 0x50]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, ebx
jle 0x40cee9
lea edx, [esp + 0x58]
lea ecx, [esp + 0x78]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x58]
call fcn.00422b90
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x40ccf8
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x20]
mov byte [esp + 0x220], 6
call fcn.00422b90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x220], 5
call fcn.00422b90
lea ecx, [esp + 0x24]
mov byte [esp + 0x220], 4
call fcn.00422b90
lea ecx, [esp + 0x78]
mov byte [esp + 0x220], 2
call fcn.00422c44
lea ecx, [esp + 0x10]
mov byte [esp + 0x220], 1
call fcn.00422b90
lea ecx, [esp + 0x14]
mov byte [esp + 0x220], 0
call fcn.00422b90
lea ecx, [esp + 0x38]
mov dword [esp + 0x220], 0xffffffff
call fcn.00422b78
mov al, 1
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x214
ret