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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x3a8
mov edi, dword [ecx]
mov esi, dword [ecx + 8]
mov ecx, dword [section..bss]
test ecx, ecx
jne 0x401560
mov ebx, esi
sub edi, esi
lea eax, [esi + 0x12]
neg ebx
mov dword [ebp - 0x37c], ebx
mov edx, eax
nop
lea esi, [esi]
mov ebx, edx
add edx, 2
movzx ecx, word [edx + edi - 0x14]
mov word [ebx], cx
test ecx, ecx
jne 0x4013b0
cmp word [esi + 0x12], 0
mov ecx, eax
mov ebx, dword [esi]
je 0x4013d9
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x4013d0
xor edx, edx
nop
lea esi, [esi]
movzx esi, word [ebx + edx]
mov word [ecx + edx], si
add edx, 2
test esi, esi
jne 0x4013e0
mov edi, dword [ebp - 0x37c]
lea ebx, [ebp - 0x220]
lea ecx, [ebp + edi - 0x220]
lea esi, [esi]
lea edi, [edi]
mov edx, eax
add eax, 2
movzx edx, word [edx]
mov word [eax + ecx - 0x14], dx
test edx, edx
jne 0x401410
mov dword [esp], ebx
call sym._PathFindFileNameW_4
mov word [eax], 0
sub esp, 4
mov dword [esp], ebx
call sym._PathIsDirectoryW_4
sub esp, 4
test eax, eax
je 0x401458
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 4], ebx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], 0
call sym._SHCreateDirectoryExW_12
sub esp, 0xc
test eax, eax
je 0x401440
cmp eax, 0xb7
je 0x401440
test byte [section..data], 2
je 0x401440
mov eax, ebx
shr eax, 0x10
je 0x4017b5
mov dword [esp], ebx
mov eax, 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x4017d2
cmp word [ebp - 0x220], 0
je 0x4017d9
nop
lea esi, [esi]
mov edx, eax
cmp word [ebx + edx*2 + 2], 0
lea eax, [eax + 1]
jne 0x4014c0
mov dword [ebp - 0x37c], ebx
lea esi, [ebp - 0x22a]
mov ecx, 0x224c
mov word [ebp - 0x34c], cx
lea ecx, [ebp - 0x34a]
jmp 0x401525
cmp eax, 9
je 0x40174f
cmp eax, 0xa
jne 0x4016f7
mov word [ecx], 0x6e5c
add ecx, 2
lea esi, [esi]
lea eax, [edx - 1]
cmp ecx, esi
ja 0x40175c
test edx, edx
jle 0x40175c
mov edx, eax
add dword [ebp - 0x37c], 2
mov eax, dword [ebp - 0x37c]
movzx eax, word [eax - 2]
cmp eax, 0xd
je 0x4016dd
jbe 0x4014f0
cmp eax, 0x22
je 0x401742
cmp eax, 0x5c
lea esi, [esi]
jne 0x4016ea
mov word [ecx], 0x5c5c
add ecx, 2
jmp 0x401510
lea ebx, [ebp - 0x36c]
mov dword [esp + 8], ebx
lea edi, [ebp - 0x34c]
movzx eax, word [esi + 0xe]
mov dword [esp + 4], eax
movzx eax, word [esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DosDateTimeToFileTime]
sub esp, 0xc
mov dword [esp + 4], edi
mov dword [esp], ebx
lea ebx, [ebp - 0x364]
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
mov eax, 0xc
sub esp, 8
mov dword [esp + 0x14], eax
mov eax, str.MM_dd_yyyy
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetDateFormatA]
mov edx, 0xc
mov ecx, str.HH:mm:ss
lea eax, [ebp - 0x358]
sub esp, 0x18
mov dword [esp + 8], edi
xor edi, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetTimeFormatA]
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x37c], eax
movzx eax, word [esi + 0x10]
sub esp, 0x18
mov dword [esp + 0x24], edi
mov edi, dword [ebp - 0x37c]
mov dword [esp + 8], ebx
mov edx, eax
and edx, 4
cmp edx, 1
mov edx, eax
mov dword [esp + 0x20], edi
sbb esi, esi
and edx, 1
and esi, 0xffffffda
add esi, 0x53
cmp edx, 1
mov dword [esp + 0x1c], esi
sbb ecx, ecx
mov edx, eax
and ecx, 0xffffffdb
and edx, 2
lea esi, [ebp - 0x220]
add ecx, 0x52
mov dword [esp + 0x18], ecx
cmp edx, 1
mov dword [esp], esi
sbb edx, edx
and eax, 0x20
and edx, 0xffffffe5
add edx, 0x48
cmp eax, 1
mov dword [esp + 0x14], edx
sbb eax, eax
and eax, 0xffffffec
add eax, 0x41
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x358]
mov dword [esp + 0xc], eax
mov eax, str._s__s__c_c_c_c__15u__S_n
mov dword [esp + 4], eax
call sym._wsprintfA
mov dword [esp], 0xfffffff5
mov ebx, eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
xor edx, edx
sub esp, 4
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x370]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp + 0xc], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, 2
sub esp, 0x14
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov word [ecx], 0x725c
add ecx, 2
jmp 0x401510
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4017ca
mov byte [ecx], 0x5c
mov edi, eax
add ecx, 5
shr edi, 0xc
movzx ebx, byte [edi + str.0123456789abcdefget_extrac_args]
mov edi, eax
shr edi, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefget_extrac_args]
mov edi, eax
shr edi, 4
and eax, 0xf
and edi, 0xf
movzx eax, byte [eax + str.0123456789abcdefget_extrac_args]
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefget_extrac_args]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x401510
mov word [ecx], 0x225c
add ecx, 2
jmp 0x401510
mov word [ecx], 0x745c
add ecx, 2
jmp 0x401510
mov byte [ecx], 0x22
test eax, eax
jle 0x4017f2
mov word [ecx + 1], 0x2e2e
lea eax, [ecx + 4]
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x34c]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov ebx, str.Cant_create_directory:__s_n
mov esi, str.create_target_directory
mov dword [esp + 0x10], eax
mov edi, section..data
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401440
mov dword [esp], str._04x
movzx ebx, bx
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401785
mov byte [ecx], al
inc ecx
jmp 0x401510
mov eax, str._invalid_
jmp 0x401785
mov byte [ebp - 0x34a], 0x22
lea ecx, [ebp - 0x34a]
mov eax, 0x224c
mov word [ebp - 0x34c], ax
lea eax, [ecx + 1]
jmp 0x401774