Function at 0x402ff0
Capabilities:
Create directory
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4095a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x48]
xor ebx, ebx
push ebx
push eax
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [esp + 0x44]
test byte [esi + 0xc], 0x10
jne 0x4031e4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
push 1
lea edx, [esp + 0x14]
push ecx
push edx
push esi
mov byte [esp + 0x48], 2
call fcn.00401620
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push ebx
push ecx
push edx
call dword [0x40e86c]
test eax, eax
je 0x4031bf
mov eax, dword [esp + 0x20]
push ebx
push eax
call dword [0x40e868]
mov edi, eax
push 1
push edi
call dword [sym.imp.MSVCRT.dll_calloc]
mov edx, dword [esp + 0x28]
add esp, 8
lea ecx, [esp + 0x24]
mov ebp, eax
push ebx
push ecx
push edi
push ebp
push edx
call dword [0x40e864]
test eax, eax
je 0x40325c
cmp edi, dword [esp + 0x24]
jne 0x40325c
cmp ebp, ebx
jbe 0x403157
lea eax, [esp + 0x48]
push 0x40e2b4
lea ecx, [esp + 0x2c]
push eax
push ecx
call sub.MFC42.DLL_operator_1
lea edx, [esp + 0x14]
mov byte [esp + 0x38], 3
push edx
push eax
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 5
call fcn.00408cfe
mov ecx, dword [esp + 0x18]
push 0x40e2cc
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40320d
push esi
push edi
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, edi
jne 0x40320d
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.00408cfe
mov esi, dword [esp + 0x44]
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push 0x40e2c4
push eax
mov byte [esp + 0x44], 6
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 6
call fcn.00408cfe
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [edx + 4]
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.00408cfe
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.00408cfe
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call fcn.00408cfe
test byte [esi + 0xc], 0x10
je 0x40302c
lea ecx, [esp + 0x48]
mov dword [esp + 0x38], 0xffffffff
call fcn.00408cfe
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.00408cfe
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.00408cfe
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call fcn.00408cfe
lea ecx, [esp + 0x48]
mov dword [esp + 0x38], 0xffffffff
call fcn.00408cfe
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [esp + 0x20]
push eax
call dword [0x40e860]
jmp 0x40321b