Function at 0x4640d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, eax
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
test eax, eax
je 0x464290
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x38]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp], ebp
call fcn.00415cf0
mov ecx, eax
mov eax, edx
or eax, ecx
jne 0x464200
mov ebp, dword [esp + 0x38]
cmp ebp, dword [esp + 0x64]
jne 0x464140
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x60]
mov dword [edi], eax
add esp, 0x4c
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x5451a0
mov dword [esp + 4], str.__s__Couldnt_read_all_requested_data._Read__Iu_of__Iu_bytes_from_position__I64u.
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], 0x5451e4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov ecx, 5
xor edx, edx
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x3c]
cmp dword [edi], eax
je 0x464133
lea ebx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call fcn.0041d440
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0x4c
pop ebx
pop esi
mov eax, ecx
pop edi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call fcn.0041d490
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov esi, eax
call ebx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0x5451a0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.__s__Couldnt_read_requested_data:__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], 0x5451e4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
jmp 0x4641bc
lea eax, [esp + 0x3c]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
call fcn.00427280
mov ecx, eax
mov eax, edx
or eax, ecx
jne 0x4642c0
mov eax, dword [esp + 0x3c]
jmp 0x4640ef
mov dword [esp + 4], edx
mov dword [esp], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call fcn.0041d490
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov esi, eax
call ebx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0x5451a0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.__s__Failed_to_allocate_memory_for_requested_data:__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], 0x5451e4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jmp 0x464133