Function at 0x5d7790
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xd0]
sub esp, 0xd0
push 0xffffffffffffffff
push 0x667f7b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0xcc], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
wait
lea ecx, [ebp]
call fcn.005d66d0
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], vtable.StringConvertor.0
mov byte [ebp - 4], 2
push ebx
push 0x14
mov ecx, esi
call fcn.005d73d0
mov edi, eax
cmp edi, 2
je 0x5d781d
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], vtable.StringConvertor.0
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.005d66f0
mov eax, edi
wait
jmp 0x5d7bd3
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x14
lea ecx, [ebp + 0x7c]
push ecx
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x5d7b83
cmp dword [ebp - 0x20], ebx
je 0x5d7b83
sub esp, 0x14
mov eax, esp
mov ecx, dword [ebp + 0x7c]
mov dword [eax], ecx
mov edx, dword [ebp + 0x80]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x84]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x88]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 0x8c]
mov dword [eax + 0x10], ecx
lea ecx, [ebp]
call fcn.005d69f0
mov dword [ebp - 0x18], eax
cmp eax, ebx
jbe 0x5d7b96
lea ecx, [eax + 0x14]
mov dword [ebp - 0x1c], ecx
cmp eax, 0x19000
ja 0x5d7b96
push ebx
push ecx
mov ecx, esi
call fcn.005d73d0
mov edi, eax
cmp edi, 2
jne 0x5d77ff
mov edx, dword [ebp - 0x18]
push edx
call fcn.005f4e47
add esp, 4
mov edi, eax
cmp edi, ebx
jne 0x5d78cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st2__err__ld_r_n
jmp 0x5d7b8f
push ebx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push edi
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x5d7b65
cmp dword [ebp - 0x20], ebx
je 0x5d7b65
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push edi
lea ecx, [ebp]
call fcn.005d68a0
push edi
call fcn.005f4e52
add esp, 4
mov eax, dword [ebp - 0x1c]
add eax, 8
mov dword [ebp - 0x1c], eax
push ebx
push eax
mov ecx, esi
call fcn.005d73d0
mov edi, eax
cmp edi, 2
jne 0x5d77ff
push ebx
lea eax, [ebp - 0x20]
push eax
push 8
lea ecx, [ebp + 0x90]
push ecx
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x5d7b57
cmp dword [ebp - 0x20], ebx
je 0x5d7b57
mov eax, dword [ebp + 0x94]
push eax
mov ecx, dword [ebp + 0x90]
push ecx
lea ecx, [ebp]
call fcn.005d6a70
mov dword [ebp - 0x18], eax
cmp eax, ebx
jbe 0x5d79fa
mov ecx, dword [ebp - 0x1c]
add ecx, eax
cmp eax, 0x19000
ja 0x5d7b96
push ebx
push ecx
mov ecx, esi
call fcn.005d73d0
mov edi, eax
cmp edi, 2
jne 0x5d77ff
mov edx, dword [ebp - 0x18]
push edx
call fcn.005f4e47
add esp, 4
mov edi, eax
cmp edi, ebx
jne 0x5d79bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st5__err__ld_r_n
jmp 0x5d7b8f
push ebx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push edi
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x5d7b49
cmp dword [ebp - 0x20], ebx
je 0x5d7b49
push ebx
push ebx
mov eax, dword [ebp - 0x18]
push eax
push edi
lea ecx, [ebp]
call fcn.005d68a0
push edi
call fcn.005f4e52
add esp, 4
cmp byte [ebp + 0xbe], bl
je 0x5d7b96
cmp byte [ebp + 0xbd], bl
je 0x5d7b96
lea ecx, [ebp - 0x18]
call fcn.004024f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push ecx
fld dword [ebp + 0x9c]
call fcn.00622e26
push edx
push eax
lea ecx, [ebp - 0x14]
call fcn.0043fa40
lea edi, [esi + 8]
mov dword [ebp - 0x28], edi
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x98]
push eax
mov ecx, dword [ebp + 0xa4]
push ecx
mov edx, dword [ebp + 0xa0]
push edx
mov eax, dword [0x75eefc]
push eax
push edi
call fcn.00402f60
add esp, 0x18
mov dword [ebp + 0xc0], ebx
mov dword [ebp + 0xc8], ebx
xor ecx, ecx
mov word [ebp + 0xc4], cx
mov byte [ebp - 4], 4
mov edi, dword [edi]
mov edx, dword [0x75dd28]
push edx
push edi
lea ecx, [ebp + 0xc0]
call fcn.00401970
lea ecx, [ebp - 0x1c]
call fcn.004024f0
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0xc0]
cmp eax, ebx
jne 0x5d7aaf
lea eax, [ebp + 0xc4]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp edi, ebx
jle 0x5d7b04
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402840
mov ecx, dword [ebp + 0xc0]
cmp ecx, ebx
jne 0x5d7ae1
lea ecx, [ebp + 0xc4]
push ebx
push ebx
push edi
push eax
push 0xffffffffffffffff
push ecx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [esi + 0xc], 1
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.00405900
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc0]
call fcn.00401210
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402560
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], vtable.StringConvertor.0
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.005d66f0
xor eax, eax
wait
jmp 0x5d7bd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st6__err__ld_r_n
jmp 0x5d7b71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st4__err__ld_r_n
jmp 0x5d7b8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st3__err__ld_r_n
mov ecx, esi
call fcn.005d7650
push edi
call fcn.005f4e52
add esp, 4
jmp 0x5d7b96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PreCheckAvi_st1__err__ld_r_n
mov ecx, esi
call fcn.005d7650
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], vtable.StringConvertor.0
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.005d66f0
mov eax, 1
wait
jmp 0x5d7bd3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xcc]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0xd0
mov esp, ebp
pop ebp
ret