Function at 0x496fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
lea edi, [esp + 0x44]
mov dword [esp + 4], 0x280
mov esi, dword [esp + 0x70]
mov dword [esp + 8], edi
mov dword [esp], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.004270d0
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x4971a0
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov eax, dword [esp + 0x44]
mov dword [eax + 0x18], edx
mov dword [esp], esi
call fcn.00472630
mov eax, dword [esp + 0x44]
mov dword [esp], esi
mov dword [esp + 0x10], 0x496810
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.0047a790
mov ebx, eax
mov eax, edx
mov ebp, edx
or eax, ebx
jne 0x4970d0
mov eax, dword [esi + 0xd0]
mov edx, dword [esi + 0xd4]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xe0]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xe4]
mov dword [esi + 0xe4], 0
mov dword [esp], esi
mov dword [esp + 0x48], eax
call fcn.00472ad0
mov eax, dword [esp + 0x44]
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x4970b0
mov ecx, dword [eax + 0x50]
test ecx, ecx
je 0x4970b0
mov edx, dword [eax + 0x24]
test edx, edx
je 0x4970b0
movzx ecx, word [eax + 0x30]
cmp word [eax + 0x74], cx
je 0x4971e2
nop
mov ecx, dword [esp + 0x74]
mov dword [ecx], 0
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x497155
jmp 0x49716d
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041d490
mov dword [esp], 2
mov esi, dword [fcn.004a1b90]
mov dword [esp + 0x30], eax
call esi
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x551a00
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.__s__Error_while_listing_suspected_FAT_metadata_directory:__lu___s_
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], 0x551a4e
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x497165
lea eax, [esp + 0x48]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0041d440
mov eax, dword [esp + 0x44]
test eax, eax
je 0x497193
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x497187
add eax, 4
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0041d440
mov eax, dword [esp + 0x44]
mov dword [esp + 4], edi
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
mov dword [esp + 4], edx
mov ebp, edx
mov dword [esp], ebx
call fcn.0041d490
mov dword [esp], 2
mov esi, dword [fcn.004a1b90]
mov dword [esp + 0x30], eax
call esi
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x551a00
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.__s__Error_while_allocating_FAT_validation_context:__lu___s_
jmp 0x49710b
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x4c], 0
mov edx, ebx
mov ebx, esi
or ebx, edx
jne 0x497304
mov eax, dword [eax + 0x27c]
shl eax, 5
cmp eax, dword [esp + 0x38]
ja 0x497304
lea eax, [esp + 0x4c]
mov dword [esp], 0
mov dword [esp + 8], eax
lea eax, [ecx + ecx*2 - 3]
lea eax, [eax*4 + 0x38]
mov dword [esp + 4], eax
call fcn.004270d0
mov ebx, eax
mov eax, edx
mov ebp, edx
or eax, ebx
jne 0x4973af
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x28]
mov dword [esp + 0x30], esi
mov dword [esi], ecx
movzx ecx, word [eax + 0x54]
mov word [esi + 4], cx
mov ecx, dword [eax + 0x70]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 0x2c]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], ecx
mov ecx, dword [eax + 0x4c]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x48], 0
mov dword [esi + 0x20], ecx
movzx ecx, word [eax + 0x30]
mov edx, ecx
mov dword [esi + 0x24], ecx
test cx, cx
je 0x4972f5
mov ecx, dword [esp + 0x30]
sub edx, 1
mov esi, dword [eax + 4]
movzx edx, dx
add ecx, 0x28
lea edx, [edx + edx*2]
mov dword [esp + 0x38], ecx
mov ecx, edx
lea edx, [esi + 0xc]
lea ecx, [edx + ecx*4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
jmp 0x4972d3
add edx, 0xc
mov eax, dword [esi]
add ecx, 0xc
mov dword [ecx - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ecx - 8], eax
mov esi, dword [esi + 8]
mov dword [ecx - 4], esi
mov esi, edx
cmp edx, ebx
jne 0x4972d0
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x30]
mov dword [ecx], edx
jmp 0x49716d
mov ebx, dword [esp + 0x38]
xor esi, esi
add ebx, dword [esp + 0x30]
mov dword [esp], 2
adc esi, dword [esp + 0x34]
mov ebp, dword [fcn.004a1b90]
call ebp
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov ebx, 6
mov dword [esp + 0x14], str.fat_fatplus_validate
mov dword [esp + 0x10], 0x26c
mov dword [esp + 0xc], str.fatplus.c
mov dword [esp + 8], 0x551a5b
mov dword [esp + 4], str.__s___s:_d___s__Unexpected_mapped_data_range_after_readdir___I64u__I64u_.
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebp
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x551a4e
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebp
xor ebp, ebp
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x49714d
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041d490
mov dword [esp], 2
mov esi, dword [fcn.004a1b90]
mov dword [esp + 0x30], eax
call esi
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x551a00
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.__s__Error_while_allocating_memory_for_FAT_context:__lu___s_
jmp 0x49710b