Function at 0x4177d0
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 0x417e02
push eax
call fcn.004e03cf
mov ebx, eax
add esp, 4
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x417e02
mov edi, ebx
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x417810
sub edi, ecx
mov eax, ebx
mov cl, byte [ebx]
mov dword [ebp - 0x18], edi
test cl, cl
je 0x417834
cmp cl, 0x2f
jne 0x41782c
mov byte [eax], 0x5c
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x417824
cmp dword [0x5a2ae0], 3
jne 0x4179d4
cmp word [0x5a307c], 0
jne 0x417861
cmp byte [0x5a306c], 0
jne 0x417861
cmp byte [0x5a306b], 0
je 0x4179d4
cmp byte [0x5a3064], 0
jne 0x4179d4
cmp byte [0x5a3065], 0
jne 0x4179d4
cmp byte [0x5a3072], 0
jne 0x4179d4
mov cx, word [0x5a305a]
mov al, cl
and al, 7
cmp al, 7
je 0x4179d4
mov al, cl
and al, 0x23
cmp al, 0x23
je 0x4179d4
mov eax, 0x1c0
and cx, ax
cmp cx, ax
je 0x4179d4
cmp byte [0x5a2d00], 0
jne 0x4179d4
cmp byte [0x5a306e], 0
jne 0x4179d4
mov eax, dword [0x55a310]
or eax, dword [0x55a314]
je 0x4179d4
mov eax, dword [ebp + 0xc]
mov al, byte [eax + 3]
test al, al
jne 0x4178fe
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + 4], al
jne 0x4178fe
cmp byte [ecx + 2], al
je 0x4179d7
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.00426240
add esp, 0xc
test eax, eax
je 0x417972
push str.__Added_persistent_kernel_option
call fcn.0044b0b0
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ebp - 4], 1
cmp byte [ecx + 3], 0
je 0x4179d7
push 1
push 0x52ad5a
push str.maybe_ubiquity
mov edx, esi
mov ecx, ebx
call fcn.00426240
add esp, 0xc
test eax, eax
je 0x4179d4
push str.__Removed_maybe_ubiquity_kernel_option
call fcn.0044b0b0
jmp 0x4179d1
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.00426240
add esp, 0xc
test eax, eax
je 0x417995
push str.__Added_persistent_kernel_option
jmp 0x4179c5
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.00426240
add esp, 0xc
test eax, eax
je 0x4179d4
push str.__Added_persistence_kernel_option
call fcn.0044b0b0
mov dword [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
jne 0x4179e6
cmp byte [ecx + 1], 0
je 0x417c05
mov esi, 0x5a2b00
xor edx, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4179f0
sub esi, ecx
xor ecx, ecx
test esi, esi
je 0x417a14
nop
cmp byte [ecx + 0x5a2b00], 0x20
lea eax, [edx + 1]
cmovne eax, edx
inc ecx
mov edx, eax
cmp ecx, esi
jb 0x417a00
lea eax, [edx*4 + 1]
add eax, esi
push eax
call fcn.004d122c
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x417a34
mov dword [ebp - 0xc], eax
jmp 0x417a6f
xor edx, edx
xor edi, edi
test esi, esi
je 0x417a6b
nop dword [eax]
mov al, byte [edi + 0x5a2b00]
cmp al, 0x20
jne 0x417a62
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str.x20]
inc ecx
mov byte [edx + ebx], al
inc edx
cmp ecx, 4
jb 0x417a50
jmp 0x417a66
mov byte [edx + ebx], al
inc edx
inc edi
cmp edi, esi
jb 0x417a40
mov byte [edx + ebx], 0
mov edi, 0x5a2bc0
xor edx, edx
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x417a80
sub edi, ecx
xor ecx, ecx
test edi, edi
je 0x417aa4
nop
cmp byte [ecx + 0x5a2bc0], 0x20
lea eax, [edx + 1]
cmovne eax, edx
inc ecx
mov edx, eax
cmp ecx, edi
jb 0x417a90
lea eax, [edx*4 + 1]
add eax, edi
push eax
call fcn.004d122c
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x417ac4
mov dword [ebp - 0x14], esi
jmp 0x417aff
xor edx, edx
xor ebx, ebx
test edi, edi
je 0x417afb
nop dword [eax]
mov al, byte [ebx + 0x5a2bc0]
cmp al, 0x20
jne 0x417af2
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str.x20]
inc ecx
mov byte [edx + esi], al
inc edx
cmp ecx, 4
jb 0x417ae0
jmp 0x417af6
mov byte [edx + esi], al
inc edx
inc ebx
cmp ebx, edi
jb 0x417ad0
mov byte [edx + esi], 0
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x417bea
test esi, esi
je 0x417bea
mov dword [ebp - 0x10], 0
xor edi, edi
nop dword [eax + eax]
mov edx, dword [edi + 0x526354]
mov ecx, dword [ebp - 8]
push 1
push esi
push ebx
call fcn.00426240
add esp, 0xc
test eax, eax
je 0x417b4a
mov eax, 1
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], eax
jmp 0x417b4d
mov eax, dword [ebp - 0x10]
add edi, 4
cmp edi, 0x1c
jb 0x417b20
test eax, eax
je 0x417b6b
push esi
push ebx
push dword [ebp - 8]
push str.__Patched__s:__s___s_n
call fcn.0044b0b0
add esp, 0x10
cmp byte [0x5a3059], 0
je 0x417bea
push str.netinst
push dword [0x55a75c]
call fcn.004aa450
add esp, 8
test eax, eax
jne 0x417bea
mov esi, dword [ebp - 8]
xor edi, edi
xor ebx, ebx
mov edx, dword [edi + 0x526354]
mov ecx, esi
push 1
push str.inst.repo
push str.inst.stage2
call fcn.00426240
add esp, 0xc
test eax, eax
je 0x417bbe
mov dword [ebp - 4], 1
mov ebx, 1
add edi, 4
cmp edi, 0x1c
jb 0x417b92
mov esi, dword [ebp - 0x14]
test ebx, ebx
mov ebx, dword [ebp - 0xc]
je 0x417bea
push str.inst.repo
push str.inst.stage2
push dword [ebp - 8]
push str.__Patched__s:__s___s_n
call fcn.0044b0b0
add esp, 0x10
push ebx
call fcn.004d1211
add esp, 4
push esi
call fcn.004d1211
mov ebx, dword [ebp - 8]
add esp, 4
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + 2], 0
je 0x417c97
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.004e7afe
add esp, 8
test eax, eax
jne 0x417c97
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.004e7afe
add esp, 8
test eax, eax
jne 0x417c97
cmp byte [0x5a306a], al
jne 0x417c97
push ebx
call fcn.004e03cf
mov esi, eax
add esp, 4
test esi, esi
je 0x417c97
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.0044b0b0
add esp, 0xc
push esi
call fcn.004d1211
add esp, 4
mov edi, dword [ebp + 0xc]
cmp byte [edi + 3], 0
je 0x417d42
push 0x104
call fcn.004d122c
add esp, 4
mov edi, eax
push 0x104
call fcn.004d122c
add esp, 4
mov esi, eax
test edi, edi
je 0x417d30
test esi, esi
je 0x417d30
push 0x5a2b00
push str.cd9660:_dev_iso9660__s
push 0x104
push edi
call fcn.004050d0
push 0x5a2bc0
push str.msdosfs:_dev_msdosfs__s
push 0x104
push esi
mov byte [edi + 0x103], 0
call fcn.004050d0
push 1
push esi
push edi
mov edx, 0x52f988
mov byte [esi + 0x103], 0
mov ecx, ebx
call fcn.00426240
add esp, 0x2c
test eax, eax
je 0x417d30
push esi
push edi
push ebx
push str.__Patched__s:__s___s_n
call fcn.0044b0b0
add esp, 0x10
mov dword [ebp - 4], 1
push edi
call fcn.004d1211
add esp, 4
push esi
call fcn.004d1211
add esp, 4
cmp dword [ebp - 4], 0
je 0x417df9
mov esi, dword [0x58b9b4]
test esi, esi
je 0x417df9
mov eax, dword [0x58b9bc]
cmp dword [0x58b9b8], eax
jne 0x417daa
add eax, eax
mov dword [0x58b9bc], eax
shl eax, 2
push eax
push esi
call fcn.004b70e5
add esp, 8
mov dword [0x58b9b4], eax
test eax, eax
jne 0x417daa
push esi
call fcn.004d1211
add esp, 4
push str.Could_not_reallocate_string_array
call fcn.0044b0b0
add esp, 4
push ebx
call fcn.004d1211
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
call fcn.004e03cf
mov ecx, dword [0x58b9b8]
add esp, 4
mov edx, dword [0x58b9b4]
mov dword [edx + ecx*4], eax
mov ecx, dword [0x58b9b8]
mov eax, dword [0x58b9b4]
cmp dword [eax + ecx*4], 0
jne 0x417df2
push str.Could_not_store_string_in_array
call fcn.0044b0b0
add esp, 4
push ebx
call fcn.004d1211
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc ecx
mov dword [0x58b9b8], ecx
push ebx
call fcn.004d1211
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret