Function at 0x4033a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x429050]
push esi
mov esi, dword [0x42903c]
push eax
mov dword [ebp - 8], esi
call fcn.004024b0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
jne 0x4033ed
push str.Could_not_get_file_info.
push 0x4a2
push str.start_image_transfer_64bit
push 0
call fcn.00401cc0
add esp, 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push ebx
mov ebx, dword [esi + 0x14]
push edi
mov edi, dword [esi + 0x10]
mov esi, dword [esi + 0x18]
push ebx
push edi
push str.start_image_transfer_64bit:_Offset__ld
push 0x4ac
push str.start_image_transfer_64bit
push 1
mov dword [ebp - 8], edx
call fcn.00401cc0
push ebx
push edi
push str.start_image_transfer_64bit:_Offset_0x_X
push 0x4ad
push str.start_image_transfer_64bit
push 1
call fcn.00401cc0
mov eax, dword [ebp - 8]
push eax
push esi
push str.start_image_transfer_64bit:_Length__ld
push 0x4ae
push str.start_image_transfer_64bit
push 1
call fcn.00401cc0
mov ecx, dword [ebp - 8]
add esp, 0x48
push ecx
push esi
push str.start_image_transfer_64bit:_Length_0x_X
push 0x4af
push str.start_image_transfer_64bit
push 1
call fcn.00401cc0
add esp, 0x18
test esi, esi
jne 0x40347a
cmp dword [ebp - 8], esi
je 0x4035a1
cmp dword [ebp - 0x10], 1
jne 0x4034b0
mov edx, dword [0x429050]
push edx
call fcn.004020d0
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, esi
add edx, edi
adc ecx, ebx
mov dword [ebp - 0x14], eax
xor eax, eax
cmp ecx, eax
ja 0x4035a1
jb 0x4034b0
cmp edx, dword [ebp - 0x14]
ja 0x4035a1
mov eax, dword [0x429050]
push 0
push edi
push eax
call fcn.00407ad3
add esp, 0xc
test esi, esi
je 0x403515
mov ebx, dword [ebp - 4]
mov eax, esi
sub eax, ebx
mov edi, eax
cmp eax, 0x100000
jb 0x4034da
mov edi, 0x100000
mov ecx, dword [0x429040]
mov edx, dword [0x429050]
push edi
push ecx
push edx
call fcn.0040e637
add esp, 0xc
test eax, eax
js 0x403527
cmp eax, edi
jne 0x403557
mov eax, dword [0x429040]
push edi
push eax
call fcn.004011a0
add esp, 8
test eax, eax
je 0x40357f
add ebx, edi
mov dword [ebp - 4], ebx
cmp ebx, esi
jb 0x4034c5
add dword [0x42904c], esi
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00406635
mov ecx, dword [eax]
push ecx
call fcn.00406536
push eax
push str.file_read_failed:__s
push 0x4c3
push str.start_image_transfer_64bit
push 0
call fcn.00401cc0
add esp, 0x18
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
push edx
push esi
push eax
push str.Read__d_bytes__but_was_asked_for__ld_bytes
push 0x4c7
push str.start_image_transfer_64bit
push 0
call fcn.00401cc0
add esp, 0x1c
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push str.Tx_Sahara_Image_Failed
push 0x4cd
push str.start_image_transfer_64bit
push 0
call fcn.00401cc0
add esp, 0x10
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push eax
push esi
push str.Invalid_length__ld_bytes_request_to_be_transmitted
push 0x4b6
push str.start_image_transfer_64bit
push 0
call fcn.00401cc0
mov ecx, dword [0x429050]
push ecx
call fcn.004020d0
push eax
push ebx
push edi
push str.File_offset__ld__file_size__d
push 0x4b7
push str.start_image_transfer_64bit
push 0
call fcn.00401cc0
add esp, 0x38
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret