Function at 0x719ed470
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0x6c
push 0x719d5930
call fcn.719c1450
and dword [ebp - 0x20], 0
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebx + 0x34]
xor ecx, ecx
cmp eax, dword [ebx + 0x30]
setge cl
mov eax, ecx
cmp eax, edx
je 0x719ed8e3
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf6c]
mov dword [ebp - 0x30], eax
xor eax, eax
cmp dword [ebx + 0x18], edx
sete al
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x74]
cmp eax, dword [ebx + 0x6c]
jae 0x719ed683
mov dword [ebp - 4], edx
lea ecx, [eax + eax*2]
mov esi, dword [ebx + 0x68]
lea esi, [esi + ecx*8]
push 6
pop ecx
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
or dword [ebp - 4], 0xffffffff
mov cl, byte [ebp - 0x7c]
test cl, 3
jne 0x719ed51c
mov dword [ebp - 0x20], 0x2726
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x20], 0
jne 0x719ed7ac
cmp dword [ebp - 0x34], 0
jne 0x719ed483
mov esi, dword [ebx + 0x74]
mov edi, dword [ebp + 8]
jmp 0x719ed7af
test cl, 1
je 0x719ed551
mov edx, dword [ebp - 0x24]
shl edx, 3
mov esi, dword [ebx + 0x1c]
mov edi, dword [ebp - 0x74]
mov dword [edx + esi + 4], edi
mov esi, dword [ebx + 0x1c]
mov edi, dword [ebp - 0x78]
mov dword [edx + esi], edi
inc dword [ebp - 0x24]
inc dword [ebx + 0x74]
test cl, 4
jne 0x719ed67c
inc eax
xor edx, edx
jmp 0x719ed4ca
test cl, 2
je 0x719ed549
lea edi, [ebx + 0x78]
cmp dword [edi], edx
jne 0x719ed57b
mov eax, dword [ebp - 0x78]
mov dword [edi], eax
cmp eax, edx
jne 0x719ed569
or dword [edi], 0xffffffff
mov eax, dword [ebp - 0x74]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp - 0x70]
mov dword [ebx + 0x84], eax
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x84]
mov dword [ebp - 0x58], eax
xor esi, esi
mov ecx, dword [edi]
mov eax, 0x10000
cmp ecx, eax
mov dword [ebp - 0x28], eax
ja 0x719ed5a0
mov dword [ebp - 0x28], ecx
xor eax, eax
push eax
lea ecx, [ebp - 0x5c]
push ecx
push dword [ebp - 0x28]
push dword [ebx + 0x88]
lea ecx, [ebp - 0x64]
push ecx
push eax
push eax
mov eax, dword [ebp - 0x30]
push dword [eax]
push dword [ebp - 0x6c]
call dword [sym.imp._Cntl.DLL_NtReadFile]
mov dword [ebp - 0x2c], eax
cmp eax, 0x103
jne 0x719ed5e3
push 0
push 0
mov eax, dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp._Cntl.DLL_NtWaitForSingleObject]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x719ed609
mov eax, dword [ebp - 0x60]
add esi, eax
add dword [ebp - 0x5c], eax
adc dword [ebp - 0x58], 0
sub dword [ebp - 0x28], eax
push esi
call fcn.719d8f47
test eax, eax
jne 0x719ed616
cmp dword [ebp - 0x28], eax
je 0x719ed616
jmp 0x719ed5a0
cmp dword [ebp - 0x2c], 0xc0000011
jne 0x719ed6f4
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov ecx, dword [ebx + 4]
mov edx, eax
or edx, 1
cmp edx, dword [ecx + 0x10]
jne 0x719ed62f
push eax
call dword [sym.imp._Cntl.DLL_NtClearEvent]
test esi, esi
je 0x719ed668
mov eax, dword [ebp - 0x24]
shl eax, 3
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x88]
mov dword [eax + ecx + 4], edx
mov ecx, dword [ebx + 0x1c]
mov dword [ecx + eax], esi
inc dword [ebp - 0x24]
mov eax, esi
neg eax
push eax
push edi
call dword [sym.imp._CKERNEL.DLL_InterlockedExchangeAdd]
add dword [ebx + 0x80], esi
adc dword [ebx + 0x84], 0
cmp dword [ebp - 0x2c], 0xc0000011
je 0x719ed676
cmp dword [edi], 0
jne 0x719ed67c
and dword [edi], 0
inc dword [ebx + 0x74]
mov dword [ebp - 0x34], 1
cmp dword [ebp - 0x24], 0
je 0x719ed4fa
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x20], eax
mov edi, dword [ebp + 8]
lea eax, [edi + 0x14]
mov dword [ebp - 0x3c], eax
push eax
call dword [sym.imp._CKERNEL.DLL_EnterCriticalSection]
cmp dword [ebp - 0x38], 0
je 0x719ed755
lea esi, [edi + 0xe8]
cmp dword [esi], esi
je 0x719ed728
mov eax, dword [ebx + 4]
test eax, eax
je 0x719ed6c4
mov dword [eax], 0x103
push dword [ebp - 0x24]
push dword [ebx + 0x1c]
call fcn.719d9008
mov dword [ebx + 0x30], eax
or dword [ebx + 0x3c], 0x40
add ebx, 8
mov eax, dword [esi + 4]
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [esi + 4], ebx
push dword [ebp - 0x3c]
call dword [sym.imp._CKERNEL.DLL_LeaveCriticalSection]
jmp 0x719ed8e3
push dword [ebp - 0x2c]
call fcn.719c3cb2
mov dword [ebp - 0x20], eax
jmp 0x719ed4fa
cmp dword [ebp - 0x38], 0
je 0x719ed755
mov eax, dword [ebx + 4]
test eax, eax
je 0x719ed73b
mov dword [eax], 0x103
lea eax, [ebx + 8]
lea ecx, [edi + 0xe8]
mov edx, dword [ecx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ecx + 4], eax
and dword [ebp - 0x40], 0
push dword [ebp - 0x3c]
call dword [sym.imp._CKERNEL.DLL_LeaveCriticalSection]
mov esi, dword [ebx + 0x1c]
push dword [ebp - 0x24]
push esi
call fcn.719d9008
mov ecx, dword [ebx + 0x30]
sub dword [esi + 4], ecx
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x30]
add dword [ecx], edx
add dword [ebx + 0x30], eax
and dword [ebx + 0x3c], 0xffffffef
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x54]
push eax
push 1
push ebx
push edi
call fcn.719ed094
cmp eax, 0xffffffff
jne 0x719ed4fd
mov eax, 0x3e5
cmp dword [ebp - 0x20], eax
je 0x719ed90a
jmp 0x719ed4fd
mov esi, dword [ebp - 0x4c]
cmp esi, dword [ebx + 0x6c]
je 0x719ed7be
cmp dword [ebp - 0x20], 0
je 0x719ed8da
mov byte [ebp - 0x1a], 0
mov byte [ebp - 0x19], 0
cmp byte [ebx + 0x70], 0
je 0x719ed7fc
lea esi, [edi + 0x14]
push esi
call dword [sym.imp._CKERNEL.DLL_EnterCriticalSection]
cmp byte [ebx + 0x70], 0
je 0x719ed7f5
push dword [ebx + 0x68]
push 0
push dword [0x719f71dc]
call dword [sym.imp._Cntl.DLL_RtlFreeHeap]
mov byte [ebx + 0x70], 0
mov byte [ebp - 0x19], 1
push esi
call dword [sym.imp._CKERNEL.DLL_LeaveCriticalSection]
xor edx, edx
cmp dword [ebp - 0x20], edx
jne 0x719ed841
test byte [ebx + 0x64], 3
je 0x719ed841
lea eax, [edi + 0x1e8]
or byte [eax], 0x20
mov cl, byte [eax]
test byte [ebx + 0x64], 2
je 0x719ed831
mov dword [ebp - 0x44], 1
mov esi, dword [ebx + 4]
mov dword [edi + 0x1f8], esi
or cl, 0x10
mov byte [eax], cl
jmp 0x719ed837
mov dword [edi + 0x1f8], edx
mov eax, dword [edi]
mov word [eax + 0x20], dx
mov byte [ebp - 0x1a], 1
cmp byte [ebp - 0x19], 0
je 0x719ed850
mov dword [ebx + 0x20], 3
jmp 0x719ed85e
mov eax, dword [ebx + 0x6c]
cmp eax, 4
ja 0x719ed85b
push 4
pop eax
mov dword [ebx + 0x20], eax
lea esi, [ebx + 0x88]
mov eax, dword [esi]
test eax, eax
je 0x719ed879
push eax
push 0
push dword [0x719f71dc]
call dword [sym.imp._Cntl.DLL_RtlFreeHeap]
and dword [esi], 0
and dword [ebx + 0x6c], 0
xor esi, esi
mov eax, dword [ebx + 4]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x50], ecx
test eax, eax
je 0x719ed895
mov dword [eax + 4], ecx
lea eax, [edi + 0x14]
push eax
call dword [sym.imp._CKERNEL.DLL_EnterCriticalSection]
and dword [ebx + 0x3c], 0xffffffe7
cmp dword [ebp - 0x40], 0
je 0x719ed8af
cmp dword [ebp - 0x38], 0
jne 0x719ed8b5
push edi
call fcn.719d94f3
lea eax, [edi + 0x14]
push eax
call dword [sym.imp._CKERNEL.DLL_LeaveCriticalSection]
cmp byte [ebp - 0x1a], 0
je 0x719ed8ce
push edi
call fcn.719f41ad
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x44], 0
je 0x719ed8ea
cmp dword [ebp - 0x20], 0
jne 0x719ed8ea
cmp esi, dword [ebx + 0x6c]
jae 0x719ed8e3
and dword [ebx + 0x3c], 0xffffffef
mov eax, 0x3e5
jmp 0x719ed90a
cmp dword [ebp - 0x48], 0
je 0x719ed907
push dword [ebp - 0x50]
push dword [ebp - 0x20]
push 0
push 0
push dword [ebp - 0x48]
mov eax, dword [edi]
push dword [eax + 4]
call fcn.719ec79e
mov eax, dword [ebp - 0x20]
call fcn.719c1430
ret 8