Function at 0x489f10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x48a267
cmp dword [edi + 0x214], 0
je 0x48a267
mov eax, dword [edi + 0xa04]
sub eax, dword [edi + 0xa00]
mov esi, dword [ebp + 0xc]
sar eax, 2
cmp esi, eax
jae 0x48a267
lfence
mov eax, dword [edi + 0xa00]
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x48a267
push 0xffffffffffffffff
mov dword [ebp - 0x18], 0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebx]
setne cl
mov dword [ebp - 8], ecx
test eax, eax
jns 0x489fe7
and eax, 0x7fffffff
cmp dword [edi + 0xa0c], 0
mov dword [ebp - 0x14], eax
je 0x489fcc
test ecx, ecx
je 0x489fa7
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
push edi
call fcn.00489790
add esp, 8
mov dword [edi + 0xa0c], 0
mov dword [ebp - 8], 0
push 3
push dword [ebp - 0x14]
jmp 0x48a242
push esi
push edi
call fcn.00489a00
push esi
push edi
call fcn.0048a5e0
add esp, 0x10
push 3
push dword [ebp - 0x14]
jmp 0x48a242
mov eax, dword [ebx + 0x38]
test al, 1
je 0x48a147
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0xc], 0
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xc
jae 0x48a027
mov dword [ebp - 0xc], 1
jmp 0x48a0ee
test eax, eax
je 0x48a0ee
lea eax, [ecx - 0xc]
mov ecx, eax
mov dword [ebp - 0x20], eax
neg ecx
lea eax, [ebx + 0x264]
lea edx, [ebx + 0x258]
sbb ecx, ecx
and ecx, eax
cmp dword [edx], 0x8000
mov dword [ebp - 0x1c], ecx
jne 0x48a0bd
test byte [edi + 0x210], 1
jne 0x48a0bd
mov eax, dword [edi + 0xa00]
xor ecx, ecx
mov edx, dword [edi + 0xa04]
xor esi, esi
sub edx, eax
mov dword [ebp - 0xc], ecx
sar edx, 2
mov dword [ebp - 0x14], eax
test edx, edx
je 0x48a0a0
cmp edx, esi
jbe 0x48a271
mov eax, dword [eax]
inc ecx
cmp dword [eax + 0x38], 0
mov eax, dword [ebp - 0x14]
cmove ecx, dword [ebp - 0xc]
inc esi
add eax, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
cmp edx, esi
ja 0x48a084
push 0
push 0
push ecx
push edx
push 0x8000
push ebx
call fcn.004a82ce
mov ecx, dword [ebp - 0x1c]
lea edx, [ebx + 0x258]
add esp, 0x18
push dword [edi + 0x218]
mov esi, dword [edi + 0x214]
push dword [ebp - 0x20]
push ecx
push edx
push ebx
mov ecx, esi
call dword [0x4c66dc]
call esi
add esp, 0x14
test eax, eax
jne 0x48a19c
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
cmp dword [edi + 0xa0c], 0
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
je 0x48a12e
cmp dword [ebp - 8], 0
je 0x48a10b
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
push edi
call fcn.00489790
add esp, 8
mov dword [edi + 0xa0c], 0
mov dword [ebp - 8], 0
push dword [ebp - 0xc]
jmp 0x48a23f
push esi
push edi
call fcn.00489a00
push esi
push edi
call fcn.0048a5e0
add esp, 0x10
push dword [ebp - 0xc]
jmp 0x48a23f
or eax, 1
push 0x21c
mov dword [ebx + 0x38], eax
lea eax, [ebx + 0x3c]
push 0
push eax
call fcn.004b493e
mov ecx, 0x64
lea esi, [edi + 0x3b4]
add esp, 0xc
mov dword [ebp - 0x14], ecx
nop
mov eax, dword [esi - 0x190]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x48a191
push dword [esi]
mov ecx, eax
push ebx
call dword [0x4c66dc]
call dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
add esp, 8
add esi, 4
sub ecx, 1
mov dword [ebp - 0x14], ecx
jne 0x48a170
mov eax, dword [ebx + 0x38]
test al, 2
je 0x48a1a9
xor eax, 2
mov dword [ebx + 0x38], eax
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20800
lea eax, [ebx + 0x258]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48a1db
cmp dword [ebp - 0x18], 0xc
jb 0x48a1ec
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x48a24e
or dword [ebx + 0x38], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x48a24e
cmp dword [edi + 0xa0c], 0
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
je 0x48a229
cmp dword [ebp - 8], 0
je 0x48a209
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [ebp + 0xc]
push esi
push edi
call fcn.00489790
add esp, 8
mov dword [edi + 0xa0c], 0
mov dword [ebp - 8], 0
jmp 0x48a23d
mov esi, dword [ebp + 0xc]
push esi
push edi
call fcn.00489a00
push esi
push edi
call fcn.0048a5e0
add esp, 0x10
push 1
push dword [ebp - 0x20]
push edi
mov dword [ebp - 4], eax
call fcn.0048a8c0
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x48a25d
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0048adb0
int3