Function at 0x408f70
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c4a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
push str.BeginCheckVersionFile____Begin
mov dword [ebp - 4], ebx
call fcn.00401770
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x26a]
mov word [ebp - 0x26c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x26c]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x26c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::CString_1
lea edx, [ebp - 0x24]
push str.Setupmsback1
lea eax, [ebp - 0x28]
push edx
push eax
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x24]
push str.msres
lea edx, [ebp - 0x34]
push ecx
push edx
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_operator
lea eax, [ebp - 0x24]
push str.Setup
lea ecx, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push eax
call esi
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov edx, dword [ebp - 0x28]
push ebx
push edx
call esi
lea ecx, [ebp - 0x64]
call sub.MFC42u.DLL_CFileFind::CFileFind
push 0x416de8
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00409f2c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00409f2c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
call fcn.00409f2c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.00409f2c
lea eax, [ebp - 0x28]
push str..
lea ecx, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_operator
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
mov edx, dword [ebp - 0x2c]
push ebx
push edx
lea ecx, [ebp - 0x64]
call sub.MFC42u.DLL_CFileFind::FindFile
mov esi, eax
mov bl, 0xe
test esi, esi
lea ecx, [ebp - 0x64]
je 0x409247
call sub.MFC42u.DLL_CFileFind::FindNextFileW
mov esi, eax
mov eax, dword [ebp - 0x64]
push 0x10
lea ecx, [ebp - 0x64]
call dword [eax + 0x40]
test eax, eax
jne 0x4090d7
lea ecx, [ebp - 0x64]
call sub.MFC42u.DLL_CFileFind::IsDots
test eax, eax
jne 0x4090d7
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x64]
call sub.MFC42u.DLL_CFileFind::GetFileName
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x64]
push edx
call sub.MFC42u.DLL_CFileFind::GetFilePath
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
push eax
push ecx
lea edx, [ebp - 0x1c]
push str._s_s
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
add esp, 0x10
lea edx, [ebp - 0x18]
push eax
push ecx
push str._s_s
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea edx, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push edx
mov byte [ebp - 4], 0xd
call sub.MFC42u.DLL_CString::CString_2
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 9
call fcn.00409350
test al, al
jne 0x4090d7
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::MakeLower
push str._svchost.exe
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Find_1
test eax, eax
jle 0x409207
push str.BeginCheckVersionFile____svchost.exe___
call fcn.00401770
add esp, 4
lea edx, [ebp - 0x18]
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push edx
call sub.MFC42u.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x40], esp
jmp 0x409222
push 0
push ecx
lea edx, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push edx
call sub.MFC42u.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0x40], esp
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42u.DLL_CString::CString_2
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00409970
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::CString
jmp 0x4090d7
call sub.MFC42u.DLL_CFileFind::Close
push str.BeginCheckVersionFile____End
call fcn.00401770
add esp, 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.0040a48a
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret