Function at 0x401deb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0x18]
mov byte [ebp - 0x1c], al
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
je 0x401e18
cmp dword [ebp + 0xc], 0
jne 0x401e4a
mov dword [esp + 8], 0x168
mov dword [esp + 4], str.createSubFile
mov dword [esp], str.e_0_31m_ERROR___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov dword [esp], str.The_input_parameter_is_a_null_pointer
call sub.msvcrt.dll_puts
mov eax, 0xffffffff
jmp 0x4020e1
movzx eax, byte [0x40f020]
cmp al, 1
jne 0x401e84
mov dword [esp + 8], 0x16b
mov dword [esp + 4], str.createSubFile
mov dword [esp], str.e_0_34m_DEBUG___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.intFileName_s_n
call sub.msvcrt.dll_printf
movzx eax, byte [0x40f020]
cmp al, 1
jne 0x401ebe
mov dword [esp + 8], 0x16c
mov dword [esp + 4], str.createSubFile
mov dword [esp], str.e_0_34m_DEBUG___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.outFileName_s_n
call sub.msvcrt.dll_printf
movzx eax, byte [0x40f020]
cmp al, 1
jne 0x401ef8
mov dword [esp + 8], 0x16d
mov dword [esp + 4], str.createSubFile
mov dword [esp], str.e_0_34m_DEBUG___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.offset0x_x_n
call sub.msvcrt.dll_printf
movzx eax, byte [0x40f020]
cmp al, 1
jne 0x401f32
mov dword [esp + 8], 0x16e
mov dword [esp + 4], str.createSubFile
mov dword [esp], str.e_0_34m_DEBUG___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.size0x_x_n
call sub.msvcrt.dll_printf
movzx eax, byte [0x40f020]
cmp al, 1
jne 0x401f6d
mov dword [esp + 8], 0x16f
mov dword [esp + 4], str.createSubFile
mov dword [esp], str.e_0_34m_DEBUG___s:_d:_e_0m
call sub.msvcrt.dll_printf
movzx eax, byte [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.IsInterleaveMode0x_x_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401fbb
mov dword [esp + 8], 0x173
mov dword [esp + 4], str.createSubFile
mov dword [esp], str.e_0_31m_ERROR___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov dword [esp + 4], str.createSubFile
mov dword [esp], str._ERROR__malloc_fail_in__s_n
call sub.msvcrt.dll_printf
mov eax, 0xffffffff
jmp 0x4020e1
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memset
movzx eax, byte [ebp - 0x1c]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040194f
cmp eax, 0xffffffff
jne 0x40204d
mov dword [esp + 8], 0x179
mov dword [esp + 4], str.createSubFile
mov dword [esp], str.e_0_31m_ERROR___s:_d:_e_0m
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str._ERROR__get_file_from__s_fail_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, 0xffffffff
jmp 0x4020e1
mov dword [esp + 4], 0x40c0c1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x14]
je 0x4020c6
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.Return_size_is_not_enough_wsize0x_x__size0x_x_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, 0xffffffff
jmp 0x4020e1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, 0
leave
ret