Function at 0x4724a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x10]
test edx, edx
je 0x4727fc
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
add ecx, 0x400
push 0
adc eax, 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ecx
push edx
mov dword [esp + 0x2c], eax
call eax
cmp eax, 0xffffffff
je 0x4727fc
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edi, [esi + 0x5c]
push 0x200
push edi
push dword [esi + 0x10]
mov dword [esp + 0x38], eax
call eax
cmp dword [esp + 0x14], 0x200
jne 0x4727fc
movzx eax, word [edi]
rol ax, 8
mov word [edi], ax
movzx eax, word [esi + 0x5e]
rol ax, 8
mov word [esi + 0x5e], ax
mov eax, dword [esi + 0x60]
bswap eax
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x68]
bswap eax
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x6c]
bswap eax
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x70]
bswap eax
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x74]
bswap eax
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x78]
bswap eax
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x7c]
bswap eax
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x80]
bswap eax
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0x84]
bswap eax
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0x88]
bswap eax
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x8c]
bswap eax
push dword [esi + 0xa8]
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0x90]
push dword [esi + 0xa4]
bswap eax
mov dword [esi + 0x90], eax
mov eax, dword [esi + 0x94]
bswap eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 0x98]
bswap eax
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0x9c]
bswap eax
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0xa0]
bswap eax
mov dword [esi + 0xa0], eax
call fcn.004718d0
add esp, 8
mov dword [esi + 0xa4], eax
lea ebx, [esi + 0xcc]
mov dword [esi + 0xa8], edx
push ebx
call fcn.00471f10
lea eax, [esi + 0x11c]
push eax
call fcn.00471f10
lea eax, [esi + 0x16c]
push eax
call fcn.00471f10
lea eax, [esi + 0x1bc]
push eax
call fcn.00471f10
lea eax, [esi + 0x20c]
push eax
call fcn.00471f10
movzx eax, word [edi]
mov ecx, 0x482b
cmp ax, cx
jne 0x472655
mov eax, 1
jmp 0x472668
mov ecx, 0x4858
cmp ax, cx
jne 0x4727fc
mov eax, 3
mov dword [esi + 0xc], eax
xorps xmm0, xmm0
mov eax, dword [esi + 0x84]
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [esi + 0x338], eax
mov eax, dword [esi + 0x340]
movlpd qword [esp + 0x28], xmm0
test eax, eax
je 0x4726a2
push eax
call fcn.00560591
add esp, 4
mov dword [esi + 0x340], 0
push edi
call fcn.00560596
add esp, 4
mov dword [esi + 0x340], eax
test eax, eax
je 0x4726d0
push edi
push 0xff
push eax
call fcn.00588800
add esp, 0xc
mov dword [esi + 0x330], edi
mov dword [esi + 0x334], ebx
mov eax, dword [esi + 0xd8]
lea ecx, [esi + 0xe0]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x33c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
nop word [eax + eax]
mov edi, dword [ecx - 4]
test edi, edi
je 0x4727cb
mov eax, dword [esi + 0x84]
mov ebx, eax
imul ebx, edi
mov edi, dword [ecx]
imul edi, eax
mov eax, 0
mov dword [esp + 0x18], ebx
mov ebx, edi
add ebx, edx
adc eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
cmp eax, dword [esi + 0x334]
ja 0x4727df
jb 0x47274a
cmp ebx, dword [esi + 0x330]
ja 0x4727df
mov eax, dword [esi + 0x340]
add eax, edx
mov dword [esp + 0x20], eax
je 0x4727df
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4727a1
mov eax, dword [esp + 0x18]
cdq
add eax, dword [esi + 0x18]
push 0
adc edx, dword [esi + 0x1c]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x38]
push edx
push eax
push ecx
mov dword [esp + 0x40], eax
call dword [esp + 0x2c]
cmp eax, 0xffffffff
je 0x4727a1
push 0
lea eax, [esp + 0x2c]
push eax
push edi
push dword [esp + 0x2c]
push dword [esi + 0x10]
call dword [esp + 0x38]
mov eax, dword [esp + 0x28]
jmp 0x4727a3
xor eax, eax
cdq
cmp eax, edi
jne 0x4727df
test edx, edx
jne 0x4727df
mov eax, dword [esp + 0x10]
mov edx, ebx
mov ecx, dword [esp + 0x14]
inc eax
add ecx, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp eax, 8
jl 0x472700
cmp dword [esi + 0x330], edx
jne 0x4727df
mov ecx, dword [esp + 0xc]
cmp dword [esi + 0x334], ecx
je 0x4727f3
push str.ParseVolumeHeader_InitAllocBitmap_failed._n
mov byte [esi + 0x344], 1
call fcn.0040f930
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret