Function at 0x5e8960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6549d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0
call fcn.005e7da0
mov dword [ebp - 0x34], 0x659b68
mov eax, dword [ebx + 0x1c]
mov byte [ebp - 4], 2
test eax, eax
jg 0x5e89bd
jl 0x5e8b2d
cmp dword [ebx + 0x18], 0x14
jb 0x5e8b2d
mov edx, dword [ebx + 0x10]
lea eax, [ebp - 0x18]
push 0
push eax
lea ecx, [ebp - 0x98]
push 0x14
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e8e0a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5e8e0a
sub esp, 0x14
mov ecx, 5
lea esi, [ebp - 0x98]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x114]
call fcn.005e80c0
mov esi, eax
test esi, esi
jbe 0x5e8e1d
lea ecx, [esi + 0x14]
cmp esi, 0x19000
mov dword [ebp - 0x14], ecx
ja 0x5e8e1d
mov edx, dword [ebx + 0x1c]
xor eax, eax
cmp eax, edx
jl 0x5e8a3a
jg 0x5e8b2d
cmp ecx, dword [ebx + 0x18]
ja 0x5e8b2d
push esi
call fcn.00622acb
mov edi, eax
add esp, 4
test edi, edi
jne 0x5e8a5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st2__err__ld_r_n
jmp 0x5e8e16
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0x18]
push 0
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e8dec
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5e8dec
lea edx, [ebp - 0xd8]
lea eax, [ebp - 0x110]
push edx
push eax
push esi
push edi
lea ecx, [ebp - 0x114]
call fcn.005e7f80
push edi
call fcn.00622af4
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x1c]
xor eax, eax
add esp, 4
add edx, 8
cmp eax, ecx
mov dword [ebp - 0x14], edx
jl 0x5e8ac0
jg 0x5e8b2d
mov eax, dword [ebx + 0x18]
mov ecx, edx
cmp ecx, eax
ja 0x5e8b2d
mov ecx, dword [ebx + 0x10]
lea edx, [ebp - 0x18]
push 0
push edx
lea eax, [ebp - 0x84]
push 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e8dde
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5e8dde
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x84]
push edx
push eax
lea ecx, [ebp - 0x114]
call fcn.005e8120
mov esi, eax
test esi, esi
jbe 0x5e8bb3
mov ecx, dword [ebp - 0x14]
add ecx, esi
cmp esi, 0x19000
ja 0x5e8e1d
mov edx, dword [ebx + 0x1c]
xor eax, eax
cmp eax, edx
jl 0x5e8b5c
jg 0x5e8b2d
cmp ecx, dword [ebx + 0x18]
jbe 0x5e8b5c
mov ebx, dword [ebx + 0x14]
lea ecx, [ebp - 0x114]
neg ebx
sbb ebx, ebx
mov byte [ebp - 4], 0
and ebx, 0xfffffffe
add ebx, 3
call fcn.005e7de0
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.00622acb
mov edi, eax
add esp, 4
test edi, edi
jne 0x5e8b7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st5__err__ld_r_n
jmp 0x5e8e16
mov edx, dword [ebx + 0x10]
lea ecx, [ebp - 0x18]
push 0
push ecx
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e8bea
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5e8bea
push 0
push 0
push esi
push edi
lea ecx, [ebp - 0x114]
call fcn.005e7f80
push edi
call fcn.00622af4
add esp, 4
mov al, byte [ebp - 0x56]
test al, al
je 0x5e8e1d
mov al, byte [ebp - 0x57]
test al, al
je 0x5e8e1d
fld dword [ebp - 0x78]
call fcn.0060a154
mov edi, edx
mov esi, eax
test edi, edi
jg 0x5e8bfb
jl 0x5e8bdf
test esi, esi
jae 0x5e8bfb
mov eax, dword [0x6fd978]
push eax
jmp 0x5e8c92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st6__err__ld_r_n
jmp 0x5e8df8
push 0
push 0x3c
push edi
push esi
call fcn.0060bb90
mov dword [ebp - 0x1c], eax
mov ecx, esi
cdq
sub ecx, eax
mov eax, edi
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.0060bae0
push 0
push 0x3c
push edx
push eax
call fcn.0060bb90
push 0
push 0xe10
push edi
push esi
mov dword [ebp - 0x14], eax
call fcn.0060bae0
test edx, edx
jg 0x5e8c8d
jl 0x5e8c46
cmp eax, 0x2710
ja 0x5e8c8d
test eax, eax
je 0x5e8c57
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x6fd9d0]
push ecx
push eax
jmp 0x5e8c69
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
test eax, eax
push ecx
je 0x5e8c78
mov edx, dword [0x6fd9cc]
push eax
lea eax, [ebp - 0x54]
push edx
push eax
call fcn.0060a593
add esp, 0x10
jmp 0x5e8c9e
mov edx, dword [0x6fd9c8]
lea eax, [ebp - 0x54]
push edx
push eax
call fcn.0060a593
add esp, 0xc
jmp 0x5e8c9e
push 0x6c9030
lea ecx, [ebp - 0x54]
push ecx
call fcn.0060a593
add esp, 8
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x54]
lea esi, [ebx + 8]
push edx
mov edx, dword [ebp - 0x74]
push eax
mov eax, dword [0x6fda3c]
push ecx
push edx
push eax
push esi
mov dword [ebp - 0x30], esi
call fcn.0061fae1
xor edi, edi
add esp, 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x24], di
mov ecx, dword [0x6fca90]
mov esi, dword [esi]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00401070
cmp esi, edi
je 0x5e8d38
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e8d38
mov edx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push esi
push eax
push edx
call edi
test eax, eax
mov dword [ebp - 0x20], eax
je 0x5e8d38
lea eax, [eax + eax + 2]
push eax
call fcn.00622acb
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
je 0x5e8d3b
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push ecx
push eax
push 0xffffffffffffffff
push esi
push 0
push edx
call edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [0x6f7b78]
mov dword [ebp - 0x14], ecx
test eax, eax
mov byte [ebp - 4], 4
jne 0x5e8d4f
lea eax, [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
mov edi, eax
test edi, edi
jle 0x5e8da4
push edi
lea ecx, [ebp - 0x14]
call fcn.00623157
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x5e8d82
lea ecx, [ebp - 0x24]
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call esi
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x14]
push edx
mov byte [ebx + 0xc], 1
call fcn.00622ec3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00622d8a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0
call fcn.005e7de0
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 0x5e8e16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st3__err__ld_r_n
mov ecx, ebx
call fcn.005ea960
push edi
call fcn.00622af4
add esp, 4
jmp 0x5e8e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st1__err__ld_r_n
mov ecx, ebx
call fcn.005ea960
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0
call fcn.005e7de0
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