Function at 0x4145b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push esi
push edi
test eax, eax
je 0x414be2
push eax
call fcn.0049f1d2
mov ebx, eax
add esp, 4
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x414be2
mov edi, ebx
lea ecx, [edi + 1]
jmp 0x4145f0
mov al, byte [edi]
inc edi
test al, al
jne 0x4145f0
sub edi, ecx
mov eax, ebx
mov cl, byte [ebx]
mov dword [ebp - 0x18], edi
test cl, cl
je 0x414614
cmp cl, 0x2f
jne 0x41460c
mov byte [eax], 0x5c
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x414604
cmp dword [0x5430c0], 3
jne 0x4147b4
cmp word [0x54365c], 0
jne 0x414641
cmp byte [0x54364c], 0
jne 0x414641
cmp byte [0x54364b], 0
je 0x4147b4
cmp byte [0x543644], 0
jne 0x4147b4
cmp byte [0x543645], 0
jne 0x4147b4
cmp byte [0x543652], 0
jne 0x4147b4
mov cx, word [0x54363a]
mov al, cl
and al, 7
cmp al, 7
je 0x4147b4
mov al, cl
and al, 0x23
cmp al, 0x23
je 0x4147b4
mov eax, 0x1c0
and cx, ax
cmp cx, ax
je 0x4147b4
cmp byte [0x5432e0], 0
jne 0x4147b4
cmp byte [0x54364e], 0
jne 0x4147b4
mov eax, dword [0x4fa950]
or eax, dword [0x4fa954]
je 0x4147b4
mov eax, dword [ebp + 0xc]
mov al, byte [eax + 3]
test al, al
jne 0x4146de
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + 4], al
jne 0x4146de
cmp byte [ecx + 2], al
je 0x4147b7
push 1
mov esi, str.linux
test al, al
mov ecx, str.append
mov edx, esi
push str.persistent_file_cdrom_preseed
cmove edx, ecx
mov ecx, ebx
push str.file_cdrom_preseed
call fcn.004217b0
add esp, 0xc
test eax, eax
je 0x414752
push str.__Added_persistent_kernel_option
call fcn.004407e0
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ebp - 4], 1
cmp byte [ecx + 3], 0
je 0x4147b7
push 1
push 0x4ce59a
push str.maybe_ubiquity
mov edx, esi
mov ecx, ebx
call fcn.004217b0
add esp, 0xc
test eax, eax
je 0x4147b4
push str.__Removed_maybe_ubiquity_kernel_option
call fcn.004407e0
jmp 0x4147b1
push 1
push str.persistent_layerfs_pathminimal.standard.live.squashfs
push str.layerfs_pathminimal.standard.live.squashfs
mov edx, esi
mov ecx, ebx
call fcn.004217b0
add esp, 0xc
test eax, eax
je 0x414775
push str.__Added_persistent_kernel_option
jmp 0x4147a5
mov eax, dword [ebp + 0xc]
mov ecx, ebx
push 1
push str.bootlive_persistence
push str.bootlive
cmp byte [eax + 3], 0
mov eax, str.append
cmove esi, eax
mov edx, esi
call fcn.004217b0
add esp, 0xc
test eax, eax
je 0x4147b4
push str.__Added_persistence_kernel_option
call fcn.004407e0
mov dword [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
jne 0x4147c6
cmp byte [ecx + 1], 0
je 0x4149e5
mov esi, 0x5430e0
xor edx, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4147d0
sub esi, ecx
xor ecx, ecx
test esi, esi
je 0x4147f4
nop
cmp byte [ecx + 0x5430e0], 0x20
lea eax, [edx + 1]
cmovne eax, edx
inc ecx
mov edx, eax
cmp ecx, esi
jb 0x4147e0
lea eax, [edx*4 + 1]
add eax, esi
push eax
call fcn.00499907
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x414814
mov dword [ebp - 0xc], eax
jmp 0x41484f
xor edx, edx
xor edi, edi
test esi, esi
je 0x41484b
lea esp, [esp]
mov al, byte [edi + 0x5430e0]
cmp al, 0x20
jne 0x414842
xor ecx, ecx
lea esp, [esp]
mov al, byte [ecx + str.x20]
inc ecx
mov byte [edx + ebx], al
inc edx
cmp ecx, 4
jb 0x414830
jmp 0x414846
mov byte [edx + ebx], al
inc edx
inc edi
cmp edi, esi
jb 0x414820
mov byte [edx + ebx], 0
mov edi, 0x5431a0
xor edx, edx
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x414860
sub edi, ecx
xor ecx, ecx
test edi, edi
je 0x414884
nop
cmp byte [ecx + 0x5431a0], 0x20
lea eax, [edx + 1]
cmovne eax, edx
inc ecx
mov edx, eax
cmp ecx, edi
jb 0x414870
lea eax, [edx*4 + 1]
add eax, edi
push eax
call fcn.00499907
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4148a4
mov dword [ebp - 0x14], esi
jmp 0x4148df
xor edx, edx
xor ebx, ebx
test edi, edi
je 0x4148db
lea esp, [esp]
mov al, byte [ebx + 0x5431a0]
cmp al, 0x20
jne 0x4148d2
xor ecx, ecx
lea esp, [esp]
mov al, byte [ecx + str.x20]
inc ecx
mov byte [edx + esi], al
inc edx
cmp ecx, 4
jb 0x4148c0
jmp 0x4148d6
mov byte [edx + esi], al
inc edx
inc ebx
cmp ebx, edi
jb 0x4148b0
mov byte [edx + esi], 0
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4149ca
test esi, esi
je 0x4149ca
mov dword [ebp - 0x10], 0
xor edi, edi
jmp 0x414900
mov edx, dword [edi + 0x4c9fb4]
mov ecx, dword [ebp - 8]
push 1
push esi
push ebx
call fcn.004217b0
add esp, 0xc
test eax, eax
je 0x41492a
mov eax, 1
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], eax
jmp 0x41492d
mov eax, dword [ebp - 0x10]
add edi, 4
cmp edi, 0x18
jb 0x414900
test eax, eax
je 0x41494b
push esi
push ebx
push dword [ebp - 8]
push str.__Patched__s:__s___s_n
call fcn.004407e0
add esp, 0x10
cmp byte [0x543639], 0
je 0x4149ca
push str.netinst
push dword [0x4fad9c]
call fcn.00492960
add esp, 8
test eax, eax
jne 0x4149ca
mov esi, dword [ebp - 8]
xor edi, edi
xor ebx, ebx
mov edx, dword [edi + 0x4c9fb4]
mov ecx, esi
push 1
push str.inst.repo
push str.inst.stage2
call fcn.004217b0
add esp, 0xc
test eax, eax
je 0x41499e
mov dword [ebp - 4], 1
mov ebx, 1
add edi, 4
cmp edi, 0x18
jb 0x414972
mov esi, dword [ebp - 0x14]
test ebx, ebx
mov ebx, dword [ebp - 0xc]
je 0x4149ca
push str.inst.repo
push str.inst.stage2
push dword [ebp - 8]
push str.__Patched__s:__s___s_n
call fcn.004407e0
add esp, 0x10
push ebx
call fcn.004998ec
add esp, 4
push esi
call fcn.004998ec
mov ebx, dword [ebp - 8]
add esp, 4
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + 2], 0
je 0x414a77
mov ecx, dword [ebp - 0x1c]
mov esi, str._NULL_
test ecx, ecx
mov eax, esi
push str._efi_boot
cmovne eax, ecx
push eax
call fcn.004a2750
add esp, 8
test eax, eax
jne 0x414a77
mov eax, dword [str.isolinux.cfg]
mov ecx, esi
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp + 8]
test eax, eax
push ecx
cmovne esi, eax
push esi
call fcn.004a2750
add esp, 8
test eax, eax
jne 0x414a77
cmp byte [0x54364a], al
jne 0x414a77
push ebx
call fcn.0049f1d2
mov esi, eax
add esp, 4
test esi, esi
je 0x414a77
push 1
push esi
push ebx
mov word [esi + edi - 0xc], 0x7973
mov byte [esi + edi - 0xa], 0x73
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
push ebx
push str.Duplicated__s_to__s_n
call fcn.004407e0
add esp, 0xc
push esi
call fcn.004998ec
add esp, 4
mov edi, dword [ebp + 0xc]
cmp byte [edi + 3], 0
je 0x414b22
push 0x104
call fcn.00499907
add esp, 4
mov edi, eax
push 0x104
call fcn.00499907
add esp, 4
mov esi, eax
test edi, edi
je 0x414b10
test esi, esi
je 0x414b10
push 0x5430e0
push str.cd9660:_dev_iso9660__s
push 0x104
push edi
call fcn.00403820
push 0x5431a0
push str.msdosfs:_dev_msdosfs__s
push 0x104
push esi
mov byte [edi + 0x103], 0
call fcn.00403820
push 1
push esi
push edi
mov edx, 0x4d2f9c
mov byte [esi + 0x103], 0
mov ecx, ebx
call fcn.004217b0
add esp, 0x2c
test eax, eax
je 0x414b10
push esi
push edi
push ebx
push str.__Patched__s:__s___s_n
call fcn.004407e0
add esp, 0x10
mov dword [ebp - 4], 1
push edi
call fcn.004998ec
add esp, 4
push esi
call fcn.004998ec
add esp, 4
cmp dword [ebp - 4], 0
je 0x414bd9
mov esi, dword [0x52bffc]
test esi, esi
je 0x414bd9
mov eax, dword [0x52c004]
cmp dword [0x52c000], eax
jne 0x414b8a
add eax, eax
mov dword [0x52c004], eax
shl eax, 2
push eax
push esi
call fcn.00495be1
add esp, 8
mov dword [0x52bffc], eax
test eax, eax
jne 0x414b8a
push esi
call fcn.004998ec
add esp, 4
push str.Could_not_reallocate_string_array
call fcn.004407e0
add esp, 4
push ebx
call fcn.004998ec
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
call fcn.0049f1d2
mov ecx, dword [0x52c000]
add esp, 4
mov edx, dword [0x52bffc]
mov dword [edx + ecx*4], eax
mov ecx, dword [0x52c000]
mov eax, dword [0x52bffc]
cmp dword [eax + ecx*4], 0
jne 0x414bd2
push str.Could_not_store_string_in_array
call fcn.004407e0
add esp, 4
push ebx
call fcn.004998ec
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc ecx
mov dword [0x52c000], ecx
push ebx
call fcn.004998ec
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret