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, 0x288
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov ebx, dword [ecx + 8]
cmp eax, 0x11
je 0x4013f0
cmp eax, 0x13
je 0x4013b0
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
test byte [section..data], 8
je 0x401399
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Extracted__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___FUNCTION__
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401399
mov ecx, dword [section..bss]
lea eax, [ebx + 0x12]
mov edi, ebx
sub esi, ebx
mov edx, eax
neg edi
test ecx, ecx
jne 0x401510
mov dword [ebp - 0x25c], eax
nop
mov ecx, edx
movzx eax, word [edx + esi - 0x12]
add edx, 2
mov word [ecx], ax
test ax, ax
jne 0x401410
mov eax, dword [ebp - 0x25c]
cmp word [ebx + 0x12], 0
mov esi, dword [ebx]
mov ecx, eax
je 0x401441
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x401438
xor edx, edx
lea esi, [esi]
nop
movzx ebx, word [esi + edx]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x401448
lea ebx, [ebp - 0x220]
add edi, ebx
mov edx, eax
add eax, 2
movzx edx, word [edx]
mov word [eax + edi - 0x14], dx
test dx, dx
jne 0x401460
mov dword [esp], ebx
call sym._PathFindFileNameW_4
xor edx, edx
sub esp, 4
mov word [eax], dx
mov dword [esp], ebx
call sym._PathIsDirectoryW_4
sub esp, 4
test eax, eax
je 0x4014a8
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 + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call sym._SHCreateDirectoryExW_12
sub esp, 0xc
test eax, eax
je 0x401491
cmp eax, 0xb7
je 0x401491
test byte [section..data], 2
je 0x401491
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Cant_create_directory:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.create_target_directory
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401491
lea esi, [ebp - 0x250]
lea edi, [ebp - 0x230]
mov dword [esp + 8], esi
movzx eax, word [ebx + 0xe]
mov dword [esp + 4], eax
movzx eax, word [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DosDateTimeToFileTime]
sub esp, 0xc
mov dword [esp + 4], edi
mov dword [esp], esi
lea esi, [ebp - 0x248]
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
sub esp, 8
mov dword [esp + 0x10], esi
mov dword [esp + 8], edi
mov dword [esp + 0x14], 0xc
mov dword [esp + 0xc], str.MM_dd_yyyy
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetDateFormatA]
lea eax, [ebp - 0x23c]
sub esp, 0x18
mov dword [esp + 8], edi
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.HH:mm:ss
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetTimeFormatA]
mov eax, dword [ebx + 4]
mov edi, dword [ebx]
sub esp, 0x18
mov dword [ebp - 0x25c], eax
movzx eax, word [ebx + 0x10]
mov dword [esp + 0x24], edi
mov edi, dword [ebp - 0x25c]
mov edx, eax
mov dword [esp + 8], esi
lea esi, [ebp - 0x220]
and edx, 4
mov dword [esp + 0x20], edi
cmp dx, 1
mov edx, eax
mov dword [esp + 4], str._s__s__c_c_c_c__15u__S_n
sbb ebx, ebx
and edx, 1
mov dword [esp], esi
and ebx, 0xffffffda
add ebx, 0x53
cmp dx, 1
mov edx, eax
sbb ecx, ecx
and edx, 2
mov dword [esp + 0x1c], ebx
and ecx, 0xffffffdb
add ecx, 0x52
cmp dx, 1
sbb edx, edx
and eax, 0x20
mov dword [esp + 0x18], ecx
and edx, 0xffffffe5
add edx, 0x48
cmp ax, 1
sbb eax, eax
mov dword [esp + 0x14], edx
and eax, 0xffffffec
add eax, 0x41
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x23c]
mov dword [esp + 0xc], eax
call sym._wsprintfA
mov dword [esp], 0xfffffff5
mov ebx, eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
lea edx, [ebp - 0x254]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov eax, 2
sub esp, 0x14
jmp 0x40139b