Function at 0x428210
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x61900c]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
push str.STK500V2:_stk500v2_command_
push 5
push 0
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x341
push 2
mov ebx, edx
mov dword [esp + 0x2c], ecx
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
mov edi, dword [ebp + 8]
add esp, 0x1c
xor esi, esi
test edi, edi
je 0x428296
movzx eax, byte [ebx + esi]
push eax
push str.0x_02x
push 5
push 0
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x343
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
inc esi
add esp, 0x20
cmp esi, edi
jb 0x428261
push edi
push str.___d__n
push 5
push 0
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x344
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
mov esi, dword [esp + 0x30]
add esp, 0x20
xor eax, eax
inc eax
mov edx, ebx
push edi
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.00427550
add esp, 4
mov edx, ebx
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00427a70
add esp, 4
mov dword [esp + 0x14], eax
push str.STK500V2:_stk500v2_command___received_content:__
push 5
push 0
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x34e
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x1c
xor esi, esi
test edi, edi
je 0x428355
nop
movzx eax, byte [ebx + esi]
push eax
push str.0x_02x
push 5
push 0
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x350
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
inc esi
add esp, 0x20
cmp esi, edi
jb 0x428320
push edi
push str.___length__d_n
push 5
push 0
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x351
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
mov esi, dword [esp + 0x34]
add esp, 0x20
test esi, esi
jg 0x428405
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.00427f40
test eax, eax
je 0x4283c6
mov eax, dword [esp + 0x18]
cmp eax, 5
jle 0x4282c8
movzx eax, byte [ebx]
push eax
push str.failed_to_execute_command_0x_02x_n
push 0xfffffffffffffffe
push 0x4f
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x3a3
jmp 0x4285d5
push str.__0_n
push 5
push 0
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x3a9
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0048485e
mov esp, ebp
pop ebp
ret
push esi
push str.___d_n
push 5
push 0
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x355
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x20
cmp esi, 2
jge 0x428476
push str.short_reply_n
push 0xfffffffffffffffe
push 0x4f
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x357
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x1c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0048485e
mov esp, ebp
pop ebp
ret
mov cl, byte [ebx]
cmp cl, 0x51
je 0x4285fd
cmp cl, 0x50
je 0x4285fd
mov al, byte [ebx + 1]
cmp al, 0x80
jb 0x4285a1
cmp al, 0xa0
jae 0x4284f9
movzx ecx, al
mov eax, ecx
sub eax, 0x80
je 0x4284d6
sub eax, 1
je 0x4284cf
sub eax, 1
je 0x4284c8
push ecx
lea eax, [esp + 0x20]
push str.unknown__code_0x_02x
push eax
call fcn.00405360
add esp, 0xc
lea eax, [esp + 0x1c]
jmp 0x4284db
mov eax, str.The__Set_Device_Parameters_have_not_been_executed_in_advance_of_this_command
jmp 0x4284db
mov eax, str.Sampling_of_the_RDY_nBSY_pin_timed_out
jmp 0x4284db
mov eax, str.Command_timed_out
push eax
push 0x5c1404
push 0xffffffffffffffff
push 0x4f
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x38e
jmp 0x4285d5
cmp al, 0xc0
jne 0x428517
push str.command_failed_n
push 0xfffffffffffffffe
push 0x4f
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x392
jmp 0x428579
cmp al, 0xcc
jne 0x42855d
push str.target_clock_speed_error_n
push 0xfffffffffffffffe
push 0x4f
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x394
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x1c
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0048485e
mov esp, ebp
pop ebp
ret
cmp al, 0xc9
jne 0x4285b9
push str.unknown_command_n
push 0xfffffffffffffffe
push 0x4f
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x397
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x1c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0048485e
mov esp, ebp
pop ebp
ret
test al, al
jne 0x4285b9
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0048485e
mov esp, ebp
pop ebp
ret
movzx eax, al
push eax
push str.unknown_status_0x_02x_n
push 0xfffffffffffffffe
push 0x4f
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x399
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0048485e
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp cl, 0x51
setne al
mov al, byte [eax + ebx + 1]
test al, al
je 0x4283f1
movzx eax, al
sub eax, 1
je 0x428638
sub eax, 1
je 0x428631
sub eax, 1
je 0x42862a
mov eax, str.Unknown
jmp 0x42863d
mov eax, str.Timeout
jmp 0x42863d
mov eax, str.Collision
jmp 0x42863d
mov eax, str.Failed
push eax
cmp cl, 0x51
mov edx, str.CMD_XPROG
mov eax, str.CMD_XPROG_SETMODE
cmovne eax, edx
push eax
push str._s:__s_n
push 0xfffffffffffffffe
push 0x4f
push str.stk500v2_command
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x370
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
mov ecx, dword [esp + 0x60]
add esp, 0x24
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048485e
mov esp, ebp
pop ebp
ret