Function at 0x40b073
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ecx, 9
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x90]
mov esi, 0x48c4c0
push ebx
sub esp, 0xdc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xa0], 0x498ed7
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x48]
mov esi, 0x48c500
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x6c]
mov esi, 0x48c540
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0x9c], 0x498edb
mov dword [ebp - 0x98], 0x498ee0
mov dword [ebp - 0x94], 0x498ee5
mov dword [esp + 4], 1
mov dword [esp], 0x200
call sub.msvcrt.dll_calloc
mov dword [ebp - 0xac], eax
test eax, eax
jne 0x40b111
mov ebx, str._Unrecognized_
jmp 0x40b4c2
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xb4]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
sub esp, 0x14
test eax, eax
je 0x40b107
xor eax, eax
mov dword [esp + 8], 0x200
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xa4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xac]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
sub esp, 0x14
test eax, eax
je 0x40b107
cmp dword [ebp - 0xa4], 0x200
jne 0x40b107
mov eax, dword [ebp - 0xac]
mov ebx, str.ISO9660
inc eax
mov dword [ebp - 0xb0], eax
mov dword [esp + 8], 5
mov dword [esp + 4], eax
mov dword [esp], 0x498eea
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x40b4c2
mov eax, dword [ebp - 0xac]
lea esi, [ebp - 0x8c]
xor ebx, ebx
lea edi, [eax + 3]
mov dword [esp + 8], 8
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x40b4b8
inc ebx
add esi, 0xc
cmp ebx, 3
jne 0x40b1c6
mov esi, 0x36
mov eax, dword [ebp - 0xac]
lea edi, [ebp - 0x44]
xor ebx, ebx
lea edx, [eax + esi]
mov dword [esp + 8], 8
mov dword [esp + 4], edi
mov dword [esp], edx
mov dword [ebp - 0xbc], edx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x40b22d
inc ebx
add edi, 0xc
mov edx, dword [ebp - 0xbc]
cmp ebx, 4
jne 0x40b1fe
jmp 0x40b239
imul ebx, ebx, 0xc
mov ebx, dword [ebp + ebx - 0x48]
jmp 0x40b4c2
cmp esi, 0x52
je 0x40b245
mov esi, 0x52
jmp 0x40b1f0
mov dword [esp + 8], 4
mov eax, dword [ebp - 0xac]
mov ebx, str.APFS
mov dword [esp], str.NXSB
add eax, 0x20
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x40b4c2
mov edi, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb8]
xor eax, eax
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0xb4]
add esi, 0x400
mov dword [esp + 4], esi
adc edi, 0
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
sub esp, 0x14
test eax, eax
je 0x40b107
xor eax, eax
mov dword [esp + 8], 0x200
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xa4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xac]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
sub esp, 0x14
test eax, eax
je 0x40b107
cmp dword [ebp - 0xa4], 0x200
jne 0x40b107
mov eax, dword [ebp - 0xac]
cmp byte [eax], 0x48
jne 0x40b327
mov al, byte [eax + 1]
cmp al, 0x58
je 0x40b4b1
cmp al, 0x2b
je 0x40b4b1
xor eax, eax
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
sub esp, 0x14
test eax, eax
je 0x40b107
xor ebx, ebx
mov dword [esp + 8], 0x200
mov dword [esp + 0x10], ebx
lea ebx, [ebp - 0xa4]
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0xac]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
sub esp, 0x14
test eax, eax
je 0x40b107
cmp dword [ebp - 0xa4], 0x200
jne 0x40b107
mov eax, dword [ebp - 0xac]
cmp byte [eax + 0x38], 0x53
jne 0x40b3f5
cmp byte [eax + 0x39], 0xef
jne 0x40b3f5
xor esi, esi
xor edx, edx
mov eax, dword [ebp - 0xac]
imul edi, edx, 0xc
mov ebx, dword [eax + edx*4 + 0x5c]
lea eax, [ebp - 0x6c]
add edi, eax
xor eax, eax
mov ecx, ebx
and ecx, dword [edi + eax*4]
setne byte [ebp - 0xb8]
cmp eax, esi
setae cl
inc eax
test byte [ebp - 0xb8], cl
cmovne esi, eax
cmp eax, 3
jne 0x40b3c3
inc edx
cmp edx, 3
jne 0x40b3af
mov ebx, dword [ebp + esi*4 - 0xa0]
jmp 0x40b4c2
mov edi, dword [ebp - 0xac]
xor eax, eax
mov ecx, pe_nt_image_headers32
mov edx, dword [ebp - 0xb4]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xb8]
add eax, 0x8000
adc edx, 0
xor ecx, ecx
mov dword [esp + 4], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
sub esp, 0x14
test eax, eax
je 0x40b107
xor eax, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x200
mov eax, dword [ebp - 0xac]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
sub esp, 0x14
test eax, eax
je 0x40b107
cmp dword [ebp - 0xa4], 0x200
jne 0x40b107
mov dword [esp + 8], 5
mov eax, dword [ebp - 0xb0]
mov ebx, 0x498ebd
mov dword [esp], 0x498ef5
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40b107
jmp 0x40b4c2
mov ebx, str.HFS_HFS
jmp 0x40b4c2
imul ebx, ebx, 0xc
mov ebx, dword [ebp + ebx - 0x90]
mov eax, dword [ebp - 0xac]
mov dword [esp], eax
call sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret