Function at 0x10179864
Capabilities:
Read file on windows

Disassembly:
push 8
mov eax, 0x1019525b
call fcn.1015e3cb
mov esi, ecx
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x10179887
mov eax, dword [ebp + 0x20]
mov dword [eax], 0x80004003
jmp 0x10179a65
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
jne 0x1017989d
mov eax, dword [ebp + 0x20]
mov dword [eax], 0x57
jmp 0x10179a65
call fcn.10178e63
test al, al
je 0x10179a5c
mov eax, dword [esi + 0x28]
cmp eax, dword [0x101cec50]
je 0x10179a5c
cmp byte [esi + 0x20], 0
je 0x101798c5
cmp byte [esi + 0x21], 0
jne 0x101798e5
cmp byte [ebp + 0x28], 0
je 0x10179a5c
cmp byte [esi + 0x20], 0
je 0x101798db
cmp byte [esi + 0x21], 0
jne 0x101798e5
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101798cf
lea eax, [esi + 0x84]
push eax
lea ecx, [ebp - 0x14]
call fcn.10001700
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x101cec68]
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 4], edi
jne 0x10179910
cmp ecx, dword [0x101cec6c]
je 0x10179942
push ebx
push dword [ebp + 0x1c]
push ecx
push eax
mov ecx, esi
call fcn.10179108
cmp eax, dword [0x101cec60]
jne 0x10179942
cmp edx, dword [0x101cec64]
jne 0x10179942
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
call fcn.10001720
jmp 0x10179a65
push edi
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 0x28], edi
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101799e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
cmp byte [esi + 0x4c], 0
je 0x101799d0
cmp byte [ebp + 0x24], 0
je 0x101799d0
mov eax, dword [esi + 0x28]
cmp eax, dword [0x101cec4c]
jne 0x101799d0
cmp dword [esi + 0x50], edi
jne 0x1017998d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x101799cd
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [esi + 0x50]
push eax
call fcn.100326c0
cmp eax, 0x7d0
pop ecx
pop ecx
jbe 0x101799d0
push ebx
mov ecx, esi
call fcn.10179072
cmp dword [esi + 0x48], 0x10
jb 0x101799ba
mov eax, dword [esi + 0x34]
jmp 0x101799bd
lea eax, [esi + 0x34]
push 0
push ebx
push dword [esi + 0x28]
mov ecx, esi
push eax
call fcn.101793c6
call edi
mov dword [esi + 0x50], eax
xor esi, esi
xor edi, edi
lea ecx, [ebp - 0x14]
call fcn.10001720
mov eax, esi
mov edx, edi
jmp 0x10179a69
mov dword [ebx], edi
cmp byte [esi + 0x4c], 0
je 0x10179a4e
cmp byte [ebp + 0x24], 0
je 0x10179a4e
mov eax, dword [esi + 0x28]
cmp eax, dword [0x101cec4c]
jne 0x10179a4e
cmp dword [esi + 0x50], edi
jne 0x10179a0b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x10179a4b
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [esi + 0x50]
push eax
call fcn.100326c0
cmp eax, 0x7d0
pop ecx
pop ecx
jbe 0x10179a4e
push ebx
mov ecx, esi
call fcn.10179072
cmp dword [esi + 0x48], 0x10
jb 0x10179a38
mov eax, dword [esi + 0x34]
jmp 0x10179a3b
lea eax, [esi + 0x34]
push 0
push ebx
push dword [esi + 0x28]
mov ecx, esi
push eax
call fcn.101793c6
call edi
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x28]
xor ecx, ecx
mov esi, eax
mov edi, ecx
jmp 0x101799d4
mov eax, dword [ebp + 0x20]
mov dword [eax], 5
xor eax, eax
xor edx, edx
call fcn.1015e4a3
ret 0x24