Function at 0x4019a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x4363f4]
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.00419c29
add esp, 0x10
cmp eax, 0x1c
je 0x4019fc
push str.Didnt_properly_read_the_sparse_header__n
push 0x76f
push str.sparse_open
push 1
call fcn.00401210
add esp, 0x10
push 1
call fcn.004017c0
mov eax, dword [ebp - 0x2c]
cmp eax, 0xed26ff3a
je 0x401a27
push eax
push str.Bad_magic:__x_probably_not_processing_a_sparse_image_n
push 0x776
push str.sparse_open
push 1
call fcn.00401210
add esp, 0x14
push 1
call fcn.004017c0
mov ax, word [ebp - 0x28]
cmp ax, 1
je 0x401a41
movzx ecx, ax
push ecx
push str.Unknown_major_version_number_n
push 0x77c
jmp 0x401a11
push 0x1c
call fcn.00418f16
mov esi, eax
add esp, 4
mov dword [ebp - 0x54], esi
test esi, esi
jne 0x401a60
push str.Malloc_for_return_sparse_handle_failed
push 0x785
jmp 0x4019e6
mov ebx, dword [ebp - 0x18]
add ebx, ebx
add ebx, ebx
add ebx, ebx
push ebx
call fcn.00418f16
add esp, 4
push ebx
mov dword [ebp - 0x50], eax
mov dword [esi + 0xc], eax
call fcn.00418f16
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.00418f16
xor edx, edx
add esp, 4
mov dword [ebp - 0x64], eax
mov dword [esi + 0x14], eax
cmp dword [ebp - 0x50], edx
je 0x401db5
cmp ebx, edx
je 0x401db5
cmp eax, edx
je 0x401db5
movzx eax, word [ebp - 0x24]
mov dword [esi], edi
mov dword [esi + 4], edx
mov dword [esi + 0x18], edx
cmp eax, 0x1c
jbe 0x401ae0
push 1
push edx
add eax, 0xffffffe4
push eax
push edi
call fcn.0041935a
add esp, 0x10
xor edx, edx
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x18], edx
jbe 0x401ca0
mov esi, 0xfffffff8
mov dword [ebp - 0x58], edx
push edi
call fcn.0041809e
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.00419c29
add esp, 0x10
cmp eax, 0xc
jne 0x401cce
mov cx, word [ebp - 0x22]
movzx eax, cx
cmp eax, 0xc
jbe 0x401b3e
push 1
add eax, 0xfffffff4
push 0
push eax
push edi
call fcn.0041935a
mov cx, word [ebp - 0x22]
add esp, 0x10
mov ax, word [ebp - 0x10]
mov edx, 0xcac1
cmp ax, dx
jne 0x401c35
mov edi, dword [ebp - 0x20]
imul edi, dword [ebp - 0xc]
movzx eax, cx
add eax, edi
cmp dword [ebp - 8], eax
jne 0x401cdd
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
xor eax, eax
push eax
push edi
call fcn.00425080
or ecx, ebx
jne 0x401d0e
xor edi, edi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
cmp dword [ebp - 0x38], edi
je 0x401bc8
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 0x401c2a
jmp 0x401be6
mov ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
test edi, edi
jne 0x401bef
cmp ebx, 0xffffffff
jbe 0x401bf4
or ebx, 0xffffffff
xor edi, edi
mov eax, dword [ebp - 0x3c]
push 1
push edi
push ebx
push eax
call fcn.0041935a
add esp, 0x10
test eax, eax
jne 0x401cff
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 0x401be0
mov ecx, dword [ebp - 0x70]
add dword [ebp + 8], ecx
mov edx, dword [ebp - 0x6c]
jmp 0x401c7f
mov edx, 0xcac3
cmp ax, dx
jne 0x401d74
movzx eax, cx
cmp dword [ebp - 8], eax
jne 0x401d30
cmp dword [ebp - 0x38], 0
jne 0x401c5c
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.00425080
or ecx, ebx
jne 0x401d52
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 0x401af4
mov esi, dword [ebp - 0x54]
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
cmp eax, ecx
je 0x401d96
push eax
push ecx
push str.Wrote__d_blocks__expected_to_write__d_blocks_n
push 0x80e
push str.sparse_open
push 1
call fcn.00401210
add esp, 0x18
jmp 0x4019f5
push str.Didnt_get_proper_amount_of_bytes_for_chunk_header_n
push 0x7a6
jmp 0x4019e6
mov ecx, dword [ebp - 0x34]
push ecx
push str.Bogus_chunk_size_for_chunk__d__type_Raw_n
push 0x7b6
push str.sparse_open
push 1
call fcn.00401210
add esp, 0x14
jmp 0x4019f5
push str.Error_when_trying_to_read_RAW_data_from_file_n
push 0x7db
jmp 0x4019e6
xor eax, eax
push eax
push edi
push str.File_chunk_size__d_is_not_a_sector_multiple
push 0x7c2
push str.sparse_open
push 1
call fcn.00401210
add esp, 0x18
jmp 0x4019f5
mov edx, dword [ebp - 0x34]
push edx
push str.Bogus_chunk_size_for_chunk__d__type_Dont_Care_n
push 0x7ed
push str.sparse_open
push 1
call fcn.00401210
add esp, 0x14
jmp 0x4019f5
xor eax, eax
push eax
push edi
push str.Number_of_bytes_skipped__d_is_not_a_sector_multiple_n
push 0x7fe
push str.sparse_open
push 1
call fcn.00401210
add esp, 0x18
jmp 0x4019f5
movzx eax, ax
push eax
push str.Unknown_chunk_type__x_n
push 0x806
push str.sparse_open
push 1
call fcn.00401210
add esp, 0x14
jmp 0x4019f5
push edx
push edx
push edx
push edi
call fcn.0041935a
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417d45
mov esp, ebp
pop ebp
ret
push str.Malloc_in_sparse_open_failed
push 0x78f
jmp 0x4019e6