Function at 0x46ad00
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov eax, dword [ebx]
mov edx, dword [eax + 0xdc]
mov edi, dword [eax + 4]
mov ecx, dword [edx]
mov dword [esp + 0x28], ecx
test edi, edi
je 0x46ad2c
mov ecx, dword [eax]
test byte [ecx + 4], 1
jne 0x46b000
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x46ad4a
add edx, 0x1c
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0041d440
mov eax, dword [ebx]
mov edx, dword [eax + 0xdc]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x46ad62
add edx, 0x18
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0041d440
mov eax, dword [ebx]
mov esi, dword [eax + 4]
test esi, esi
jne 0x46ae60
mov edx, dword [eax + 0xd4]
test edx, edx
je 0x46ad98
lea eax, [esp + 0x2c]
add edx, 8
mov dword [esp], eax
mov dword [esp + 0x2c], edx
call fcn.00488210
mov esi, eax
mov eax, edx
or eax, esi
jne 0x46af80
mov eax, dword [ebx]
mov edx, dword [eax + 0xd8]
test edx, edx
je 0x46adc5
mov dword [esp], edx
call fcn.0042b340
mov esi, eax
test eax, eax
jne 0x46ae70
mov eax, dword [ebx]
add eax, 0xd8
mov dword [esp], eax
call fcn.0042b350
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
test edx, edx
je 0x46addd
add eax, 0x10
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0041d440
mov eax, dword [ebx]
mov ecx, dword [eax + 0xb8]
test ecx, ecx
je 0x46adf6
add eax, 0xb8
mov dword [esp], eax
call fcn.004960f0
mov eax, dword [ebx]
mov edx, dword [eax + 0xcc]
test edx, edx
je 0x46ae13
add eax, 0xcc
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0041d440
mov eax, dword [ebx]
add eax, 0xb4
mov dword [esp], eax
call fcn.0046e710
mov eax, dword [ebx]
mov edx, dword [eax + 0x6c]
test edx, edx
je 0x46ae34
add eax, 0x6c
mov dword [esp], eax
call fcn.00485420
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0041d440
mov dword [ebx], 0
xor eax, eax
xor edx, edx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call fcn.004152d0
mov eax, dword [ebx]
jmp 0x46ad6d
mov edi, dword [fcn.004a1b90]
mov dword [esp + 0x2c], 0
mov dword [esp], 2
call edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x546be0
mov dword [esp + 4], str.__s__Volume_destroyed_with__Iu_open_irefs:
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call edi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x546bdd
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
lea eax, [esp + 0x2c]
mov dword [esp + 8], 0x46a4b0
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xd8]
mov dword [esp], eax
call fcn.0042bb40
mov esi, eax
mov eax, edx
or eax, esi
je 0x46adb4
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov dword [esp], 2
mov ebp, eax
call edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x546ba0
mov dword [esp + 4], str.__s__Error_while_iterating_over_open_irefs:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call edi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x546bdd
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x46adb4
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov edi, dword [fcn.004a1b90]
mov dword [esp], 2
mov ebp, eax
call edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x546be0
mov dword [esp + 4], str.__s__Error_while_releasing_root_directory_inode:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call edi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x546bdd
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x46ad96
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov dword [esp + 8], 0x546be0
mov dword [esp + 4], str.__s__Attempted_to_destroy_a_volume_with_an_open_device.
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], 0x546bdd
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, 0x10
xor edx, edx
jmp 0x46ae52