Function at 0x1002e530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x10048024]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ecx + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x22c]
cmp dword [eax + 0xc], 0
jne 0x1002e578
xor eax, eax
jmp 0x1002e816
mov dword [ebp - 0x214], 0
mov byte [ebp - 0x210], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x20f]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x22c]
mov eax, dword [edx + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edx
push 0
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1002e621
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x230], eax
push 0x92
push 0x1003f660
call fcn.1002e470
add esp, 8
push eax
push str._s:_Set_file_pointer_to_fail_in_QueryExtTableNextItem.
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x230]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
xor eax, eax
jmp 0x1002e816
push 0
lea ecx, [ebp - 0x214]
push ecx
push 0x200
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002e68b
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x234], eax
push 0x98
push 0x1003f6ac
call fcn.1002e470
add esp, 8
push eax
push str._s:_Read_file_to_fail_in_QueryExtTableNextItem.
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
xor eax, eax
jmp 0x1002e816
movzx eax, byte [ebp - 0x12]
cmp eax, 0x55
jne 0x1002e6a0
movzx ecx, byte [ebp - 0x11]
cmp ecx, 0xaa
je 0x1002e6a7
xor eax, eax
jmp 0x1002e816
mov edx, dword [ebp - 0x22c]
mov dword [edx + 0xc], 0
mov dword [ebp - 0x224], 0
jmp 0x1002e6cf
mov eax, dword [ebp - 0x224]
add eax, 1
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 4
jge 0x1002e795
mov ecx, dword [ebp - 0x224]
shl ecx, 4
lea edx, [ebp + ecx - 0x52]
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x228]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x1002e750
mov edx, dword [ebp - 0x228]
movzx eax, byte [edx + 4]
cmp eax, 0xf
je 0x1002e750
mov ecx, dword [ebp - 0x228]
movzx edx, byte [ecx + 4]
cmp edx, 5
je 0x1002e750
cmp dword [ebp - 8], 0
jne 0x1002e750
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x228]
add ecx, dword [edx + 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
push 0x10
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x228]
movzx ecx, byte [eax + 4]
cmp ecx, 0xf
je 0x1002e76e
mov edx, dword [ebp - 0x228]
movzx eax, byte [edx + 4]
cmp eax, 5
jne 0x1002e790
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x228]
add edx, dword [eax + 8]
mov ecx, dword [ebp - 0x22c]
mov dword [ecx + 0xc], edx
mov dword [ebp - 4], 1
jmp 0x1002e6c0
mov edx, dword [ebp - 0x22c]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ecx + 0x14]
add edx, 1
mov ecx, dword [ebp - 0x22c]
mov dword [ecx + 0x14], edx
cmp eax, 0x64
jbe 0x1002e803
mov edx, dword [ebp - 0x22c]
mov dword [edx + 0x14], 0
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x238], eax
push 0xc2
push str...parttable.cpp
call fcn.1002e470
add esp, 8
push eax
push str._s:_Partition_table_is_a_loop
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
xor eax, eax
jmp 0x1002e816
cmp dword [ebp - 8], 0
jne 0x1002e813
cmp dword [ebp - 4], 0
jne 0x1002e557
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1000f672
mov esp, ebp
pop ebp
ret 8