Function at 0x494880
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x3c], 0
test ebx, ebx
je 0x494ad0
test ebp, ebp
je 0x494b50
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 0x80]
test ecx, ecx
je 0x4949c0
mov eax, dword [ebx]
cmp dword [eax + 0xd4], ebx
jne 0x494930
mov eax, dword [ebx + 0x20]
mov edx, dword [eax + 0x10]
test edx, edx
jne 0x494c73
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x494a40
lea eax, [esp + 0x3c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004882e0
mov esi, eax
mov eax, edx
mov edi, edx
or eax, esi
jne 0x494cb3
mov eax, dword [ebx]
test byte [eax + 0x1c], 4
jne 0x494b80
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edx
mov edx, dword [ebx + 0x30]
mov dword [esp], eax
add edx, 0xc0
mov dword [esp + 4], edx
call fcn.0047ad90
mov esi, eax
mov edi, edx
jmp 0x4949b0
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov esi, 6
xor edi, edi
call ebx
mov dword [esp + 0x14], str.fat_inode_read_root_metadata
mov dword [esp + 0x10], 0x307b
mov dword [esp + 0xc], str.inode.c
mov dword [esp + 8], 0x54db10
mov dword [esp + 4], str.__s___s:_d___s__Attempted_to_create_volume_label_in_non_root_dir.
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x54da76
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x4c
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
xor edi, edi
call esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x54da40
mov dword [esp + 4], str.__s__Invalid_inode_root_dir_ino___p_.
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x54da76
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov esi, 0x16
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x4c
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 2
mov esi, dword [fcn.004a1b90]
call esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], str.fat_inode_read_root_metadata
mov dword [esp + 0x10], 0x3087
mov dword [esp + 0xc], str.inode.c
mov dword [esp + 8], 0x54db10
mov dword [esp + 4], str.__s___s:_d___s__root_dir_ino___p__is_not_a_directory.
mov dword [esp], eax
xor edi, edi
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x54da76
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov esi, 6
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x4c
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
call ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x54da40
mov dword [esp + 4], str.__s__Invalid_argument_root_dir_ino___p_.
mov dword [esp], eax
mov esi, 0x16
xor edi, edi
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x54da76
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x4c
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
call ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x54da40
mov dword [esp + 4], str.__s__Invalid_argument_ctx___p_.
jmp 0x494af7
mov dword [esp], eax
call fcn.0046b3b0
mov esi, eax
mov eax, edx
mov edi, edx
or eax, esi
jne 0x494d30
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
add eax, 0xc0
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0047ad90
mov esi, eax
mov eax, dword [ebx]
mov edi, edx
mov dword [esp], eax
call fcn.0046d4c0
mov ebx, eax
mov eax, edx
mov ebp, edx
or eax, ebx
je 0x4949b0
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0041d490
mov edx, dword [fcn.004a1b90]
mov dword [esp], 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
call edx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x54da40
mov dword [esp + 0x10], ecx
mov dword [esp + 4], str.__s__Error_while_clearing_dirty_flag:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov edx, dword [esp + 0x28]
mov dword [esp], 2
call edx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x54da76
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x28]
mov dword [esp], 2
call edx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, edi
or eax, esi
cmove esi, ebx
cmove edi, ebp
add esp, 0x4c
pop ebx
mov eax, esi
mov edx, edi
pop esi
pop edi
pop ebp
ret
mov dword [esp], 2
mov esi, dword [fcn.004a1b90]
call esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], str.fat_inode_read_root_metadata
mov dword [esp + 0x10], 0x3081
mov dword [esp + 0xc], str.inode.c
mov dword [esp + 8], 0x54db10
mov dword [esp + 4], str.__s___s:_d___s__Deleted_inode_root_dir_ino___p_.
jmp 0x494a7b
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov ebp, eax
call ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x54da40
mov dword [esp + 4], str.__s__Error_while_getting_cluster_stream_for_destination_directory:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x54da76
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x4949b0
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov ebp, eax
call ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x54da40
mov dword [esp + 4], str.__s__Error_while_setting_dirty_flag:__lu___s_
jmp 0x494ce8