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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6799120a
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0xc]
mov ebp, dword [esp + 0x28]
lea ebx, [esi + 0x14]
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x2c]
lea edi, [esi + 0x18]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x6793c018
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x6793c0c8
push 0x5c
lea eax, [esp + 0x30]
push ebx
push eax
call sub.MFC42.DLL_operator_3
push edi
lea ecx, [esp + 0x2c]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x2c], ebx
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [edi]
cmp dword [edx - 8], ebx
je 0x6793bfeb
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6793bfeb
test al, 0x10
jne 0x6793bfeb
push 0x14
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x20], 3
je 0x6793bf95
mov ecx, eax
call sub.MFC42.DLL_CStdioFile::CStdioFile
jmp 0x6793bf97
xor eax, eax
mov ecx, dword [esp + 0x28]
push ebx
mov dword [esi + 0x20], eax
mov edx, dword [eax]
push ebx
push ecx
mov ecx, eax
mov byte [esp + 0x2c], 2
call dword [edx + 0x28]
test eax, eax
jne 0x6793bfda
mov ecx, dword [esi + 0x20]
cmp ecx, ebx
je 0x6793bfc2
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x20], ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x6793c112
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x28]
jmp 0x6793c108
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x6793c006
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esi + 0xc], eax
or ebx, 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString
jmp 0x6793c029
mov eax, dword [edi]
mov eax, dword [eax - 8]
neg eax
sbb eax, eax
and eax, ecx
or ebx, 0xffffffff
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x6793c0c8
mov ecx, dword [edi]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x6793c066
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call sym.MfcHlpr520.dll_private:_class_CString___thiscall_CMHPSkinManagerResourceFile::GetDefaultIniFileName_void_
push eax
mov ecx, edi
mov dword [esp + 0x24], 4
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_6
push 0x5f
push 0x2e
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 5
call sub.MFC42.DLL_CString::Replace
push 0x5f
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
push str.TEXTFILE
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x6793c0bb
mov edx, dword [esi + 0xc]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x6793c0cc
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x6793c112
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 4], eax
mov ebx, eax
mov eax, dword [esi + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
shr eax, 1
test ebx, ebx
lea ecx, [ebx + eax*2]
mov dword [esi + 8], ecx
je 0x6793c0fc
cmp word [ebx], 0xfeff
jne 0x6793c0fc
add ebx, 2
mov dword [esi + 4], ebx
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8