Function at 0x6005080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6017d40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x28
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
mov dword [ebp - 4], ebx
add esp, 4
mov dword [ebp - 0x18], esi
mov ebx, str.E:_svneboot_dll_trunk_android_download.cpp
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x28]
inc ecx
push 0
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi + 0x68]
push eax
push 0x28
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6005110
mov dword [edi + 0x28], 0x32c9
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x24]
push str.Read_target_info_packet__windows_error_Code_:__d__
push edx
call fcn.060010c0
add esp, 0xc
push esi
jmp 0x60053c3
mov eax, dword [ebp - 0x28]
cmp eax, 0x18
jne 0x6005359
lea eax, [ebp - 0x24]
push str.Read_DM_FLASH_INFO_PACKET_completely.
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3bf
call fcn.060010c0
mov ecx, 6
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x48]
add esp, 8
cmp esi, 0x50414c46
je 0x6005175
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3c5
mov dword [ecx + 0x28], 0x36b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Read_DM_FLASH_INFO_PACKET_error__0x_x__not_flash_info_packet__Windows_error_Code_:__d
lea edx, [ebp - 0x24]
jmp 0x60053b6
lea ecx, [ebp - 0x24]
push 0x601dc7c
push ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3cb
call fcn.060010c0
add esp, 8
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3cc
push str.Parse_flash_info_successfully__
push edx
call fcn.060010c0
add esp, 8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3cd
push str.__DM_FLASH_INFO_PACKET__
push eax
call fcn.060010c0
add esp, 8
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3ce
push 0x50414c46
push str.pattern:__0x_x
push ecx
call fcn.060010c0
add esp, 0xc
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3cf
push str.____________________________________________
push edx
call fcn.060010c0
mov eax, dword [ebp - 0x40]
add esp, 8
and eax, 0xffff
lea ecx, [ebp - 0x24]
push eax
push str.dev_code:___d
push ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3d0
call fcn.060010c0
mov edx, dword [ebp - 0x42]
add esp, 0xc
and edx, 0xffff
lea eax, [ebp - 0x24]
push edx
push str.dev_id:___d
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3d1
call fcn.060010c0
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push ecx
push str.dev_size:___d
push edx
mov dword [ebp - 0x20], 0x3d2
call fcn.060010c0
mov eax, dword [ebp - 0x44]
add esp, 0xc
and eax, 0xffff
lea ecx, [ebp - 0x24]
push eax
push str.man_code:___d
push ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3d3
call fcn.060010c0
mov edx, dword [ebp - 0x38]
add esp, 0xc
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3d4
push edx
push str.page_size:___d
lea eax, [ebp - 0x24]
push eax
call fcn.060010c0
mov ecx, dword [ebp - 0x3e]
add esp, 0xc
and ecx, 0xffff
lea edx, [ebp - 0x24]
push ecx
push str.reserve:____d
push edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3d5
call fcn.060010c0
mov eax, dword [ebp - 0x34]
add esp, 0xc
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
push str.spare_size:___d
push ecx
mov dword [ebp - 0x20], 0x3d6
call fcn.060010c0
add esp, 0xc
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3d7
push 0x601e370
push edx
call fcn.060010c0
add esp, 8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3d8
push 0x601dc7c
push eax
call fcn.060010c0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add esp, 8
lea esi, [ebp - 0x44]
lea edi, [ecx + 0x9c]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x28
jne 0x600564d
lea eax, [ebp - 0x24]
push str.Read_DM_PL_INFO_PACKET_completely.
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3e1
call fcn.060010c0
mov ecx, 0xa
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x58]
add esp, 8
cmp esi, 0x50494c50
je 0x60053df
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3e7
mov dword [ecx + 0x28], 0x36b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Read_DM_PL_INFO_PACKET_error__0x_x__not_preloader_info_packet__Windows_error_Code_:__d
lea edx, [ebp - 0x24]
push edx
call fcn.060010c0
mov eax, dword [ebp - 0x18]
add esp, 0x10
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24]
push 0x601dc7c
push ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3ed
call fcn.060010c0
add esp, 8
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3ee
push str.Parse_preloader_info_successfully__
push edx
call fcn.060010c0
add esp, 8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3ef
push str.__DM_PL_INFO_PACKET__
push eax
call fcn.060010c0
add esp, 8
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3f0
push 0x50494c50
push str.pattern:__0x_x
push ecx
call fcn.060010c0
add esp, 0xc
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3f1
push str.____________________________________________
push edx
call fcn.060010c0
mov eax, dword [ebp - 0x54]
add esp, 8
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
push str.version:__0x_x
push ecx
mov dword [ebp - 0x20], 0x3f2
call fcn.060010c0
mov edx, dword [ebp - 0x50]
add esp, 0xc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push edx
push str.chip:__0x_x
push eax
mov dword [ebp - 0x20], 0x3f3
call fcn.060010c0
add esp, 0xc
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3f4
push str.____________________________________________
push ecx
call fcn.060010c0
mov edx, dword [ebp - 0x40]
add esp, 8
and edx, 0xffff
lea eax, [ebp - 0x24]
push edx
push str.dev_code:___d
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3f5
call fcn.060010c0
mov ecx, dword [ebp - 0x42]
add esp, 0xc
and ecx, 0xffff
lea edx, [ebp - 0x24]
push ecx
push str.dev_id:___d
push edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3f6
call fcn.060010c0
add esp, 0xc
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x24]
push eax
push str.dev_size:___d
push ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3f7
call fcn.060010c0
mov edx, dword [ebp - 0x44]
add esp, 0xc
and edx, 0xffff
lea eax, [ebp - 0x24]
push edx
push str.man_code:___d
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3f8
call fcn.060010c0
mov ecx, dword [ebp - 0x38]
add esp, 0xc
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push ecx
push str.page_size:___d
push edx
mov dword [ebp - 0x20], 0x3f9
call fcn.060010c0
mov eax, dword [ebp - 0x3e]
add esp, 0xc
and eax, 0xffff
lea ecx, [ebp - 0x24]
push eax
push str.reserve:___d
push ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3fa
call fcn.060010c0
mov edx, dword [ebp - 0x34]
add esp, 0xc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push edx
push str.spare_size:___d
push eax
mov dword [ebp - 0x20], 0x3fb
call fcn.060010c0
add esp, 0xc
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3fc
push 0x601e244
push ecx
call fcn.060010c0
add esp, 8
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x3fd
push 0x601dc7c
push edx
call fcn.060010c0
mov eax, dword [ebp - 0x14]
mov ecx, 5
lea esi, [ebp - 0x44]
add esp, 8
lea edi, [eax + 0x9c]
mov dword [ebp - 0x24], ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x24]
push str.Checking_preloader_version...
push ecx
mov dword [ebp - 0x20], 0x401
call fcn.060010c0
mov edx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x14]
add esp, 8
mov ecx, esi
push edx
call fcn.0600d5b0
mov eax, dword [ebp - 0x18]
mov byte [esi + 0x81], 1
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x40c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x28]
push eax
push ecx
lea edx, [ebp - 0x30]
push str.Read_target_info_packet_length__d_is_not_correct__Windows_error_Code_:__d
push edx
call fcn.060010c0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x60056cd
cmp dword [ebp - 0x20], 0xfa0
jl 0x60050c3
lea eax, [ebp - 0x1c]
push str.Cannot_read_any_info_from_target_
push eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x28], 0x36b4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x427
call fcn.060010c0
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
xor al, al
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x28], 0x32c9
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x415
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
push str.Read_target_info_packet__windows_error_Code_:__d__
push ecx
call fcn.060010c0
add esp, 0xc
push esi
jmp 0x60053c3