Function at 0x10177529
Capabilities:
Read file on windows

Disassembly:
push 8
mov eax, 0x1018d365
call fcn.1015d10b
mov esi, ecx
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x1017754c
mov eax, dword [ebp + 0x20]
mov dword [eax], 0x80004003
jmp 0x1017772a
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
jne 0x10177562
mov eax, dword [ebp + 0x20]
mov dword [eax], 0x57
jmp 0x1017772a
call fcn.10176b99
test al, al
je 0x10177721
mov eax, dword [esi + 0x28]
cmp eax, dword [0x101c78c8]
je 0x10177721
cmp byte [esi + 0x20], 0
je 0x1017758a
cmp byte [esi + 0x21], 0
jne 0x101775aa
cmp byte [ebp + 0x28], 0
je 0x10177721
cmp byte [esi + 0x20], 0
je 0x101775a0
cmp byte [esi + 0x21], 0
jne 0x101775aa
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10177594
lea eax, [esi + 0x84]
push eax
lea ecx, [ebp - 0x14]
call fcn.100035d0
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x101c78e0]
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 4], edi
jne 0x101775d5
cmp ecx, dword [0x101c78e4]
je 0x10177607
push ebx
push dword [ebp + 0x1c]
push ecx
push eax
mov ecx, esi
call fcn.10176e09
cmp eax, dword [0x101c78d8]
jne 0x10177607
cmp edx, dword [0x101c78dc]
jne 0x10177607
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
call fcn.100035f0
jmp 0x1017772a
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 0x101776aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
cmp byte [esi + 0x4c], 0
je 0x10177695
cmp byte [ebp + 0x24], 0
je 0x10177695
mov eax, dword [esi + 0x28]
cmp eax, dword [0x101c78c4]
jne 0x10177695
cmp dword [esi + 0x50], edi
jne 0x10177652
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x10177692
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [esi + 0x50]
push eax
call fcn.10033fb0
cmp eax, 0x7d0
pop ecx
pop ecx
jbe 0x10177695
push ebx
mov ecx, esi
call fcn.10176d73
cmp dword [esi + 0x48], 0x10
jb 0x1017767f
mov eax, dword [esi + 0x34]
jmp 0x10177682
lea eax, [esi + 0x34]
push 0
push ebx
push dword [esi + 0x28]
mov ecx, esi
push eax
call fcn.1017707c
call edi
mov dword [esi + 0x50], eax
xor esi, esi
xor edi, edi
lea ecx, [ebp - 0x14]
call fcn.100035f0
mov eax, esi
mov edx, edi
jmp 0x1017772e
mov dword [ebx], edi
cmp byte [esi + 0x4c], 0
je 0x10177713
cmp byte [ebp + 0x24], 0
je 0x10177713
mov eax, dword [esi + 0x28]
cmp eax, dword [0x101c78c4]
jne 0x10177713
cmp dword [esi + 0x50], edi
jne 0x101776d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x10177710
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [esi + 0x50]
push eax
call fcn.10033fb0
cmp eax, 0x7d0
pop ecx
pop ecx
jbe 0x10177713
push ebx
mov ecx, esi
call fcn.10176d73
cmp dword [esi + 0x48], 0x10
jb 0x101776fd
mov eax, dword [esi + 0x34]
jmp 0x10177700
lea eax, [esi + 0x34]
push 0
push ebx
push dword [esi + 0x28]
mov ecx, esi
push eax
call fcn.1017707c
call edi
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x28]
xor ecx, ecx
mov esi, eax
mov edi, ecx
jmp 0x10177699
mov eax, dword [ebp + 0x20]
mov dword [eax], 5
xor eax, eax
xor edx, edx
call fcn.1015d1e3
ret 0x24