Function at 0x4095c0
Capabilities:
Access peb ldr_data
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x417e0e
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x328]
mov ecx, dword [eax + 0x120]
test ecx, ecx
push edi
jne 0x4097cb
mov ecx, dword [eax + 0x128]
test ecx, ecx
jne 0x4097cb
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
mov eax, dword [esi + 0x328]
mov ecx, dword [eax + 0xf4]
push ecx
lea edx, [esp + 0x10]
push 0x95
push edx
mov dword [esp + 0x3c], 2
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::Fork]
add esp, 0xc
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
push 0x7ef
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 3
call dword [sym.imp.MFC71U.DLL_CWinApp::LoadStdProfileSettings]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push 0x41c7d8
push ecx
mov ecx, dword [esi + 0x328]
push esi
lea edx, [esp + 0x28]
push edx
call fcn.00412cf0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 4
call dword [0x41a404]
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4096d5
push eax
push 0
push 0x7eb
call sub.MFC71U.DLL_AfxMergeMenus
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [esi + 0x328]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [eax + 0x118]
call dword [0x41a404]
push 0xd3
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_CTypeLibCache::Lock]
push eax
lea ecx, [esp + 0x24]
call fcn.00403910
mov bl, 5
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], bl
call dword [sym.imp.MFC71U.DLL_CDC::ReleaseAttribDC]
push 0
push 0x41b044
push 0xb4
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
call fcn.00404070
mov ecx, dword [esi + 0x328]
push eax
add ecx, 0x114
mov byte [esp + 0x34], 6
call dword [0x41a404]
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, dword [esi + 0x328]
mov eax, dword [eax + 0x114]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4097ae
push eax
push 0
push 0x7ec
call sub.MFC71U.DLL_AfxMergeMenus
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 3
call fcn.004039b0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 3
call fcn.004039b0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
jmp 0x409940
mov eax, dword [eax + 0x114]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x409812
mov ecx, dword [esi + 0x328]
mov eax, dword [ecx + 0x100]
push eax
push 0x427b98
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409812
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
mov edx, dword [esi + 0x328]
mov eax, dword [edx + 0x100]
push eax
push 0x427b98
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
call dword [sym.imp.MSVCR71.dll__time64]
add esp, 4
mov dword [esp + 0x10], eax
push str.__m_d_y__H_M_S
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
call fcn.00407ef0
mov ecx, dword [eax]
mov edx, dword [esi + 0x328]
mov eax, dword [edx + 0xf4]
push ecx
push 0x427b98
push eax
lea ecx, [esp + 0x18]
push 0x41c7a8
push ecx
mov byte [esp + 0x44], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov edx, dword [esp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
lea ecx, [esp + 0xc]
je 0x409908
push 1
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MFC71U.DLL_RFX_Text_Bulk]
push 0x41c7a4
mov ecx, eax
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
lea ecx, [esp + 0x18]
setne bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test bl, bl
je 0x4098ef
push 0x41c7a4
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x328]
add ecx, 0x114
call dword [0x41a404]
jmp 0x409940
mov edx, dword [esi + 0x328]
add edx, 0xf4
push edx
call dword [0x41a404]
mov ecx, dword [esi + 0x328]
lea eax, [esp + 0xc]
push eax
add ecx, 0x114
call dword [0x41a404]
push 0xffffffffffffffff
push 0
push 0x7ea
call sub.MFC71U.DLL_AfxMergeMenus
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esi + 0x328]
mov eax, dword [ecx + 0x114]
push eax
call edi
mov ecx, dword [esp + 0x28]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov eax, edx
add esp, 0x28
ret