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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28c
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp eax, 0x11
je 0x401380
xor ebx, ebx
cmp eax, 0x13
jne 0x40136b
test byte [section..data], 8
jne 0x401448
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov edi, esi
mov ecx, dword [0x403100]
lea eax, [esi + 0x12]
neg edi
mov edx, eax
mov dword [ebp - 0x25c], edi
mov edi, dword [ebp + 8]
sub edi, esi
test ecx, ecx
jne 0x4014f0
lea esi, [esi]
mov ebx, edx
movzx ecx, word [edx + edi - 0x12]
add edx, 2
mov word [ebx], cx
test cx, cx
jne 0x4013a8
cmp word [esi + 0x12], 0
mov ebx, dword [esi]
mov ecx, eax
je 0x4013d1
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x4013c8
xor edx, edx
lea esi, [esi]
nop
movzx esi, word [ebx + edx]
mov word [ecx + edx], si
add edx, 2
test si, si
jne 0x4013d8
mov ecx, dword [ebp - 0x25c]
lea ebx, [ebp - 0x220]
add ecx, ebx
lea esi, [esi]
lea esi, [esi]
mov edx, eax
add eax, 2
movzx edx, word [edx]
mov word [eax + ecx - 0x14], dx
test dx, dx
jne 0x401400
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 0x401488
lea esp, [ebp - 0xc]
mov ebx, 1
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
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 - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
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 0x401433
cmp eax, 0xb7
je 0x401433
test byte [section..data], 2
je 0x401433
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 0x401433
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 0x40136b