Function at 0x10002370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44
cmp edx, 0xffffffff
jl 0x100025c5
mov esi, edx
mov ebx, eax
mov edx, dword [eax]
mov edi, ecx
lea eax, [esi + 1]
shl eax, 9
test edx, edx
je 0x10002420
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
inc eax
jne 0x100023cc
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
test edx, edx
jne 0x10002578
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
mov dword [esp + 4], edi
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x10002407
cmp dword [ebp - 0x24], 0x200
mov edx, 1
je 0x10002416
test byte [0x100088a0], 4
jne 0x10002530
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2a]
mov edx, dword [ebx + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x200
mov dword [esp], 0
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], 0
call sym._K32WOWGlobalAllocLock16_12
mov dword [ebp - 0x14], 0x200
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], 0
mov dword [esp], eax
call sym._MapSL_4
push ebx
mov eax, dword [eax]
mov dword [esp], eax
call sym._MapSL_4
lea edx, [ebp - 0x28]
push esi
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x18
mov dword [esp + 4], 0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._K32WOWCallback16Ex_20
sub esp, 0x14
mov edx, eax
test eax, eax
jne 0x100024f0
test byte [0x100088a0], 2
je 0x10002416
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.CallTo16_ILockBytes16::ReadAt___failed__hres__lx_n
mov dword [esp + 8], global___func__.24
mov dword [esp + 4], 0x100088a0
mov dword [esp], 1
call dbg.wine_dbg_log
mov edx, dword [ebp - 0x30]
jmp 0x10002416
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._MapSL_4
push edx
mov dword [esp], edi
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
call sym._memcpy
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._K32WOWGlobalUnlockFree16_4
mov edx, 1
mov eax, edx
push ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov dword [esp + 0xc], str._hf_p__block_size__d_:_read_didnt_read___ld__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___func__.24
mov dword [esp + 4], 0x100088a0
mov dword [esp], 2
call dbg.wine_dbg_log
lea esp, [ebp - 0xc]
pop ebx
xor edx, edx
pop esi
mov eax, edx
pop edi
pop ebp
ret
test byte [0x100088a0], 4
je 0x10002414
mov eax, dword [eax + 0x34]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
mov eax, dword [ebx]
mov dword [esp + 0xc], str.__p__d__p___seek_failed___ld__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], global___func__.24
mov dword [esp + 4], 0x100088a0
mov dword [esp], 2
call dbg.wine_dbg_log
xor edx, edx
jmp 0x10002416
mov dword [esp + 8], 0x155
mov dword [esp + 4], str..._wine_9.10_dlls_storage.dll16_storage.c
mov dword [esp], str.n__1
call dword [sym.imp.ucrtbase.dll__assert]
lea esi, [esi]
lea esi, [esi]