Function at 0x54d670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5add63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
call fcn.0054cab0
mov dword [ebp - 0x24], 0x5b9348
mov eax, dword [ebx + 0x1c]
mov byte [ebp - 4], 2
test eax, eax
jg 0x54d6cd
jl 0x54d82d
cmp dword [ebx + 0x18], 0x14
jb 0x54d82d
mov edx, dword [ebx + 0x10]
lea eax, [ebp - 0x14]
push 0
push eax
lea ecx, [ebp - 0x88]
push 0x14
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54da13
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x54da13
sub esp, 0x14
mov ecx, 5
lea esi, [ebp - 0x88]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x104]
call fcn.0054cdd0
mov esi, eax
test esi, esi
jbe 0x54da26
lea ecx, [esi + 0x14]
cmp esi, 0x19000
mov dword [ebp - 0x18], ecx
ja 0x54da26
mov edx, dword [ebx + 0x1c]
xor eax, eax
cmp eax, edx
jl 0x54d74a
jg 0x54d82d
cmp ecx, dword [ebx + 0x18]
ja 0x54d82d
push esi
call fcn.00582ecc
mov edi, eax
add esp, 4
test edi, edi
jne 0x54d76a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st2__err__ld_r_n
jmp 0x54da1f
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0x14]
push 0
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54d9f5
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x54d9f5
lea edx, [ebp - 0xc8]
lea eax, [ebp - 0x100]
push edx
push eax
push esi
push edi
lea ecx, [ebp - 0x104]
call fcn.0054cc90
push edi
call fcn.00582ef5
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x1c]
xor eax, eax
add esp, 4
add edi, 8
cmp eax, ecx
jl 0x54d7c9
jg 0x54d82d
cmp edi, dword [ebx + 0x18]
ja 0x54d82d
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x14]
push 0
push ecx
lea edx, [ebp - 0x74]
push 8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54d9e7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x54d9e7
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
push ecx
push edx
lea ecx, [ebp - 0x104]
call fcn.0054ce30
mov esi, eax
test esi, esi
jbe 0x54d8b3
add edi, esi
cmp esi, 0x19000
ja 0x54da26
mov ecx, dword [ebx + 0x1c]
xor eax, eax
cmp eax, ecx
jl 0x54d85c
jg 0x54d82d
cmp edi, dword [ebx + 0x18]
jbe 0x54d85c
mov ebx, dword [ebx + 0x14]
lea ecx, [ebp - 0x104]
neg ebx
sbb ebx, ebx
mov byte [ebp - 4], 0
and ebx, 0xfffffffe
add ebx, 3
call fcn.0054caf0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00582ecc
mov edi, eax
add esp, 4
test edi, edi
jne 0x54d87c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st5__err__ld_r_n
jmp 0x54da1f
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0x14]
push 0
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54d8ef
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x54d8ef
push 0
push 0
push esi
push edi
lea ecx, [ebp - 0x104]
call fcn.0054cc90
push edi
call fcn.00582ef5
add esp, 4
mov al, byte [ebp - 0x46]
test al, al
je 0x54da26
mov al, byte [ebp - 0x47]
test al, al
je 0x54da26
fld dword [ebp - 0x68]
call fcn.0056afb4
mov edi, edx
mov esi, eax
test edi, edi
jg 0x54d900
jl 0x54d8df
test esi, esi
jae 0x54d900
mov edx, dword [0x661f70]
lea eax, [ebp - 0x44]
push edx
push eax
jmp 0x54d99b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st6__err__ld_r_n
jmp 0x54da01
push 0
push 0x3c
push edi
push esi
call fcn.0056c8d0
mov dword [ebp - 0x18], eax
mov ecx, esi
cdq
sub ecx, eax
mov eax, edi
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.0056c820
push 0
push 0x3c
push edx
push eax
call fcn.0056c8d0
push 0
push 0xe10
push edi
push esi
mov dword [ebp - 0x1c], eax
call fcn.0056c820
test edx, edx
jg 0x54d992
jl 0x54d94b
cmp eax, 0x2710
ja 0x54d992
test eax, eax
je 0x54d95c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x661fc8]
push ecx
push eax
jmp 0x54d96e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
test eax, eax
push ecx
je 0x54d97d
mov edx, dword [0x661fc4]
push eax
lea eax, [ebp - 0x44]
push edx
push eax
call fcn.0056b4da
add esp, 0x10
jmp 0x54d9a3
mov edx, dword [0x661fc0]
lea eax, [ebp - 0x44]
push edx
push eax
call fcn.0056b4da
add esp, 0xc
jmp 0x54d9a3
lea ecx, [ebp - 0x44]
push 0x636e5c
push ecx
call fcn.0056b4da
add esp, 8
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x44]
add ebx, 8
push edx
mov edx, dword [ebp - 0x64]
push eax
mov eax, dword [0x662034]
push ecx
push edx
push eax
push ebx
call fcn.0057f8fb
add esp, 0x18
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0
call fcn.0054caf0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st4__err__ld_r_n
jmp 0x54da1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st3__err__ld_r_n
mov ecx, ebx
call fcn.0054ec10
push edi
call fcn.00582ef5
add esp, 4
jmp 0x54da26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st1__err__ld_r_n
mov ecx, ebx
call fcn.0054ec10
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0
call fcn.0054caf0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret