Function at 0x6006480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6017da0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
mov ebx, ecx
push esi
push edi
mov al, byte [ebx + 0x81]
mov dword [ebp - 0x10], esp
test al, al
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
je 0x60065bc
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xb0]
mov edx, dword [ebx + 0xb8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0xb4]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebx + 0xc0]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp + 8]
lea edx, [eax + eax*2]
push 0
push ecx
push 0x1c
mov eax, dword [ebx + edx*8 + 0xdc]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x68]
push edx
push eax
mov dword [ebp - 0x54], 0x50474d49
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x6006540
mov dword [ebx + 0x28], 0x32cb
mov dword [ebp - 0x20], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x1c], 0x58a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20]
push str.Write_DM_FLASH_INFO_PACKET_BC__windows_error_Code_:__d__
push ecx
jmp 0x600656b
cmp dword [ebp + 8], 0x1c
je 0x6006588
mov dword [ebx + 0x28], 0x32cd
mov dword [ebp - 0x20], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x1c], 0x591
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Write_DM_FLASH_INFO_PACKET_BC_length_is_not_correct__Windows_error_Code_:__d
lea edx, [ebp - 0x20]
push edx
call fcn.060010c0
add esp, 0xc
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 4
lea eax, [ebp - 0x20]
push str.Send_image_info_packet_with_boundary_check_complete_
push eax
mov dword [ebp - 0x20], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x1c], 0x595
call fcn.060010c0
add esp, 8
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 4
mov eax, dword [ebx + 0x68]
lea esi, [ebx + 0xb0]
mov ecx, 5
lea edi, [ebp - 0x34]
mov dword [ebp - 0x38], 0x50474d49
push 0
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 8]
lea edx, [ebp - 0x38]
push ecx
push 0x18
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x6006617
mov dword [ebx + 0x28], 0x32cb
mov dword [ebp - 0x20], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x1c], 0x5a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20]
push str.Write_DM_FLASH_INFO_PACKET__windows_error_Code_:__d__
push ecx
jmp 0x600656b
cmp dword [ebp + 8], 0x18
je 0x6006646
mov dword [ebx + 0x28], 0x32cd
mov dword [ebp - 0x20], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x1c], 0x5a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Write_DM_FLASH_INFO_PACKET_length_is_not_correct__Windows_error_Code_:__d
lea edx, [ebp - 0x20]
jmp 0x600656a
lea eax, [ebp - 0x20]
push str.Send_image_info_packet_complete_
push eax
mov dword [ebp - 0x20], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x1c], 0x5ab
call fcn.060010c0
mov ecx, dword [ebp - 0xc]
add esp, 8
mov al, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4