Function at 0x4013a0
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 0x401420
cmp eax, 0x13
je 0x4013e0
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 0x4013c9
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___func__
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4013c9
mov ecx, dword [section..bss]
lea eax, [ebx + 0x12]
mov edi, ebx
sub esi, ebx
mov edx, eax
neg edi
test ecx, ecx
jne 0x401548
mov dword [ebp - 0x25c], edi
nop
mov edi, edx
movzx ecx, word [edx + esi - 0x12]
add edx, 2
mov word [edi], cx
test cx, cx
jne 0x401440
cmp word [ebx + 0x12], 0
mov edi, dword [ebp - 0x25c]
mov ecx, eax
mov esi, dword [ebx]
je 0x401471
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x401468
xor edx, edx
lea esi, [esi]
nop
movzx ebx, word [esi + edx]
mov word [ecx + edx], bx
add edx, 2
test bx, bx
jne 0x401478
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 0x401490
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_PathFindFileNameW]
xor edx, edx
sub esp, 4
mov word [eax], dx
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_PathIsDirectoryW]
sub esp, 4
test eax, eax
je 0x4014e0
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 dword [sym.imp.shell32.dll_SHCreateDirectoryExW]
sub esp, 0xc
test eax, eax
je 0x4014c3
cmp eax, 0xb7
je 0x4014c3
test byte [section..data], 2
je 0x4014c3
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 0x4014c3
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 dword [sym.imp.user32.dll_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 0x4013cb