Function at 0x1001e757
Capabilities:
Read file on windows

Disassembly:
push 0xb8
mov eax, 0x10039734
call fcn.100240fa
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x84], ebx
test byte [0x1004b384], 1
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], esi
jne 0x1001e7a0
or dword [0x1004b384], 1
mov dword [ebp - 4], ebx
call fcn.1001f9b8
push 0x1003bd58
call fcn.100238af
or dword [ebp - 4], 0xffffffff
pop ecx
cmp byte [0x100492ca], bl
je 0x1001e7b9
push 0x1004b36c
mov byte [0x100492ca], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0xb4], ebx
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb4]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [ebp - 0xb4], 0xffffffff
je 0x1001ea22
test byte [ebp - 0xb4], 0x10
jne 0x1001ea22
cmp dword [ebp - 0x98], ebx
ja 0x1001ea22
cmp dword [ebp - 0x94], 0xa00000
ja 0x1001ea22
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.10007590
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.1001f90c
mov esi, eax
lea eax, [ebp - 0xbc]
lea ecx, [ebp - 0x30]
call fcn.1001f92c
mov edi, eax
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x30]
call fcn.1001f90c
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0xc4]
push eax
call fcn.1002099d
mov eax, 0x1004b36c
add esp, 0x1c
push eax
mov dword [ebp - 0xb8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x90]
push eax
mov byte [ebp - 4], 2
call fcn.1001fb0d
mov eax, dword [0x1004b364]
mov dword [ebp - 0x84], eax
mov eax, dword [0x1004b34c]
lea edi, [ebp - 0x88]
lea esi, [ebp - 0x90]
mov dword [ebp - 0x88], eax
call fcn.1001fee4
test al, al
jne 0x1001e92f
call fcn.1001feb9
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x78], ecx
mov ecx, dword [eax + 0x20]
add eax, 0x24
mov dword [ebp - 0x74], ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10001700
push 8
pop ecx
lea edi, [ebp - 0xa0]
lea esi, [ebp - 0x78]
xor eax, eax
mov byte [ebp - 4], 3
repe cmpsb byte [esi], byte es:[edi]
je 0x1001e8f7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1001e927
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push eax
call fcn.10001700
lea ecx, [ebp - 0x70]
call fcn.10001730
push 0x1004b36c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebp - 0x30]
call fcn.10007600
jmp 0x1001ea2f
lea ecx, [ebp - 0x70]
call fcn.10001730
push ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
call fcn.10001c20
mov eax, dword [ebp - 0xa0]
push ebx
push ebx
push 3
push ebx
push 7
push bind
push dword [ebp - 0x80]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x84], esi
mov byte [ebp - 4], 5
cmp esi, ebx
je 0x1001ea03
cmp esi, 0xffffffff
je 0x1001ea03
push dword [ebp - 0x94]
call fcn.100245b5
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x94]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001e9fc
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0x80], eax
jne 0x1001e9fc
push eax
mov ecx, edi
lea esi, [ebp - 0x70]
call fcn.10010b90
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.10001880
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.10001730
lea eax, [ebp - 0x30]
push eax
call fcn.1001fa19
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x50]
push 0xffffffffffffffff
mov dword [eax + 4], ecx
push ebx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [eax + 8]
call fcn.10001880
push edi
call fcn.100244d8
pop ecx
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x4c]
push eax
call fcn.10001700
lea eax, [ebp - 0x84]
call fcn.1001e234
lea ecx, [ebp - 0x4c]
jmp 0x1001e90a
mov ecx, dword [ebp - 0x7c]
push 0x1003e9e6
call fcn.100016c0
mov eax, dword [ebp - 0x7c]
call fcn.1002417d
ret 4