Function at 0x4705f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10264
call fcn.0040f8c0
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor eax, eax
mov word [esp + 0x18], ax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov ecx, 0x95
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x14]
stosw word es:[edi], ax
mov edi, dword [ebp + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
push edx
push esi
call fcn.00470070
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x470661
mov eax, dword [ebp + 0x18]
push eax
push str.ReadFileSegment_failed_for__s___ReadCompressionInfo_failed
push str.Engine
call fcn.004572b0
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4e376c]
mov ebx, dword [esp + 0x10]
push ecx
push ebx
call fcn.00471e80
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
push 0
je 0x4708c8
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
sub ebx, eax
push ebx
lea eax, [esp + 0x27c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4706c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x18]
push eax
push edx
push str.ReadFileSegment_failed_for__s___ReadFile_failed___WinRC__0x_08x
push str.Engine
call fcn.004572b0
add esp, 0x10
mov eax, 0x506
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], ebx
je 0x4706f1
mov eax, dword [ebp + 0x18]
push eax
push str.ReadFileSegment_failed_for__s___ReadFile_failed
push str.Engine
call fcn.004572b0
add esp, 0xc
mov eax, 0x517
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4e3768]
inc eax
push eax
push edi
push 0x4e3508
push str._s_dData_d
lea edx, [esp + 0x28]
push 0x258
push edx
mov dword [0x4e3768], eax
mov dword [0x4e376c], 0
call fcn.00403fa3
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x18
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
lea eax, [esp + 0x30]
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x470834
cmp dword [0x4e3a70], 2
jne 0x47080d
mov ecx, dword [0x4e40c8]
xor edx, edx
mov dx, word [0x4e327c]
xor eax, eax
mov ax, word [0x4e3270]
push ecx
mov ecx, dword [0x4e3a5c]
push edx
mov edx, dword [0x4e3768]
push eax
push ecx
push 0x4e3508
push edx
call sub.ui.dll_LoadCDForRestoreFile
add esp, 0x18
test eax, eax
je 0x4707bd
cmp eax, 2
jne 0x470801
push str.ReadFileSegment_failed___cancel_was_pushed
push str.Engine
call fcn.004572b0
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
lea eax, [esp + 0x30]
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x470834
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x18]
push eax
push 0x505
lea ecx, [esp + 0x20]
push ecx
push edx
push str.ReadFileSegment_failed_for__s___unable_to_create__s___dwRet__0x_08x___WinRC__0x_08x
push str.Engine
call fcn.004572b0
add esp, 0x18
mov eax, 0x505
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
push 0x505
push eax
push str.ReadFileSegment_failed_for__s___Creating_new_backup_file_failed___dwRet__0x_08x
push str.Engine
call fcn.004572b0
add esp, 0x10
mov eax, 0x505
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x14]
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + ebx + 0x27c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47086f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
push eax
push 0x506
push ecx
push str.ReadFileSegment_failed_for__s___Reading_new_backup_file_failed___dwRet__0x_08x___WinRC__0x_08x
jmp 0x4708f8
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x47088a
mov edx, dword [ebp + 0x18]
push 0x517
push edx
push str.ReadFileSegment_failed_for__s___Reading_new_backup_file_failed___dwRet__0x_08x
jmp 0x47092b
mov ebx, dword [esp + 0x10]
mov ecx, dword [0x4e376c]
mov edi, dword [ebp + 8]
add ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [0x4e376c], ecx
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x270]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x27c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x470911
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0x18]
push 0x506
push eax
push str.ReadFileSegment_failed_for__s___Reading_current_backup_file_failed___dwRet__0x_08x___WinRC__0x_08x
push str.Engine
call fcn.004572b0
add esp, 0x14
mov eax, 0x506
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x47088e
mov ecx, dword [ebp + 0x18]
push 0x517
push ecx
push str.ReadFileSegment_failed_for__s___Reading_current_backup_file_failed___dwRet__0x_08x
push str.Engine
call fcn.004572b0
add esp, 0x10
pop edi
pop esi
mov eax, 0x517
pop ebx
mov esp, ebp
pop ebp
ret