Function at 0x100302d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1004c024]
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 0x10030318
xor eax, eax
jmp 0x100305b6
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 0x100303c1
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x230], eax
push 0x92
push 0x10042b20
call fcn.10030210
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 0x100305b6
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 0x1003042b
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x234], eax
push 0x98
push 0x10042b6c
call fcn.10030210
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 0x100305b6
movzx eax, byte [ebp - 0x12]
cmp eax, 0x55
jne 0x10030440
movzx ecx, byte [ebp - 0x11]
cmp ecx, 0xaa
je 0x10030447
xor eax, eax
jmp 0x100305b6
mov edx, dword [ebp - 0x22c]
mov dword [edx + 0xc], 0
mov dword [ebp - 0x224], 0
jmp 0x1003046f
mov eax, dword [ebp - 0x224]
add eax, 1
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 4
jge 0x10030535
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 0x100304f0
mov edx, dword [ebp - 0x228]
movzx eax, byte [edx + 4]
cmp eax, 0xf
je 0x100304f0
mov ecx, dword [ebp - 0x228]
movzx edx, byte [ecx + 4]
cmp edx, 5
je 0x100304f0
cmp dword [ebp - 8], 0
jne 0x100304f0
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 0x1003050e
mov edx, dword [ebp - 0x228]
movzx eax, byte [edx + 4]
cmp eax, 5
jne 0x10030530
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 0x10030460
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 0x100305a3
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.10030210
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 0x100305b6
cmp dword [ebp - 8], 0
jne 0x100305b3
cmp dword [ebp - 4], 0
jne 0x100302f7
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret 8