Function at 0x445f10
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x7c
mov esi, dword [eax + 0x34]
test esi, 7
jne 0x445f2a
test byte [eax + 0x30], 7
je 0x445f40
mov eax, ebx
call fcn.00445c00
mov edi, eax
mov eax, edx
or eax, edi
jne 0x446180
mov esi, dword [ebx + 0x34]
test esi, esi
je 0x446090
mov ecx, dword [ebx + 0x30]
shr esi, 3
xor edx, edx
shr ecx, 3
sub esi, ecx
mov eax, ecx
add eax, dword [ebx + 0x18]
adc edx, dword [ebx + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 8]
mov edi, esi
mov dword [esp + 0x44], edx
xor edx, edx
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0xc]
mov ebp, edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
add edi, eax
adc ebp, edx
cmp eax, dword [esp + 0x4c]
sbb edx, dword [esp + 0x58]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ebp
mov edi, dword [ebx + 0x10]
mov ebp, dword [ebx + 0x14]
jb 0x4460a5
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov esi, ebp
cmp edi, eax
sbb esi, edx
jb 0x4460a5
lea eax, [esp + 0x6c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
add ecx, dword [ebx + 0x3c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00415e50
mov edi, eax
mov eax, edx
or eax, edi
jne 0x44621f
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x5c]
cmp esi, edi
je 0x446090
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov edi, 5
mov dword [esp + 8], 0x53d400
mov dword [esp + 4], 0x53d6d0
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], 0x53d439
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
xor edx, edx
jmp 0x44609b
mov dword [ebx + 0x38], 0
xor edi, edi
xor edx, edx
add esp, 0x7c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov ebx, ebp
call esi
mov ecx, edi
mov edi, 6
mov dword [esp + 0x14], str.exfat_fat_buffer_flush
add ecx, 0xffffffff
mov dword [esp + 0x10], 0x7bd
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x4c]
adc ebx, 0xffffffff
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc], 0x53d612
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], 0x53d618
add ecx, 0xffffffff
mov dword [esp + 4], 0x53d624
adc ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
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], 0x53d439
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x7c
mov eax, edi
xor edx, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 0x4c], edx
call fcn.0041d490
mov ecx, dword [ebx + 0x30]
mov esi, dword [ebx + 0x34]
mov dword [esp], 2
mov ebp, eax
mov ebx, dword [fcn.004a1b90]
mov dword [esp + 0x40], ecx
call ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0x53d400
mov dword [esp + 4], 0x53d59c
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], 0x53d439
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x4c]
add esp, 0x7c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], edi
mov dword [esp + 0x4c], edx
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov ebp, eax
call ebx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x53d400
mov dword [esp + 4], 0x53d680
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4461d7