Function at 0x41d31b
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [ebp - 0x28], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x41d88e
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__strdup]
mov ebx, eax
test eax, eax
je 0x41d88e
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ecx, 0x5c
mov edx, 0x2f
mov dword [ebp - 0x34], eax
mov eax, ebx
call fcn.0041d30e
cmp dword [0x5240b0], 3
je 0x41d37a
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x41d536
cmp word [0x510796], 0
jne 0x41d391
mov al, byte [0x510784]
or al, byte [0x510783]
je 0x41d370
cmp word [0x51077c], 0
jne 0x41d370
cmp byte [0x51078b], 0
jne 0x41d370
mov ax, word [0x510772]
mov edx, eax
not edx
and dl, 7
je 0x41d370
mov edx, eax
not edx
test dl, 0x23
je 0x41d370
mov eax, edx
test ax, 0x1c0
je 0x41d370
mov al, byte [0x510420]
or al, byte [0x510787]
jne 0x41d370
cmp dword [0x4df204], 0
jne 0x41d3e3
cmp dword [0x4df200], 0
je 0x41d370
cmp byte [esi + 3], 0
jne 0x41d3fb
cmp byte [esi + 4], 0
jne 0x41d402
cmp byte [esi + 2], 0
je 0x41d370
jmp 0x41d402
mov eax, str.linux
jmp 0x41d407
mov eax, str.append
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], str.persistent_file_cdrom_preseed
mov dword [esp + 8], str.file_cdrom_preseed
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00427d50
test eax, eax
je 0x41d476
mov dword [esp], str.__Added_persistent_kernel_option
call fcn.0043d9e0
cmp byte [esi + 3], 0
je 0x41d4ae
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x49b4e3
mov dword [esp + 8], str.maybe_ubiquity
mov dword [esp + 4], str.linux
mov dword [esp], ebx
call fcn.00427d50
test eax, eax
je 0x41d4ae
mov dword [esp], str.__Removed_maybe_ubiquity_kernel_option
jmp 0x41d4a9
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], str._casper_vmlinuz_persistent
mov dword [esp + 8], str._casper_vmlinuz
mov dword [esp + 4], str.linux
mov dword [esp], ebx
call fcn.00427d50
test eax, eax
je 0x41d4b7
mov dword [esp], str.__Added_persistent_kernel_option
call fcn.0043d9e0
mov dword [ebp - 0x1c], 1
jmp 0x41d536
mov edx, str.linux
cmp byte [esi + 3], 0
mov edi, str.append
mov dword [esp], ebx
mov eax, edx
mov dword [esp + 0x10], 1
cmove eax, edi
mov dword [esp + 0xc], str.bootcasper_persistent
mov dword [esp + 8], str.bootcasper
mov dword [esp + 4], eax
call fcn.00427d50
test eax, eax
jne 0x41d4a2
cmp byte [esi + 3], 0
mov edx, str.linux
mov dword [esp], ebx
cmovne edi, edx
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], str.bootlive_persistence
mov dword [esp + 8], str.bootlive
mov dword [esp + 4], edi
call fcn.00427d50
test eax, eax
je 0x41d370
mov dword [esp], str.__Added_persistence_kernel_option
jmp 0x41d4a9
cmp byte [esi], 0
jne 0x41d545
cmp byte [esi + 1], 0
je 0x41d6b1
mov dword [esp + 8], str.x20
mov dword [esp + 4], 0x20
mov dword [esp], 0x510220
call fcn.00428373
mov dword [ebp - 0x20], eax
mov dword [esp + 8], str.x20
mov dword [esp + 4], 0x20
mov dword [esp], 0x5102e0
call fcn.00428373
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x24], eax
je 0x41d69b
test eax, eax
je 0x41d69b
xor edi, edi
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [esp + 0x10], 1
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [edi*4 + 0x49c6d0]
mov dword [esp + 4], eax
call fcn.00427d50
mov edx, dword [ebp - 0x38]
mov ecx, eax
mov eax, 1
test ecx, ecx
cmovne edx, eax
cmove eax, dword [ebp - 0x1c]
inc edi
mov dword [ebp - 0x1c], eax
cmp edi, 7
jne 0x41d599
test edx, edx
je 0x41d603
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], str.__Patched__s:__s___s
call fcn.0043d9e0
cmp byte [0x510771], 0
je 0x41d69b
mov dword [esp + 4], str.netinst
mov eax, dword [0x522ec8]
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x41d69b
xor edi, edi
xor edx, edx
mov eax, dword [edi*4 + 0x49c6d0]
mov dword [ebp - 0x38], edx
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], str.inst.repo
mov dword [esp + 8], str.inst.stage2
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00427d50
mov edx, dword [ebp - 0x38]
mov ecx, eax
mov eax, 1
test ecx, ecx
cmovne edx, eax
cmove eax, dword [ebp - 0x1c]
inc edi
mov dword [ebp - 0x1c], eax
cmp edi, 7
jne 0x41d62d
test edx, edx
je 0x41d69b
mov dword [esp + 0xc], str.inst.repo
mov dword [esp + 8], str.inst.stage2
mov dword [esp + 4], ebx
mov dword [esp], str.__Patched__s:__s___s
call fcn.0043d9e0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_free
cmp byte [esi + 2], 0
je 0x41d771
mov eax, dword [str._efi_boot]
test eax, eax
jne 0x41d6c9
mov eax, 0x49b29c
cmp dword [ebp - 0x2c], 0
jne 0x41d6d6
mov dword [ebp - 0x2c], 0x49b29c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x41d771
cmp dword [ebp - 0x30], 0
jne 0x41d6fb
mov dword [ebp - 0x30], 0x49b29c
mov dword [esp + 4], str.isolinux.cfg
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
jne 0x41d771
cmp byte [0x510782], 0
jne 0x41d771
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__strdup]
mov edi, eax
test eax, eax
je 0x41d771
mov eax, dword [ebp - 0x34]
mov byte [edi + eax - 0xc], 0x73
mov byte [edi + eax - 0xb], 0x79
mov byte [edi + eax - 0xa], 0x73
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], str.Duplicated__s_to__s
call fcn.0043d9e0
mov dword [esp], edi
call sub.msvcrt.dll_free
cmp byte [esi + 3], 0
je 0x41d85e
mov dword [esp], 0x104
call sub.msvcrt.dll_malloc
mov dword [esp], 0x104
mov edi, eax
call sub.msvcrt.dll_malloc
mov esi, eax
test edi, edi
je 0x41d84e
test eax, eax
je 0x41d84e
mov edx, dword [sym.imp.msvcrt.dll__snprintf_s]
mov dword [esp + 0x10], 0x510220
mov dword [esp + 0xc], str.cd9660:_dev_iso9660__s
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x104
mov dword [esp], edi
mov dword [ebp - 0x20], edx
call edx
mov byte [edi + 0x103], 0
mov dword [esp + 0x10], 0x5102e0
mov dword [esp + 0xc], str.msdosfs:_dev_msdosfs__s
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x104
mov dword [esp], esi
mov edx, dword [ebp - 0x20]
call edx
mov byte [esi + 0x103], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0x49b63d
mov dword [esp], ebx
call fcn.00427d50
test eax, eax
je 0x41d84e
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], str.__Patched__s:__s___s
call fcn.0043d9e0
mov dword [ebp - 0x1c], 1
mov dword [esp], edi
call sub.msvcrt.dll_free
mov dword [esp], esi
call sub.msvcrt.dll_free
cmp dword [ebp - 0x1c], 0
je 0x41d87f
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x28]
mov dword [esp], 0x4dff00
mov dword [esp + 4], eax
call fcn.0043c061
mov dword [ebp + 8], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret