Function at 0x1000cbc6
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1001d830
call fcn.1001cf00
sub esp, 0x41c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.1000d072
test eax, eax
pop ecx
je 0x1000cc02
cmp byte [ebp + 0xc], 0
jne 0x1000cde6
push 0
push esi
call fcn.10008a23
pop ecx
mov esi, eax
pop ecx
jmp 0x1000cdc1
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000cc56
cmp dword [0x10032d0c], ebx
je 0x1000cde6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
je 0x1000cc44
cmp eax, 2
jne 0x1000cde6
push esi
call fcn.10002ab7
mov edi, eax
pop ecx
cmp edi, 0xffffffff
je 0x1000cde6
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x1c]
push 4
push eax
push edi
call esi
cmp dword [ebp - 0x24], 4
jne 0x1000cddf
cmp dword [ebp - 0x1c], 0x5367674f
jne 0x1000cc8c
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1000cd41
cmp dword [ebp - 0x1c], 0x46464952
jne 0x1000cddf
push 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
push edi
call ebx
lea eax, [ebp - 0x20]
push 0
push eax
lea eax, [ebp - 0x28]
push 4
push eax
push edi
call esi
cmp dword [ebp - 0x20], 4
jne 0x1000cddf
cmp dword [ebp - 0x28], 0x45564157
jne 0x1000cddf
lea eax, [ebp - 0x20]
push 0
push eax
lea eax, [ebp - 0x428]
push 0x400
push eax
push edi
call esi
and dword [ebp - 0x10], 0
push 0x14
pop esi
lea eax, [ebp - 0x427]
sub esi, eax
mov eax, dword [ebp - 0x10]
cmp byte [ebp + eax - 0x428], 0x64
lea eax, [ebp + eax - 0x427]
jne 0x1000cd27
cmp byte [eax], 0x61
jne 0x1000cd27
cmp byte [eax + 1], 0x74
jne 0x1000cd27
cmp byte [eax + 2], 0x61
jne 0x1000cd27
add eax, esi
push 0
cdq
push 0
push eax
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
call ebx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x3fc
jl 0x1000ccf1
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x14]
je 0x1000cddf
xor ebx, ebx
cmp dword [0x10032270], ebx
je 0x1000cd78
push 0x320
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x1000cd6e
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
push edi
call fcn.1000cebc
jmp 0x1000cd70
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov esi, eax
jmp 0x1000cdb4
push 0x318
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
cmp esi, ebx
mov dword [ebp - 4], 1
je 0x1000cdae
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.10008f66
mov dword [esi], 0x1001ea98
mov dword [esi + 0x310], edi
jmp 0x1000cdb0
xor esi, esi
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x18]
call dword [eax + 0x28]
test esi, esi
je 0x1000cddb
mov ecx, esi
call fcn.1000cffb
test al, al
jne 0x1000cddb
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x20]
xor esi, esi
mov eax, esi
jmp 0x1000cde8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret