Function at 0x10027289
Capabilities:
Read file on windows

Disassembly:
push reloc.advapi32.dll_RegisterTraceGuidsW
mov eax, 0x1002fd8c
call fcn.10003682
xor esi, esi
push esi
push esi
push 3
xor eax, eax
push esi
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 1
push 0x80000000
mov ecx, eax
mov dword [ebp - 0x10], esi
lea ebx, [eax + 0x80]
call fcn.1000476f
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x14], eax
cmp eax, reloc.advapi32.dll_TraceMessage
je 0x10027638
push esi
lea ecx, [ebp - 0x10]
push ecx
push 0x78
push ebx
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x10027638
cmp dword [ebp - 0x10], 0x78
je 0x100272f7
mov esi, 0x8007012b
jmp 0x1002764f
push 0x78
push ebx
call fcn.10003a3d
mov esi, eax
test esi, esi
js 0x1002764f
xor edi, edi
cmp dword [ebx + 0x10], edi
jbe 0x1002764f
push 0
lea eax, [ebp - 0x10]
push eax
push 8
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x10027638
cmp dword [ebp - 0x10], 8
jne 0x100272ed
cmp dword [ebp - 0x20], 7
je 0x10027368
mov eax, dword [ebx + 0x10]
dec eax
cmp edi, eax
je 0x1002735c
push 1
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call sub.kernel32.dll_SetFilePointer
cmp eax, reloc.advapi32.dll_TraceMessage
je 0x10027638
inc edi
cmp edi, dword [ebx + 0x10]
jae 0x1002764f
jmp 0x10027314
mov eax, dword [ebp - 0x1c]
add eax, 2
push eax
call fcn.10003a3d
pop ecx
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x10027388
mov esi, 0x8007000e
jmp 0x1002764f
mov eax, dword [ebp - 0x1c]
add eax, 2
push eax
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x100273d2
call sub.kernel32.dll_GetLastError
mov esi, eax
test esi, esi
jle 0x1002762d
and esi, 0xffff
or esi, 0x80070000
jmp 0x1002762d
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x10], ecx
je 0x100273e4
mov esi, 0x8007012b
jmp 0x1002762d
mov eax, dword [ebx + 0x14]
mov edi, dword [ebp + 0x10]
add eax, 0x78
sub eax, ecx
add eax, 0xfffffff8
push eax
mov dword [edi], eax
call fcn.10003a3d
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x1002740e
mov esi, 0x8007000e
jmp 0x1002762d
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call sub.kernel32.dll_SetFilePointer
cmp eax, reloc.advapi32.dll_TraceMessage
je 0x100273b2
push 0
lea eax, [ebp - 0x10]
push eax
push dword [edi]
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp - 0x14]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x100273b2
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi]
jne 0x100273da
dec dword [ebx + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [edi]
add ecx, 0xffffff88
mov dword [ebx + 0x14], ecx
mov eax, dword [edx]
mov dword [eax + 0x14], ecx
push dword [edi]
push dword [edx]
call fcn.10003a3d
mov ecx, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
mov edi, dword [ebp - 0x18]
mov dword [ebx + 0xc], eax
mov ecx, dword [ecx]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x2c]
call fcn.10004f6b
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
push 3
pop ebx
jbe 0x10027621
cmp dword [edi], 0
jne 0x100274a0
mov ecx, dword [ebp + 8]
lea ecx, [ecx + 0x18]
jmp 0x100274ab
cmp dword [edi], 1
jne 0x100274c3
mov ecx, dword [ebp + 8]
lea ecx, [ecx + 0x24]
lea eax, [edi + 8]
push eax
call fcn.1000503e
mov esi, eax
test esi, esi
jns 0x100275f3
jmp 0x10027621
cmp dword [edi], 2
lea ecx, [ebp - 0x2c]
jne 0x100274f5
call fcn.1001a03b
lea ecx, [ebp - 0x2c]
test eax, eax
je 0x10027615
lea eax, [edi + 8]
push eax
call fcn.1000503e
mov esi, eax
test esi, esi
js 0x10027621
xor ebx, ebx
jmp 0x100275f3
cmp dword [edi], 3
jne 0x1002752c
call fcn.1001a03b
test eax, eax
jne 0x1002761c
test ebx, ebx
jne 0x1002761c
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000476f
mov ecx, dword [ebp + 8]
push eax
lea ecx, [ecx + 0x30]
call fcn.1001a3dc
jmp 0x100275e0
cmp dword [edi], 4
jne 0x1002755c
call fcn.1001a03b
lea ecx, [ebp - 0x2c]
test eax, eax
je 0x10027615
lea eax, [edi + 8]
push eax
call fcn.1000503e
mov esi, eax
test esi, esi
js 0x10027621
xor ebx, ebx
inc ebx
jmp 0x100275f3
cmp dword [edi], 5
jne 0x10027591
call fcn.1001a03b
test eax, eax
jne 0x1002761c
cmp ebx, 1
jne 0x1002761c
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000476f
mov ecx, dword [ebp + 8]
push eax
lea ecx, [ecx + 0x64]
call fcn.1000f54f
jmp 0x100275e0
cmp dword [edi], 6
jne 0x100275b5
call fcn.1001a03b
lea ecx, [ebp - 0x2c]
test eax, eax
je 0x10027615
lea eax, [edi + 8]
push eax
call fcn.1000503e
mov esi, eax
test esi, esi
js 0x10027621
push 2
jmp 0x100275f2
cmp dword [edi], 7
jne 0x10027615
call fcn.1001a03b
test eax, eax
jne 0x1002761c
cmp ebx, 2
jne 0x1002761c
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000476f
mov ecx, dword [ebp + 8]
push eax
lea ecx, [ecx + 0x48]
call fcn.10003a3d
mov esi, eax
lea ecx, [ebp - 0x2c]
test esi, esi
js 0x10027624
push 1
call fcn.10003a3d
push 3
pop ebx
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 0xc]
lea edi, [edi + eax*2]
lea eax, [eax*2 + 0xc]
add ecx, eax
add edi, 0xc
mov dword [ebp + 0xc], ecx
cmp ecx, dword [ebp - 0x1c]
jae 0x10027621
jmp 0x10027493
mov esi, 0x8007000d
jmp 0x10027624
mov esi, 0x8007000d
lea ecx, [ebp - 0x2c]
or dword [ebp - 4], reloc.advapi32.dll_TraceMessage
call fcn.10004fde
push dword [ebp - 0x18]
call fcn.10003a3d
pop ecx
jmp 0x1002764f
call sub.kernel32.dll_GetLastError
mov esi, eax
test esi, esi
jle 0x1002764f
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x14]
call sub.kernel32.dll_CloseHandle
mov eax, esi
call fcn.10005952
ret 0xc