Function at 0x404200
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404480
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea ecx, [ebp - 0x24]
push ebx
push esi
mov ebx, 1
call sub.MFC40.DLL_CString::CString_1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC40.DLL_CString::CString_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC40.DLL_CString::CString_1
mov byte [ebp - 4], 2
lea eax, [ebp - 0x128]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jbe 0x4042b2
push str.couldnt_get_temporary_path
push 0x5a8
call fcn.0040ae20
add esp, 8
mov ecx, dword [ebp + 8]
push 0x419048
call sub.MFC40.DLL_CString::operator
mov byte [ebp - 4], bl
call fcn.00404470
mov byte [ebp - 4], 0
call fcn.00404478
mov dword [ebp - 4], 0xffffffff
call fcn.0040448a
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c5
lea ecx, [ebp - 0x18]
call sub.MFC40.DLL_CString::LoadStringA
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x10]
push eax
mov ebx, 3
call sub.MFC40.DLL_CString::operator
push 0x4190a4
lea ecx, [ebp - 0x1c]
call sub.MFC40.DLL_CString::CString
mov esi, eax
push 1
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], bl
call sub.MFC40.DLL_CString::Right
mov byte [ebp - 4], 4
mov ecx, dword [esi]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.MSVCRT40.dll__mbscmp]
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp eax, 1
mov byte [ebp - 4], bl
sbb dword [ebp - 0x14], ecx
neg dword [ebp - 0x14]
call fcn.00404460
mov byte [ebp - 4], 2
call fcn.00404468
cmp dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
je 0x40435a
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x14]
push ecx
push edx
call sub.MFC40.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call sub.MFC40.DLL_CString::operator_1
mov byte [ebp - 4], 2
call fcn.00404352
jmp 0x4043b2
push 0x4190a4
lea ecx, [ebp - 0x20]
call sub.MFC40.DLL_CString::CString
push eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov ebx, 7
mov byte [ebp - 4], 6
push eax
push ecx
call sub.MFC40.DLL_operator
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], bl
call sub.MFC40.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call sub.MFC40.DLL_CString::operator_1
mov byte [ebp - 4], bl
call fcn.00404458
mov byte [ebp - 4], 6
call fcn.00404450
mov byte [ebp - 4], 2
call fcn.00404448
cmp dword [ebp + 0xc], 0
je 0x4043c8
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push eax
push ecx
call fcn.004044a0
add esp, 8
push 0
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
test eax, eax
jne 0x404414
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404414
push str.couldnt_create_the_target_directory
push 0x5a8
call fcn.0040ae20
add esp, 8
mov ecx, dword [ebp + 8]
push 0x419048
call sub.MFC40.DLL_CString::operator
mov byte [ebp - 4], 1
jmp 0x404286
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 8]
push eax
call sub.MFC40.DLL_CString::operator_1
mov byte [ebp - 4], 1
call fcn.00404470
mov byte [ebp - 4], 0
call fcn.00404478
mov dword [ebp - 4], 0xffffffff
call fcn.0040448a
mov eax, 1
jmp 0x4042a2