Function at 0x401390
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 edi, dword [ecx]
mov esi, dword [ecx + 8]
cmp eax, 0x11
je 0x4013e0
xor ebx, ebx
cmp eax, 0x13
jne 0x4013c8
test byte [section..data], 8
jne 0x4014a0
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov ebx, esi
mov ecx, dword [section..bss]
lea eax, [esi + 0x12]
sub edi, esi
neg ebx
mov edx, eax
mov dword [ebp - 0x25c], ebx
test ecx, ecx
jne 0x401550
nop
mov ebx, edx
movzx ecx, word [edx + edi - 0x12]
add edx, 2
mov word [ebx], cx
test cx, cx
jne 0x401400
cmp word [esi + 0x12], 0
mov ebx, dword [esi]
mov ecx, eax
je 0x401429
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x401420
xor edx, edx
lea esi, [esi]
nop
movzx esi, word [ebx + edx]
mov word [ecx + edx], si
add edx, 2
test si, si
jne 0x401430
mov ecx, dword [ebp - 0x25c]
lea ebx, [ebp - 0x220]
add ecx, ebx
nop
mov edx, eax
add eax, 2
movzx edx, word [edx]
mov word [eax + ecx - 0x14], dx
test dx, dx
jne 0x401450
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 ebx, 1
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [esi]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Extracted__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.ExtCabCallback
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0x10]
mov eax, ebx
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 0x401483
cmp eax, 0xb7
je 0x401483
test byte [section..data], 2
je 0x401483
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 0x401483
lea edi, [ebp - 0x250]
lea ebx, [ebp - 0x230]
mov dword [esp + 8], edi
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], ebx
mov dword [esp], edi
lea edi, [ebp - 0x248]
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
sub esp, 8
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x10], edi
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], ebx
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 [esi]
sub esp, 0x18
mov edx, eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x25c], eax
movzx eax, word [esi + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x25c]
mov ecx, eax
mov dword [esp + 8], edi
and ecx, 4
mov dword [esp + 0x20], edx
cmp cx, 1
mov ecx, eax
mov dword [esp + 4], str._s__s__c_c_c_c__15u__S_n
sbb esi, esi
and ecx, 1
and esi, 0xffffffda
add esi, 0x53
cmp cx, 1
mov ecx, eax
sbb ebx, ebx
and ecx, 2
mov dword [esp + 0x1c], esi
lea esi, [ebp - 0x220]
and ebx, 0xffffffdb
mov dword [esp], esi
add ebx, 0x52
cmp cx, 1
sbb ecx, ecx
and eax, 0x20
mov dword [esp + 0x18], ebx
and ecx, 0xffffffe5
add ecx, 0x48
cmp ax, 1
sbb eax, eax
mov dword [esp + 0x14], ecx
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 + 8], ebx
mov ebx, 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
jmp 0x4013c8