Function at 0x4026d0
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4035d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
lea ecx, [esp + 8]
mov dword [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CFile::CFile
xor eax, eax
push 0x406350
mov dword [esp + 0x15], eax
lea ecx, [esp + 0x10]
mov word [esp + 0x19], ax
mov byte [esp + 0x44], 3
mov byte [esp + 0x14], 0
mov byte [esp + 0x1b], al
call fcn.00402f72
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x40625c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edx
call ebx
cmp eax, 0xffffffff
je 0x402775
and eax, 0x10
cmp al, 0x10
je 0x402782
mov eax, dword [esp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
push edx
push str._slog.xslt
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x14]
add esp, 0xc
push ecx
call ebx
cmp eax, 0xffffffff
je 0x4027bb
and eax, 0x10
cmp al, 0x10
jne 0x40286d
mov edx, dword [esp + 8]
push ebp
push edi
push 0
push 0x1042
push edx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Open
push str.XSLTSTRING
push 0x86
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebp
mov ecx, 0x40634c
mov esi, eax
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, ebp
mov edi, eax
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40634c
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x54]
mov edx, dword [0x40634c]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_CString::Format
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402630
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Close
pop edi
pop ebp
mov edx, dword [esp + 0x2e]
mov eax, dword [esp + 0x2a]
mov ecx, dword [esp + 0x28]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x10]
and ecx, 0xffff
push eax
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_02d_02d_02d.xml
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0x18
push ecx
call ebx
cmp eax, 0xffffffff
je 0x4028cb
and eax, 0x10
cmp al, 0x10
je 0x4028cb
mov edx, dword [esp + 8]
push 0
push 0x42
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Open
jmp 0x402939
mov eax, dword [esp + 8]
push 0
push 0x1042
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Open
mov ecx, dword [esp + 0x2e]
mov edx, dword [esp + 0x2a]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x54]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [0x406358]
push ecx
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call sub.MFC42.DLL_CString::Format
lea edx, [esp + 0x24]
push edx
call fcn.00402630
mov eax, dword [esp + 0x28]
add esp, 0x20
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Write
push 2
push 0xfffffffffffffff9
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Seek
lea eax, [esp + 0x10]
push 7
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x10]
push str.__logs_
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x402973
push 1
push 0xfffffffffffffff7
jmp 0x402977
push 2
push 0xfffffffffffffffe
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Seek
lea edx, [esp + 0x10]
push 2
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Read
mov al, byte [esp + 0x10]
mov cl, 0xd
cmp al, cl
je 0x4029bc
mov dl, byte [esp + 0x11]
mov al, 0xa
cmp dl, al
je 0x4029bc
mov byte [esp + 0x11], al
lea eax, [esp + 0x10]
mov byte [esp + 0x10], cl
push 2
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Write
mov esi, dword [esp + 0x48]
push esi
call fcn.00402630
mov eax, dword [esi]
add esp, 4
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Write
push str._r_n__logs_
mov ecx, esi
call fcn.00402d0e
mov esi, dword [esi]
lea ecx, [esp + 0x18]
mov eax, dword [esi - 8]
push eax
push esi
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 2
call fcn.00402f8a
lea ecx, [esp + 8]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x38]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret