Function at 0x4086c0
Capabilities:
Create directory
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x411b2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3e]
mov word [esp + 0x3c], bp
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x40]
mov dword [esp + 0x250], ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x3c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x14]
mov word [eax], bp
push edx
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push str._s__fonts
push ecx
mov byte [esp + 0x258], 1
call sub.MFC42u.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42u.DLL_CString::CString_2
mov ecx, ebx
call fcn.00407e70
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebx + 0x1ca4], ebp
jbe 0x4088c8
mov esi, dword [esp + 0x254]
mov dword [esp + 0x18], ebp
mov ecx, dword [ebx + 0x1ca8]
mov edi, dword [esp + 0x18]
add ecx, edi
push 0
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 0xc
lea edx, [esp + 0x34]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x40]
push eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esp + 0x48]
push 0
push ecx
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esp + 0x50]
push esi
push edx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x3c
lea ecx, [esp + 0x2c]
call fcn.00410744
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 2
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0x14]
inc ebp
push ebp
push eax
lea ecx, [esp + 0x24]
push str._s__fonts__font__d.ttf
push ecx
mov byte [esp + 0x25c], 3
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 0x2c]
push 0
push 0x9002
push edx
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x4088a6
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
push edi
call sub.MFC42u.DLL_CFile::Write
push edi
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CFile::Close
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24c], 1
call sub.MFC42u.DLL_CFile::CFile
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x1ca4]
add ecx, 0xc
cmp ebp, eax
mov dword [esp + 0x18], ecx
jb 0x4087a2
jmp 0x4088c8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24c], 1
call sub.MFC42u.DLL_CFile::CFile
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x240
ret 4