Function at 0x600fff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x601813b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
mov dl, byte [0x6020c9c]
mov eax, dword [str.FACTORYM]
mov ecx, dword [0x6020c98]
push ebx
push esi
mov byte [ebp - 0x30], dl
mov dl, byte [0x6020c90]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [str.MYROTCAF]
mov dword [ebp - 0x34], ecx
mov ecx, dword [0x6020c8c]
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x44], dl
mov dword [ebp - 0x4c], eax
mov eax, dword [str.READY]
mov dword [ebp - 0x48], ecx
mov cx, word [0x60209d8]
push edi
lea edx, [ebp - 0x18]
xor ebx, ebx
mov esi, str.E:_svneboot_dll_trunkeboot.cpp
push str._COM:__d_Try_to_entry_Factory_Mode_by_USB
push edx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], bl
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x21], bl
mov dword [ebp - 0x40], eax
mov word [ebp - 0x3c], cx
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], bl
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x38b
call fcn.060010c0
add esp, 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x38c
push edi
push str.Symbolic_name:__s
push eax
call fcn.060010c0
add esp, 0xc
mov dword [ebp - 0x18], esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push esi
push str.Comm_Baudrate:__d
push ecx
mov dword [ebp - 0x14], 0x38d
call fcn.060010c0
add esp, 0xc
lea edx, [ebp + 8]
push esi
push edi
push edx
call fcn.0600e900
add esp, 0xc
cmp eax, 0x2710
mov dword [ebp + 0xc], eax
je 0x6010173
push 0x6022228
push ebx
push 0x392
push str.E:_svneboot_dll_trunkeboot.cpp
lea ecx, [ebp - 0xc0]
call fcn.06013920
mov ecx, dword [0x6022278]
push str.SP_BootAsFactoryNormalMode_set_boot_mode_fail__
push ecx
push eax
mov byte [ebp - 4], 1
call fcn.060139a0
add esp, 0xc
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], bl
call fcn.06013990
mov dl, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0xa0]
mov byte [ebp - 0xa0], dl
call fcn.06002d90
lea eax, [ebp - 0xa4]
push 0x6019338
push eax
mov dword [ebp - 0xa4], 0x601916c
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push ecx
push esi
lea edx, [ebp - 0x7c]
push 0x960
lea eax, [ebp - 0x20]
push edx
push eax
lea ecx, [ebp - 0x40]
push 5
push ecx
call fcn.06010660
add esp, 0x1c
cmp eax, ebx
jne 0x60101f1
push edi
lea edx, [ebp - 0x18]
push str._COM:__s___Read_Ready_Pattern_ACK_Error__
push edx
mov dword [ebp + 0xc], 0x2ee0
mov dword [ebp - 0x18], str.E:_svneboot_dll_trunkeboot.cpp
mov dword [ebp - 0x14], 0x39a
call fcn.060010c0
mov al, byte [ebp + 0xb]
add esp, 0xc
lea ecx, [ebp - 0x8c]
mov byte [ebp - 0x8c], al
push ebx
call fcn.06002d90
lea ecx, [ebp - 0x90]
push 0x6019338
push ecx
mov dword [ebp - 0x90], 0x601916c
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x18]
push edx
push str.Send__s_to_target
push eax
mov dword [ebp - 0x18], str.E:_svneboot_dll_trunkeboot.cpp
mov dword [ebp - 0x14], 0x39e
call fcn.060010c0
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x38]
push ebx
push ecx
push 8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x60102cf
cmp dword [ebp - 0x2c], 8
jne 0x60102cf
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xac]
push ecx
push esi
push 0x960
lea eax, [ebp - 0x28]
push edx
push eax
lea ecx, [ebp - 0x4c]
push 8
push ecx
call fcn.06010660
add esp, 0x1c
cmp eax, ebx
jne 0x60102ad
push edi
lea edx, [ebp - 0x18]
push str._COM:__s___Read_FACTORY_ACK_Error__
push edx
mov dword [ebp + 0xc], 0x2ee8
mov dword [ebp - 0x18], str.E:_svneboot_dll_trunkeboot.cpp
mov dword [ebp - 0x14], 0x3aa
call fcn.060010c0
mov al, byte [ebp + 0xb]
add esp, 0xc
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x5c], al
push 0x6019338
push ecx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x60], 0x601916c
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x2710
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea eax, [ebp - 0x18]
push str._COM:__s___Could_not_write_FACTORYM__to_target_
push eax
mov dword [ebp + 0xc], 0x2ee7
mov dword [ebp - 0x18], str.E:_svneboot_dll_trunkeboot.cpp
mov dword [ebp - 0x14], 0x3a2
call fcn.060010c0
mov cl, byte [ebp + 0xb]
add esp, 0xc
lea edx, [ebp - 0x74]
mov byte [ebp - 0x70], cl
push 0x6019338
push edx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x74], 0x601916c
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x601032a
ret