Function at 0x446f40
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
lea esi, [esp + 0x3c]
mov dword [esp + 4], 8
mov dword [esp + 8], esi
mov dword [esp], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.00427280
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x4471e0
mov eax, dword [esp + 0x70]
movzx edi, word [eax + 0x26]
lea eax, [edi*8]
mov dword [esp + 0x24], edi
test al, 0x18
jne 0x4471c0
lea eax, [esp + 0x44]
mov dword [esp + 4], 0x48
mov dword [esp + 8], eax
mov dword [esp], 0
call fcn.00427280
mov ebx, eax
mov eax, edx
mov ebp, edx
or eax, ebx
je 0x4470f1
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041d490
mov edi, dword [fcn.004a1b90]
mov dword [esp], 2
mov dword [esp + 0x24], eax
call edi
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x48
mov dword [esp + 0x14], edx
mov dword [esp + 8], 0x53d400
mov dword [esp + 4], str.__s__Error_while_allocating__Iu_bytes_for_exfat_fat_buffer:__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], 0x53d439
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0041d490
mov dword [esp], 2
mov dword [esp + 0x24], eax
call edi
mov edx, dword [esp + 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x53d400
mov dword [esp + 0x10], edx
mov dword [esp + 4], 0x53db70
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], 0x53d439
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4470d1
lea eax, [esp + 0x40]
call fcn.004458c0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4470e5
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0041d440
add esp, 0x5c
mov eax, ebx
mov edx, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x48]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.00427280
mov ebx, eax
mov ebp, edx
or edx, ebx
je 0x447222
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0041d490
mov edi, dword [fcn.004a1b90]
mov dword [esp], 2
mov dword [esp + 0x28], eax
call edi
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0x53d400
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0x53dae8
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], 0x53d439
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.0041d440
jmp 0x447049
lea eax, [edi + edi*2]
mov edx, edi
lea ecx, [eax*8]
shl edx, 5
and ecx, 0x18
cmovne eax, edx
mov dword [esp + 0x24], eax
jmp 0x446f9a
mov dword [esp + 4], edx
mov ebp, edx
mov dword [esp], ebx
call fcn.0041d490
mov dword [esp], 2
mov edi, dword [fcn.004a1b90]
mov dword [esp + 0x24], eax
call edi
mov edx, dword [esp + 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x53d400
mov dword [esp + 0x10], edx
mov dword [esp + 4], 0x53da64
jmp 0x44707e
lea eax, [esp + 0x4c]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.00427280
mov ebx, eax
mov eax, edx
mov ebp, edx
or eax, ebx
jne 0x447300
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x70]
xor edi, edi
xor edx, edx
mov dword [esp + 0x2c], edi
mov esi, dword [ecx + 0x44]
mov dword [eax], ecx
movzx ecx, byte [ecx + 0x28]
mov dword [esp + 0x28], esi
shld edi, esi, cl
shl esi, cl
test cl, 0x20
cmovne edi, esi
cmovne esi, edx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], esi
mov esi, dword [edx + 0x48]
mov dword [eax + 0xc], edi
xor edi, edi
add esi, dword [esp + 0x28]
adc edi, dword [esp + 0x2c]
xor edx, edx
mov dword [eax + 0x18], 0
shld edi, esi, cl
shl esi, cl
test cl, 0x20
mov ecx, dword [esp + 0x24]
cmovne edi, esi
cmovne esi, edx
mov edx, dword [esp + 0x48]
mov dword [eax + 0x1c], 0
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0x3c], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x10], esi
mov dword [eax + 0x40], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x14], edi
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [edx + 4], eax
mov eax, dword [esp + 0x74]
mov dword [edx], ecx
mov dword [eax], edx
add esp, 0x5c
mov eax, ebx
mov edx, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041d490
mov edi, dword [fcn.004a1b90]
mov dword [esp], 2
mov dword [esp + 0x28], eax
call edi
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0x53d400
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0x53db28
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], 0x53d439
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.0041d440
jmp 0x44719e