Function at 0x402380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x4383f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push edi
push 0x1c
lea eax, [ebp - 0x2c]
push 1
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x30], 0
call fcn.0041b2f9
add esp, 0x10
cmp eax, 0x1c
je 0x4023dc
push str.Didnt_properly_read_the_sparse_header__n
push 0x9aa
push str.sparse_open
push 2
call fcn.004016a0
add esp, 0x10
push 1
call fcn.00401c50
mov eax, dword [ebp - 0x2c]
cmp eax, 0xed26ff3a
je 0x402407
push eax
push str.Bad_magic:__x_probably_not_processing_a_sparse_image_n
push 0x9b1
push str.sparse_open
push 2
call fcn.004016a0
add esp, 0x14
push 1
call fcn.00401c50
mov ax, word [ebp - 0x28]
cmp ax, 1
je 0x402421
movzx ecx, ax
push ecx
push str.Unknown_major_version_number_n
push 0x9b7
jmp 0x4023f1
push 0x1c
call fcn.0041a5e2
mov esi, eax
add esp, 4
mov dword [ebp - 0x54], esi
test esi, esi
jne 0x402440
push str.Malloc_for_return_sparse_handle_failed
push 0x9c0
jmp 0x4023c6
mov ebx, dword [ebp - 0x18]
add ebx, ebx
add ebx, ebx
add ebx, ebx
push ebx
call fcn.0041a5e2
add esp, 4
push ebx
mov dword [ebp - 0x50], eax
mov dword [esi + 0xc], eax
call fcn.0041a5e2
mov edx, dword [ebp - 0x18]
mov ebx, eax
lea eax, [edx*4]
add esp, 4
push eax
mov dword [ebp - 0x4c], ebx
mov dword [esi + 0x10], ebx
call fcn.0041a5e2
xor edx, edx
add esp, 4
mov dword [ebp - 0x64], eax
mov dword [esi + 0x14], eax
cmp dword [ebp - 0x50], edx
je 0x402795
cmp ebx, edx
je 0x402795
cmp eax, edx
je 0x402795
movzx eax, word [ebp - 0x24]
mov dword [esi], edi
mov dword [esi + 4], edx
mov dword [esi + 0x18], edx
cmp eax, 0x1c
jbe 0x4024c0
push 1
push edx
add eax, 0xffffffe4
push eax
push edi
call fcn.0041aa2a
add esp, 0x10
xor edx, edx
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x18], edx
jbe 0x402680
mov esi, 0xfffffff8
mov dword [ebp - 0x58], edx
push edi
call fcn.004190ae
add esp, 4
push edi
push 0xc
lea ecx, [ebp - 0x10]
push 1
push ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
call fcn.0041b2f9
add esp, 0x10
cmp eax, 0xc
jne 0x4026ae
mov cx, word [ebp - 0x22]
movzx eax, cx
cmp eax, 0xc
jbe 0x40251e
push 1
add eax, 0xfffffff4
push 0
push eax
push edi
call fcn.0041aa2a
mov cx, word [ebp - 0x22]
add esp, 0x10
mov ax, word [ebp - 0x10]
mov edx, 0xcac1
cmp ax, dx
jne 0x402615
mov edi, dword [ebp - 0x20]
imul edi, dword [ebp - 0xc]
movzx eax, cx
add eax, edi
cmp dword [ebp - 8], eax
jne 0x4026bd
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
xor eax, eax
push eax
push edi
call fcn.00426850
or ecx, ebx
jne 0x4026ee
xor edi, edi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
cmp dword [ebp - 0x38], edi
je 0x4025a8
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x60]
inc eax
add esi, 8
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x64]
mov dword [esi + eax], edx
mov edx, dword [ebp + 8]
mov dword [esi + eax + 4], ecx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0xc]
mov dword [esi + eax], edx
mov dword [esi + eax + 4], ecx
mov eax, dword [ebp - 0x4c]
mov dword [esi + eax], edi
mov dword [ebp - 0x38], edi
mov dword [esi + eax + 4], edi
mov ebx, dword [ebp - 0x20]
imul ebx, dword [ebp - 0xc]
mov edx, ebx
or edx, edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], edi
je 0x40260a
jmp 0x4025c6
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
test edi, edi
jne 0x4025cf
cmp ebx, 0xffffffff
jbe 0x4025d4
or ebx, 0xffffffff
xor edi, edi
mov eax, dword [ebp - 0x3c]
push 1
push edi
push ebx
push eax
call fcn.0041aa2a
add esp, 0x10
test eax, eax
jne 0x4026df
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
sub ecx, ebx
sbb edx, edi
add dword [esi + eax], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
adc dword [esi + eax + 4], edi
or ecx, edx
jne 0x4025c0
mov ecx, dword [ebp - 0x70]
add dword [ebp + 8], ecx
mov edx, dword [ebp - 0x6c]
jmp 0x40265f
mov edx, 0xcac3
cmp ax, dx
jne 0x402754
movzx eax, cx
cmp dword [ebp - 8], eax
jne 0x402710
cmp dword [ebp - 0x38], 0
jne 0x40263c
mov dword [ebp - 0x38], 1
mov edi, dword [ebp - 0x20]
imul edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
xor eax, eax
push eax
push edi
call fcn.00426850
or ecx, ebx
jne 0x402732
add dword [ebp + 8], eax
adc dword [ebp + 0xc], edx
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x18]
jb 0x4024d4
mov esi, dword [ebp - 0x54]
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
cmp eax, ecx
je 0x402776
push eax
push ecx
push str.Wrote__d_blocks__expected_to_write__d_blocks_n
push 0xa49
push str.sparse_open
push 2
call fcn.004016a0
add esp, 0x18
jmp 0x4023d5
push str.Didnt_get_proper_amount_of_bytes_for_chunk_header_n
push 0x9e1
jmp 0x4023c6
mov ecx, dword [ebp - 0x34]
push ecx
push str.Bogus_chunk_size_for_chunk__d__type_Raw_n
push 0x9f1
push str.sparse_open
push 2
call fcn.004016a0
add esp, 0x14
jmp 0x4023d5
push str.Error_when_trying_to_read_RAW_data_from_file_n
push 0xa16
jmp 0x4023c6
xor eax, eax
push eax
push edi
push str.File_chunk_size__d_is_not_a_sector_multiple
push 0x9fd
push str.sparse_open
push 2
call fcn.004016a0
add esp, 0x18
jmp 0x4023d5
mov edx, dword [ebp - 0x34]
push edx
push str.Bogus_chunk_size_for_chunk__d__type_Dont_Care_n
push 0xa28
push str.sparse_open
push 2
call fcn.004016a0
add esp, 0x14
jmp 0x4023d5
xor eax, eax
push eax
push edi
push str.Number_of_bytes_skipped__d_is_not_a_sector_multiple_n
push 0xa39
push str.sparse_open
push 2
call fcn.004016a0
add esp, 0x18
jmp 0x4023d5
movzx eax, ax
push eax
push str.Unknown_chunk_type__x_n
push 0xa41
push str.sparse_open
push 2
call fcn.004016a0
add esp, 0x14
jmp 0x4023d5
push edx
push edx
push edx
push edi
call fcn.0041aa2a
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418d55
mov esp, ebp
pop ebp
ret
push str.Malloc_in_sparse_open_failed
push 0x9ca
jmp 0x4023c6