Function at 0x4f5f80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x631438]
sub esp, 8
inc eax
test eax, eax
jne 0x4f6018
push 0x620ad0
call fcn.004e70c0
add esp, 4
push 0x4ea
push str.C:4017_buildmysql_4.0.17innobaseosos0file.c
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call fcn.004d1950
add esp, 4
push eax
push str.__InnoDB:_Assertion_failure_in_thread__lu_in_file__s_line__lu_n
push 0x620ad0
call fcn.00599e71
push str.InnoDB:_Failing_assertion:__offset__0xFFFFFFFF___offset
push 0x620ad0
call fcn.00599e71
push str._nInnoDB:_We_intentionally_generate_a_memory_trap._n
push 0x620ad0
call fcn.00599e71
push str.InnoDB:_Send_a_detailed_bug_report_to_mysql_lists.mysql.com_n
push 0x620ad0
call fcn.00599e71
mov ecx, dword [0x631440]
mov dword [0x63143c], 1
mov eax, dword [ecx]
add esp, 0x2c
test eax, eax
je 0x4f6021
mov dword [0x631440], 0
jmp 0x4f6021
mov eax, dword [0x63143c]
test eax, eax
je 0x4f6056
push 0x4ea
push str.C:4017_buildmysql_4.0.17innobaseosos0file.c
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call fcn.004d1950
add esp, 4
push eax
push str.InnoDB:_Thread__lu_stopped_in_file__s_line__lu_n
push 0x620ad0
call fcn.00599e71
push 0x3b9aca00
call fcn.004e7040
add esp, 0x18
mov edx, dword [0x6314b4]
mov ecx, dword [0x6314b8]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x1c]
inc edx
add ecx, ebp
mov esi, edi
mov dword [0x6314b4], edx
mov dword [0x6314b8], ecx
and esi, 0xf
mov eax, dword [esi*4 + 0x6323e0]
mov edx, dword [esp + 0x28]
push eax
mov dword [esp + 0x14], edx
call fcn.0051f690
mov edx, dword [esp + 0x28]
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4f60ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4f60ce
mov eax, dword [esi*4 + 0x6323e0]
push eax
call fcn.0051f940
add esp, 4
jmp 0x4f60fe
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov eax, dword [esi*4 + 0x6323e0]
push eax
call fcn.0051f940
add esp, 4
test ebx, ebx
je 0x4f60fe
cmp dword [esp + 0x14], ebp
je 0x4f6117
push str.read
push 0
push edi
call fcn.004f5640
add esp, 0xc
test eax, eax
je 0x4f6124
jmp 0x4f6082
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InnoDB:_Fatal_error:_cannot_read_from_file._OS_error_number__lu._n
push 0x620ad0
call fcn.00599e71
push 0x620ad0
call fcn.0059aafb
push 0x620ad0
call fcn.004e70c0
add esp, 0x14
push 0x52d
push str.C:4017_buildmysql_4.0.17innobaseosos0file.c
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
call fcn.004d1950
add esp, 4
push eax
push str.__InnoDB:_Assertion_failure_in_thread__lu_in_file__s_line__lu_n
push 0x620ad0
call fcn.00599e71
push str.InnoDB:_We_intentionally_generate_a_memory_trap._n
push 0x620ad0
call fcn.00599e71
push str.InnoDB:_Send_a_detailed_bug_report_to_mysql_lists.mysql.com_n
push 0x620ad0
call fcn.00599e71
mov ecx, dword [0x631440]
mov dword [0x63143c], 1
mov edx, dword [ecx]
push edx
push 0x5f45ec
call fcn.0059a00d
add esp, 0x2c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret