Function at 0x455640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84c
mov eax, dword [0x61900c]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push esi
mov esi, edx
mov edx, 0x20
push edi
mov edi, ecx
mov dword [esp + 0x18], esi
mov ecx, esi
call fcn.00410c00
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x4556ea
push dword [esi]
push str.cannot_obtain_flash_memory_for__s
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x4f0
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x20
push 0x4bd460
push 0xfffffffffffffffe
push ebx
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x4f0
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 + 0x848]
xor ecx, esp
call fcn.0048485e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x800
jle 0x45573d
push ecx
push dword [esi]
push str._ss_flash_page_size__d_is_too_large__enlarge_spc___and_recompile_
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x4f4
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
push 0x4bd460
push 0xfffffffffffffffe
push 0
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x4f4
jmp 0x4556bf
test ecx, ecx
jg 0x45578c
push ecx
push dword [esi]
push str.cannot_deal_with__ss_flash_page_size_of__d
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x4f7
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
push 0x4bd460
push 0xfffffffffffffffe
push 0
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x4f7
jmp 0x4556bf
lea eax, [ecx - 1]
test ecx, eax
je 0x4557de
push ecx
push dword [esi]
push str.cannot_deal_with__ss_flash_page_size__d_as_not_a_power_of_2
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x4fb
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
push 0x4bd460
push 0xfffffffffffffffe
push 0
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x4fb
jmp 0x4556bf
mov eax, dword [edi + 0x34c]
mov esi, dword [ebx + 0x10]
mov edx, dword [eax + 0x40]
cmp edx, esi
je 0x455841
mov ecx, dword [esp + 0x18]
push esi
push dword [ecx]
push edx
push dword [eax + 0x30]
push str.connected__ss_flash_size_0x_04x_differs_from__p__ss__0x_04x___use_correct__p_..._or_override_with__F
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x501
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x2c
push 0x4bd460
push 0xfffffffffffffffe
push 0
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x501
jmp 0x4556bf
movsx edx, word [eax + 0x44]
cmp edx, ecx
je 0x45589c
push ecx
mov ecx, dword [esp + 0x1c]
push dword [ecx]
push edx
push dword [eax + 0x30]
push str.connected__ss_flash_page_size__d_differs_from__p__ss___d___use_correct__p_..._or_override_with__F
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x505
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x2c
push 0x4bd460
push 0xfffffffffffffffe
push 0
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x505
jmp 0x4556bf
mov esi, dword [esp + 0x18]
movzx ecx, byte [eax + 0x62]
mov edx, dword [esi + 0x20]
cmp ecx, edx
je 0x4558fa
push edx
push dword [esi]
push ecx
push dword [eax + 0x30]
push str.connected__ss_number__d_of_interrupts_differs_from__p__ss___d___use_correct__p_..._or_override_with__F
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x509
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x2c
push 0x4bd460
push 0xfffffffffffffffe
push 0
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x509
jmp 0x4556bf
mov dword [eax + 0xa0], 0
mov eax, dword [edi + 0x34c]
mov ecx, dword [ebx + 0x10]
dec ecx
mov dword [eax + 0xa4], ecx
mov eax, dword [edi + 0x34c]
mov dword [eax + 0x98], 0
mov eax, dword [edi + 0x34c]
mov dword [eax + 0x9c], 0
mov eax, dword [edi + 0x34c]
mov dword [eax + 0x84], 0
mov eax, dword [edi + 0x34c]
mov dword [eax + 0x80], 0xffffffff
mov eax, dword [edi + 0x34c]
mov byte [eax + 0x79], 0
mov ecx, dword [esi + 0x18]
test ecx, 0x1000
jne 0x456a99
cmp dword [ebx + 0x10], 0x200
jl 0x456a99
mov eax, dword [edi + 0x34c]
shr ecx, 4
not ecx
and ecx, 1
mov dword [eax + 0x94], ecx
mov esi, dword [edi + 0x34c]
mov ecx, dword [esi + 0x1f0]
test ecx, ecx
je 0x455a6d
mov ebx, dword [esi + 0x94]
test ebx, ebx
je 0x455a09
movsx ebx, word [esi + 0x44]
mov eax, ecx
cdq
idiv ebx
test edx, edx
je 0x455a03
push ebx
push ecx
push str._xbootsize_d_size_not_a_multiple_of_flash_page_size__d
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x51f
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
push 0x4bd460
push 0xfffffffffffffffe
push 0
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x51f
jmp 0x4556bf
mov ebx, dword [esi + 0x94]
cmp ecx, 0x40
jl 0x455b20
mov eax, dword [esi + 0x40]
cdq
and edx, 3
add eax, edx
mov edx, 0x2000
sar eax, 2
cmp eax, 0x2000
cmovg eax, edx
cmp ecx, eax
jg 0x455b20
test ebx, ebx
mov ebx, dword [esp + 0xc]
je 0x455aeb
mov eax, dword [ebx + 0x10]
sub eax, ecx
mov dword [esi + 0x98], eax
mov eax, dword [edi + 0x34c]
mov ecx, dword [ebx + 0x10]
dec ecx
mov dword [eax + 0x9c], ecx
mov ecx, dword [edi + 0x34c]
mov eax, dword [ecx + 0x98]
dec eax
mov dword [ecx + 0xa4], eax
mov ecx, dword [edi + 0x34c]
cmp dword [ecx + 0x94], 0
je 0x455c32
mov dl, byte [ecx + 0x62]
test dl, dl
js 0x455b83
mov esi, dword [ecx + 0x1f4]
movzx edx, dl
cmp esi, 0xffffffff
jl 0x455aa1
cmp esi, edx
jle 0x455b83
push edx
push esi
push str.unknown_interrupt_vector__d_for_vector_bootloader____should_be_in___1___d_
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x532
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
push 0x4bd460
push 0xfffffffffffffffe
push 0
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x532
jmp 0x4556bf
mov dword [esi + 0x98], 0
mov ecx, dword [edi + 0x34c]
mov eax, dword [ecx + 0x1f0]
dec eax
mov dword [ecx + 0x9c], eax
mov ecx, dword [edi + 0x34c]
mov eax, dword [ecx + 0x9c]
inc eax
mov dword [ecx + 0xa0], eax
jmp 0x455a6d
mov eax, dword [esi + 0x40]
cdq
and edx, 3
add eax, edx
mov edx, 0x2000
sar eax, 2
cmp eax, 0x2000
cmovg eax, edx
push eax
push ecx
push str.implausible__xbootsize_d__should_be_in__64___d_
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x522
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
push 0x4bd460
push 0xfffffffffffffffe
push 0
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x522
jmp 0x4556bf
cmp dword [ecx + 0x1f4], 0
jle 0x455bae
mov dword [ecx + 0x84], 1
mov ecx, dword [edi + 0x34c]
mov eax, dword [ecx + 0x1f4]
mov dword [ecx + 0x80], eax
mov ecx, dword [edi + 0x34c]
mov dl, byte [ecx + 0x20]
test dl, dl
je 0x455c8a
test byte [ecx + 0x21], 4
jne 0x455c8a
mov eax, dword [ecx + 0x9c]
cmp eax, dword [ecx + 0x98]
jg 0x455c8a
cmp dword [ecx + 0x94], 0
mov edx, 0x4bd483
mov eax, str._xvectornum_num__or
cmove eax, edx
push eax
push str.please_specify__xbootsize_num__and__if_needed___s_xeepromrw
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x53e
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x20
push 0x4bd460
push 0xfffffffffffffffe
push 0
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x53e
jmp 0x4556bf
cmp dword [ecx + 0x1f4], 0xffffffff
je 0x455bae
push dword [ecx + 0x30]
push str.UPDI_part__s_does_not_support_vector_bootloaders
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x538
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x20
push 0x4bd460
push 0xfffffffffffffffe
push 0
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x538
jmp 0x4556bf
cmp dword [ecx + 0x94], 0
mov eax, 0xffff
mov dword [esp + 0x3c], 0x9508
je 0x4561bb
test dl, dl
je 0x455cb2
test byte [ecx + 0x21], 4
je 0x4561bb
mov eax, dword [ebx + 0x10]
mov ecx, edi
mov edx, dword [esp + 0x18]
sub eax, 6
push 0x46
push 6
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00457160
add esp, 0x10
test eax, eax
jne 0x456aa8
mov dh, byte [esp + 0x51]
lea ecx, [esp + 0x52]
mov bh, byte [esp + 0x50]
mov byte [esp + 0x13], dh
call fcn.004530b0
mov bl, byte [esp + 0x54]
lea ecx, [esp + 0x54]
mov dl, byte [esp + 0x55]
movzx esi, ax
mov dword [esp + 0x3c], esi
call fcn.004530b0
movzx eax, ax
mov dword [esp + 0x38], eax
lea eax, [edx - 0x3a]
cmp al, 0x2d
ja 0x455ef9
mov ecx, esi
call fcn.00452f30
mov ecx, 0x9508
test eax, eax
jne 0x455d30
cmp si, cx
jne 0x455ef9
mov eax, dword [edi + 0x34c]
movzx ecx, dl
mov dword [eax + 0x88], ecx
mov cl, bl
mov eax, dword [edi + 0x34c]
shr cl, 6
and cl, 1
mov byte [eax + 0x79], cl
mov ecx, dword [edi + 0x34c]
cmp dword [ecx + 0x84], 0
jne 0x455d6e
movzx eax, bl
shr eax, 2
and eax, 3
mov dword [ecx + 0x84], eax
cmp dl, 0x3d
jb 0x455f15
mov eax, dword [esp + 0xc]
movzx esi, bh
imul esi, dword [eax + 0x14]
lea eax, [esi - 0x40]
cmp eax, 0x7c0
ja 0x455f15
mov ebx, dword [edi + 0x34c]
cmp dh, byte [ebx + 0x62]
ja 0x455f15
mov edx, dword [ebx + 0x40]
mov ecx, dword [esp + 0x3c]
call fcn.00452f80
mov ecx, 0x9508
sub eax, 4
cmp word [esp + 0x3c], cx
je 0x455dcf
mov ecx, esi
neg ecx
cmp eax, ecx
jl 0x455f15
cmp eax, 0xfffffffa
jge 0x455f15
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 0x1f0]
mov eax, dword [edx + 0x10]
sub eax, esi
test ecx, ecx
je 0x455e50
cmp eax, dword [ebx + 0x98]
je 0x455e79
push ecx
push esi
push str.urboot_bootloader_size__d_explicitly_overwritten_by__xbootsize_d_n
push 0xffffffffffffffff
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x561
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
cmp dword [0x634724], 0
jne 0x455e79
mov eax, dword [edi + 0x34c]
cmp dword [eax + 0x84], 0
je 0x455e79
push str.this_can_lead_to_bricking_the_vector_bootloader_n
push 0xffffffffffffffff
push 0x50
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x563
jmp 0x4556bf
mov dword [ebx + 0x98], eax
mov eax, dword [edi + 0x34c]
mov ecx, dword [edx + 0x10]
dec ecx
mov dword [eax + 0x9c], ecx
mov ecx, dword [edi + 0x34c]
mov eax, dword [ecx + 0x98]
dec eax
mov dword [ecx + 0xa4], eax
mov ecx, dword [edi + 0x34c]
movzx eax, byte [esp + 0x13]
mov edx, dword [ecx + 0x1f4]
cmp edx, 0xffffffff
je 0x455ef1
cmp dword [ecx + 0x80], eax
je 0x455f15
push edx
push eax
push str.urboot_vector_number__d_overwritten_by__xvectornum_d_n
push 0xffffffffffffffff
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x570
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
push str.the_application_might_not_start_correctly_n
push 0xffffffffffffffff
push 0x50
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x571
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x1c
jmp 0x455f15
mov dword [ecx + 0x80], eax
jmp 0x455f15
cmp dl, 0xff
je 0x455f15
movzx ecx, dl
movzx eax, bl
shl ecx, 8
add ecx, eax
mov eax, dword [edi + 0x34c]
mov dword [eax + 0x8c], ecx
mov ecx, dword [edi + 0x34c]
mov eax, dword [ecx + 0x9c]
cmp eax, dword [ecx + 0x98]
jg 0x456388
cmp dword [ecx + 0x84], 0
je 0x456388
mov esi, dword [ecx + 0x40]
xor eax, eax
mov edx, dword [esp + 0x18]
cmp esi, 0x2000
push 0x46
setg al
mov ecx, edi
push 4
push 0
lea eax, [eax*2 + 2]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x5c]
push eax
call fcn.00457160
add esp, 0x10
test eax, eax
jne 0x456aa8
lea ecx, [esp + 0x50]
call fcn.004530b0
movzx ebx, ax
mov ecx, ebx
call fcn.00452f30
test eax, eax
je 0x455ffe
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0x10]
lea eax, [esi - 1]
test esi, eax
jne 0x45603f
mov eax, dword [edi + 0x34c]
mov ecx, ebx
mov edx, dword [eax + 0x40]
call fcn.00452f80
mov edx, eax
test edx, edx
jns 0x455fb7
add edx, esi
js 0x455fb3
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x14]
dec eax
test edx, eax
jne 0x45603f
sub esi, edx
cmp esi, 0x800
mov esi, dword [esp + 0xc]
jg 0x456043
mov eax, dword [edi + 0x34c]
mov dword [eax + 0x98], edx
mov eax, dword [edi + 0x34c]
mov ecx, dword [esi + 0x10]
dec ecx
mov dword [eax + 0x9c], ecx
lea ecx, [edx - 1]
mov eax, dword [edi + 0x34c]
mov dword [eax + 0xa4], ecx
jmp 0x456043
cmp esi, 0x2000
jle 0x45603f
mov ecx, ebx
call fcn.00453070
test eax, eax
je 0x45603f
lea ecx, [esp + 0x50]
call fcn.00453090
mov ecx, eax
call fcn.00453010
mov esi, dword [esp + 0xc]
mov edx, eax
mov eax, dword [esi + 0x10]
cmp edx, eax
jge 0x456043
mov ecx, dword [esi + 0x14]
dec ecx
test edx, ecx
jne 0x456043
sub eax, edx
cmp eax, 0x800
jmp 0x455fcf
mov esi, dword [esp + 0xc]
mov eax, dword [edi + 0x34c]
mov ecx, dword [eax + 0x98]
cmp dword [eax + 0x9c], ecx
jle 0x456388
cmp dword [eax + 0x80], 0
jg 0x4561b7
mov ebx, dword [esi + 0x10]
sub ebx, ecx
mov dword [esp + 0x34], 0
mov ecx, dword [esi + 0x14]
mov eax, ebx
cdq
idiv ecx
mov dword [esp + 0x1c], 0
mov edx, eax
mov dword [esp + 0x24], 0
xor eax, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
test edx, edx
jle 0x456388
mov edx, dword [esp + 0x18]
push 0x46
push ecx
imul ecx, eax
mov eax, dword [edi + 0x34c]
add ecx, dword [eax + 0x98]
lea eax, [esp + 0x58]
push ecx
push eax
mov ecx, edi
call fcn.00457160
add esp, 0x10
test eax, eax
jne 0x456aa8
mov ecx, dword [esi + 0x14]
mov eax, ecx
cdq
lea esi, [esp + 0x50]
sub eax, edx
mov dword [esp + 0x48], esi
sar eax, 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
test eax, eax
jle 0x456371
mov ecx, esi
call fcn.004530b0
cmp dword [esp + 0x1c], 0
movzx esi, ax
je 0x45614d
mov ecx, esi
mov dword [esp + 0x1c], 0
shl ecx, 0x10
or ecx, dword [esp + 0x24]
call fcn.00453010
mov dword [esp + 0x24], eax
cdq
idiv dword [esp + 0x14]
test edx, edx
jne 0x456140
mov esi, dword [edi + 0x34c]
mov eax, dword [esp + 0x24]
movzx ecx, byte [esi + 0x62]
imul ecx, dword [esp + 0x14]
cmp eax, ecx
jle 0x4561ac
mov dword [esp + 0x24], 0
jmp 0x456347
cmp dword [esp + 0x34], 0
je 0x456161
mov dword [esp + 0x34], 0
jmp 0x456347
mov ecx, esi
call fcn.00452f30
test eax, eax
je 0x456310
cmp ebx, 4
jle 0x456310
mov eax, dword [edi + 0x34c]
mov ecx, esi
mov edx, dword [eax + 0x40]
call fcn.00452f80
cmp eax, ebx
jle 0x456347
mov esi, dword [edi + 0x34c]
movzx ecx, byte [esi + 0x62]
imul ecx, dword [esp + 0x14]
add ecx, ebx
cmp eax, ecx
jg 0x456347
sub eax, ebx
cdq
idiv dword [esp + 0x14]
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x38]
push dword [esp + 0x3c]
mov edx, dword [edi + 0x34c]
mov ecx, edi
push eax
call fcn.00454920
mov eax, dword [edi + 0x34c]
xor ecx, ecx
add esp, 8
mov byte [eax + 0x1c3], 0xff
mov esi, dword [edi + 0x34c]
mov eax, dword [esi + 0x214]
test eax, eax
sete cl
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x456602
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
mov ebx, dword [esi + 0xa4]
mov edx, dword [eax + 0x10]
call fcn.00452ef0
cmp ebx, eax
jl 0x456602
mov edx, dword [esi + 0x40]
mov ecx, 1
call fcn.00452ef0
cmp dword [esi + 0x1c4], 0
mov dword [esp + 0x28], eax
jne 0x4562a1
cmp dword [esi + 0x1c8], 0
je 0x45624c
mov al, byte [esi + 0x31e]
test al, al
je 0x45624c
cmp al, 0x45
jne 0x4562a1
cmp dword [esi + 0x1d4], 0
jne 0x4562a1
cmp dword [esi + 0x1d8], 0
jne 0x4562a1
cmp dword [esi + 0x1dc], 0
jne 0x4562a1
cmp dword [esi + 0x1e0], 0
jne 0x4562a1
cmp dword [esi + 0x1e4], 0
jne 0x4562a1
cmp dword [esi + 0x1e8], 0
jne 0x4562a1
cmp dword [esi + 0x1ec], 0
jne 0x4562a1
cmp dword [esi + 0x1cc], 0
jne 0x4562a1
cmp dword [esi + 0x1d0], 0
je 0x456602
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x50]
mov edx, dword [esp + 0x18]
sub ebx, esi
push 0x46
push esi
inc ebx
mov ecx, edi
push ebx
push eax
call fcn.00457160
add esp, 0x10
test eax, eax
jne 0x456aa8
mov bl, byte [esp + esi + 0x4f]
cmp bl, 0xff
je 0x456602
mov eax, dword [edi + 0x34c]
mov edx, dword [eax + 0x40]
lea eax, [esp + esi + 0x4b]
mov dword [esp + 0x28], edx
cmp edx, 0x10000
jle 0x456461
mov ecx, eax
call fcn.00453090
lea ecx, [esp + esi + 0x47]
mov dword [esp + 0x1c], eax
call fcn.00453090
mov edx, dword [esp + 0x28]
mov esi, eax
jmp 0x45647d
mov ecx, esi
call fcn.00453070
test eax, eax
je 0x45632e
cmp ebx, 6
jle 0x45632e
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 1
jmp 0x456347
mov ecx, esi
call fcn.00453030
mov esi, dword [esp + 0x34]
test eax, eax
mov eax, 1
cmovne esi, eax
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x44]
sub ebx, 2
mov esi, dword [esp + 0x48]
inc eax
add esi, 2
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], esi
cmp eax, dword [esp + 0x40]
jl 0x4560f5
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
jmp 0x456375
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x28]
jl 0x4560a1
mov ecx, dword [edi + 0x34c]
mov eax, dword [ecx + 0x9c]
cmp eax, dword [ecx + 0x98]
jg 0x4563a7
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.00455080
mov ecx, dword [edi + 0x34c]
mov eax, dword [ecx + 0x9c]
cmp eax, dword [ecx + 0x98]
jg 0x4561b7
mov ecx, dword [ecx + 0x8c]
test ecx, ecx
je 0x456419
movzx eax, cl
push eax
sar ecx, 8
push ecx
push str.bootloader_might_be_optiboot__d._d__Please_use__xbootsize_num__n
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x5d1
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
push 0x4bd460
push 0xfffffffffffffffe
push 0
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x5d1
jmp 0x4556bf
push str.unknown_bootloader_..._please_specify__xbootsize_num__n
push 0xfffffffffffffffe
push 0x4f
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x5d2
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x1c
push 0x4bd460
push 0xfffffffffffffffe
push 0
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x5d2
jmp 0x4556bf
lea ecx, [esp + esi + 0x4d]
call fcn.004530b0
movzx eax, ax
lea ecx, [esp + esi + 0x4b]
mov dword [esp + 0x1c], eax
call fcn.004530b0
movzx esi, ax
mov dword [esp + 0x14], 0
test esi, esi
jle 0x456602
movzx eax, bl
mov ecx, eax
mov dword [esp + 0x20], eax
call fcn.00452ef0
mov edx, dword [edi + 0x34c]
mov ecx, dword [edx + 0xa4]
sub ecx, dword [esp + 0x1c]
sub ecx, eax
inc ecx
cmp esi, ecx
jne 0x456602
mov ecx, dword [esp + 0x1c]
mov dword [edx + 0xb4], esi
mov eax, dword [edi + 0x34c]
mov dword [eax + 0xb8], ecx
mov eax, dword [edi + 0x34c]
mov byte [eax + 0x1c3], bl
test bl, bl
jne 0x4564e9
mov dword [esp + 0x14], 1
jmp 0x456602
mov al, byte [esp + 0x52]
lea ecx, [esp + 0x50]
mov dl, byte [esp + 0x55]
mov dh, byte [esp + 0x54]
mov bh, byte [esp + 0x53]
mov byte [esp + 0x13], al
call fcn.004530b0
movzx esi, ax
mov ecx, 0xbb6
lea eax, [esi - 1]
cmp ax, cx
ja 0x456602
mov cl, byte [esp + 0x13]
lea eax, [ecx - 1]
cmp al, 0xb
ja 0x456602
mov al, bh
dec al
cmp al, 0x1e
ja 0x456602
cmp dh, 0x17
ja 0x456602
cmp dl, 0x3b
ja 0x456602
mov eax, dword [edi + 0x34c]
mov dword [esp + 0x14], 1
mov word [eax + 0x1ba], si
mov eax, dword [edi + 0x34c]
mov byte [eax + 0x1bc], cl
mov eax, dword [edi + 0x34c]
mov byte [eax + 0x1bd], bh
mov eax, dword [edi + 0x34c]
mov byte [eax + 0x1be], dh
mov eax, dword [edi + 0x34c]
mov byte [eax + 0x1bf], dl
cmp bl, 1
jbe 0x456602
mov esi, dword [edi + 0x34c]
mov eax, dword [esp + 0x20]
mov ecx, eax
push 0x46
push eax
mov edx, dword [esi + 0x40]
call fcn.00452ef0
mov ecx, dword [esi + 0xa4]
mov edx, dword [esp + 0x20]
sub ecx, eax
inc ecx
lea eax, [esp + 0x58]
push ecx
push eax
mov ecx, edi
call fcn.00457160
add esp, 0x10
test eax, eax
js 0x456aa8
cmp bl, 0xfe
lea eax, [esp + 0x50]
mov ebx, 0xfe
cmovb ebx, dword [esp + 0x20]
push ebx
push eax
mov eax, dword [edi + 0x34c]
add eax, 0xbc
push eax
call fcn.004885b0
mov eax, dword [edi + 0x34c]
add esp, 0xc
mov byte [ebx + eax + 0xbb], 0
mov edx, dword [edi + 0x34c]
mov esi, 1
mov eax, dword [edx + 0x1c4]
lea ebx, [edx + 0x1c8]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4566a7
xor ecx, ecx
mov dword [esp + 0xc], esi
cmp dword [edx + 0x1ec], ecx
setne cl
cmp dword [edx + 0x1e8], eax
setne al
add ecx, eax
xor eax, eax
cmp dword [edx + 0x1e4], eax
setne al
add ecx, eax
xor eax, eax
cmp dword [edx + 0x1e0], eax
setne al
add ecx, eax
xor eax, eax
cmp dword [edx + 0x1dc], eax
setne al
add ecx, eax
xor eax, eax
cmp dword [edx + 0x1d8], eax
setne al
add ecx, eax
xor eax, eax
cmp dword [edx + 0x1d4], eax
setne al
add ecx, eax
xor eax, eax
cmp dword [edx + 0x1d0], eax
setne al
add ecx, eax
xor eax, eax
cmp dword [edx + 0x1cc], eax
setne al
add ecx, eax
xor eax, eax
cmp dword [ebx], eax
setne al
add ecx, eax
cmp ecx, esi
je 0x4566af
mov dword [esp + 0xc], 0
cmp dword [ebx], 0
jne 0x4566bb
cmp dword [esp + 0x28], 0
je 0x45671b
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.00457660
add esp, 4
cmp eax, 0xffffffff
je 0x4556d2
push dword [esp + 0x2c]
mov eax, dword [edi + 0x34c]
push dword [esp + 0x2c]
mov eax, dword [eax + 0xb0]
add eax, eax
push eax
push str._0lx
push 0
push 0x40
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x621
push 1
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x28
xor esi, esi
mov eax, dword [esp + 0x14]
mov ebx, 0x4bd483
test eax, eax
je 0x4568b9
mov ecx, dword [edi + 0x34c]
cmp dword [ecx + 0x1cc], 0
jne 0x456744
cmp dword [ecx + 0x1c4], 0
je 0x45679b
movsx eax, byte [ecx + 0x1bf]
push eax
movsx eax, byte [ecx + 0x1be]
push eax
movsx eax, byte [ecx + 0x1bd]
push eax
movsx eax, byte [ecx + 0x1bc]
push eax
movsx eax, word [ecx + 0x1ba]
push eax
lea eax, [esi + str.__04d__02d__02d__02d._02d]
push eax
push 0
push 0x40
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x625
push 1
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x30
xor esi, esi
mov eax, dword [edi + 0x34c]
cmp dword [eax + 0x1d0], 0
jne 0x4567b3
cmp dword [eax + 0x1c4], 0
je 0x4567f0
add eax, 0xbc
mov ecx, ebx
cmp byte [eax], 0
cmovne ecx, eax
lea eax, [esi + 0x4bd47c]
push ecx
push eax
push 0
push 0x40
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x629
push 1
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x20
xor esi, esi
mov eax, dword [edi + 0x34c]
cmp dword [eax + 0x1d4], 0
jne 0x456808
cmp dword [eax + 0x1c4], 0
je 0x456858
cmp dword [esp + 0xc], 0
jne 0x45681d
cmp byte [eax + 0xbc], 0
mov ecx, str.application
je 0x456822
mov ecx, 0x4bd483
push dword [eax + 0xb4]
lea eax, [esi + str.__s_d]
push ecx
push eax
push 0
push 0x40
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x62d
push 1
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
xor esi, esi
mov eax, dword [edi + 0x34c]
cmp dword [eax + 0x1d8], 0
jne 0x456870
cmp dword [eax + 0x1c4], 0
je 0x4568b5
push dword [eax + 0xb8]
cmp dword [esp + 0x10], 0
mov ecx, str.store
mov eax, ebx
cmove eax, ecx
push eax
lea eax, [esi + str.__s_d]
push eax
push 0
push 0x40
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x631
push 1
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
xor esi, esi
mov eax, dword [esp + 0x14]
mov edx, dword [edi + 0x34c]
cmp dword [edx + 0x1dc], 0
jne 0x4568d1
cmp dword [edx + 0x1c4], 0
je 0x456928
test eax, eax
je 0x4568e6
movzx ecx, byte [edx + 0x1c3]
mov edx, dword [edx + 0x40]
call fcn.00452ef0
jmp 0x4568e8
xor eax, eax
cmp dword [esp + 0xc], 0
mov ecx, str.meta
push eax
mov eax, ebx
cmove eax, ecx
push eax
lea eax, [esi + str.__s_d]
push eax
push 0
push 0x40
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x637
push 1
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
xor esi, esi
mov ecx, dword [edi + 0x34c]
cmp dword [ecx + 0x1e0], 0
jne 0x456940
cmp dword [ecx + 0x1c4], 0
je 0x456995
mov eax, dword [ecx + 0x9c]
mov ecx, dword [ecx + 0x98]
cmp eax, ecx
jle 0x456955
sub eax, ecx
inc eax
jmp 0x456957
xor eax, eax
cmp dword [esp + 0xc], 0
push eax
mov eax, str.boot
cmove ebx, eax
lea eax, [esi + str.__s_d]
push ebx
push eax
push 0
push 0x40
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x63b
push 1
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
xor esi, esi
mov ecx, dword [edi + 0x34c]
cmp dword [ecx + 0x1e4], 0
jne 0x4569ad
cmp dword [ecx + 0x1c4], 0
je 0x4569e7
xor eax, eax
cmp byte [ecx], 0x20
sete al
add eax, ecx
push eax
lea eax, [esi + 0x4bd47c]
push eax
push 0
push 0x40
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x63f
push 1
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x20
xor esi, esi
mov edx, dword [edi + 0x34c]
cmp dword [edx + 0x1e8], 0
jne 0x4569ff
cmp dword [edx + 0x1c4], 0
je 0x456a4d
cmp dword [edx + 0x84], 0
je 0x456a13
mov edx, dword [edx + 0x80]
and edx, 0x7f
jmp 0x456a15
xor edx, edx
mov ecx, edi
call fcn.00454b30
push eax
push edx
lea eax, [esi + str._vector__d___s_]
push eax
push 0
push 0x40
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x644
push 1
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x24
xor esi, esi
mov eax, dword [edi + 0x34c]
cmp dword [eax + 0x1c4], 0
jne 0x456a65
cmp dword [eax + 0x1ec], 0
je 0x456a95
push dword [eax + 0x30]
lea eax, [esi + 0x4bd47c]
push eax
push 0
push 0x40
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x648
push 1
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x20
test esi, esi
je 0x456abd
mov eax, dword [edi + 0x34c]
mov byte [eax + 0x78], 1
mov eax, 3
mov ecx, dword [esp + 0x854]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048485e
mov esp, ebp
pop ebp
ret
push 0x4bd460
push 0
push 0x40
push str.ur_initstruct
push str.D:_a_avrdude_avrdude_srcurclock.c
push 0x64a
push 1
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x1c
push 0
call fcn.0048c020
int3