Function at 0x57318c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x28340]
mov dword [ebp - 4], edx
push 0x64
call sub.KERNEL32.DLL_Sleep
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov al, byte [ecx + 0x214]
mov byte [ebp - 0xd], al
mov edx, dword [ebp - 4]
mov eax, dword [sym.UltraISO.exe__frmUSBWrite]
call fcn.005705e8
mov edx, dword [ebp - 4]
mov cl, byte [edx + 0x214]
mov al, byte [ebp - 0xd]
cmp cl, al
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x28228]
cmp ecx, 0xd
je 0x573207
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x28228]
cmp edx, 4
je 0x573207
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x28228]
cmp eax, 0xe
jne 0x573592
mov edx, dword [0x7fd78c]
test edx, edx
je 0x573462
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x28228]
cmp eax, 0xd
jne 0x57322c
mov dword [ebp - 8], 0x8122c5
jmp 0x573234
call fcn.0051704c
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
test edx, edx
je 0x5739b8
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
movsx eax, byte [ecx + 0x214]
push eax
push 0x8122cc
lea edx, [ebp - 0x120]
push edx
call fcn.00670e94
add esp, 0x10
mov ecx, dword [ebp - 4]
movsx eax, byte [ecx + 0x214]
push eax
push 0x8122e0
lea edx, [ebp - 0x224]
push edx
call fcn.00670e94
add esp, 0xc
push 0
lea ecx, [ebp - 0x120]
push ecx
call fcn.0066e7cc
add esp, 8
test eax, eax
jne 0x5732fe
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.0066e7cc
add esp, 8
test eax, eax
je 0x5732fe
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x120]
push ecx
push 0x5aad
call fcn.00402a64
pop ecx
push eax
mov eax, dword [ebp + 8]
add eax, 0x2823c
push eax
call fcn.00670e94
add esp, 0x10
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
add edx, 0x2823c
push edx
call fcn.00572d90
add esp, 8
push 1
lea ecx, [ebp - 0x224]
push ecx
lea eax, [ebp - 0x120]
push eax
call sub.KERNEL32.DLL_CopyFileA
push 0
lea edx, [ebp - 0x224]
push edx
call fcn.0066e7cc
add esp, 8
test eax, eax
je 0x57334c
lea ecx, [ebp - 0x224]
push ecx
lea eax, [ebp - 0x120]
push eax
push 0x8122f1
mov edx, dword [ebp + 8]
add edx, 0x2823c
push edx
call fcn.00670e94
add esp, 0x10
push 1
mov ecx, dword [ebp + 8]
add ecx, 0x2823c
push ecx
call fcn.00572d90
add esp, 8
push dword [ebp - 8]
mov eax, dword [ebp - 4]
movsx edx, byte [eax + 0x214]
push edx
push 0x812312
lea ecx, [ebp - 0x120]
push ecx
call fcn.00670e94
add esp, 0x10
mov eax, dword [ebp - 4]
movsx edx, byte [eax + 0x214]
push edx
push 0x812326
lea ecx, [ebp - 0x224]
push ecx
call fcn.00670e94
add esp, 0xc
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.0066e7cc
add esp, 8
test eax, eax
jne 0x57340c
push 0
lea edx, [ebp - 0x224]
push edx
call fcn.0066e7cc
add esp, 8
test eax, eax
je 0x57340c
lea ecx, [ebp - 0x224]
push ecx
lea eax, [ebp - 0x120]
push eax
push 0x5aad
call fcn.00402a64
pop ecx
push eax
mov edx, dword [ebp + 8]
add edx, 0x2823c
push edx
call fcn.00670e94
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
add ecx, 0x2823c
push ecx
call fcn.00572d90
add esp, 8
push 1
lea eax, [ebp - 0x224]
push eax
lea edx, [ebp - 0x120]
push edx
call sub.KERNEL32.DLL_CopyFileA
push 0
lea ecx, [ebp - 0x224]
push ecx
call fcn.0066e7cc
add esp, 8
test eax, eax
je 0x5739b8
lea eax, [ebp - 0x224]
push eax
lea edx, [ebp - 0x120]
push edx
push 0x812330
mov ecx, dword [ebp + 8]
add ecx, 0x2823c
push ecx
call fcn.00670e94
add esp, 0x10
push 1
mov eax, dword [ebp + 8]
add eax, 0x2823c
push eax
call fcn.00572d90
add esp, 8
jmp 0x5739b8
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x28228]
cmp ecx, 0xd
jne 0x573479
mov dword [ebp - 8], str.MININT
jmp 0x573481
call fcn.0051704c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x5739b8
push dword [ebp - 8]
mov edx, dword [ebp - 4]
movsx ecx, byte [edx + 0x214]
push ecx
push 0x812358
lea eax, [ebp - 0x120]
push eax
call fcn.00670e94
add esp, 0x10
mov edx, dword [ebp - 4]
movsx ecx, byte [edx + 0x214]
push ecx
push 0x81236c
lea eax, [ebp - 0x224]
push eax
call fcn.00670e94
add esp, 0xc
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x120]
push ecx
push 0x5aad
call fcn.00402a64
pop ecx
push eax
mov eax, dword [ebp + 8]
add eax, 0x2823c
push eax
call fcn.00670e94
add esp, 0x10
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
add edx, 0x2823c
push edx
call fcn.00572d90
add esp, 8
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
movsx eax, byte [ecx + 0x214]
push eax
push 0x81237d
lea edx, [ebp - 0x120]
push edx
call fcn.00670e94
add esp, 0x10
mov ecx, dword [ebp - 4]
movsx eax, byte [ecx + 0x214]
push eax
push 0x812391
lea edx, [ebp - 0x224]
push edx
call fcn.00670e94
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
lea eax, [ebp - 0x120]
push eax
push 0x5aad
call fcn.00402a64
pop ecx
push eax
mov edx, dword [ebp + 8]
add edx, 0x2823c
push edx
call fcn.00670e94
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
add ecx, 0x2823c
push ecx
call fcn.00572d90
add esp, 8
jmp 0x5739b8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x28228]
cmp edx, 6
jne 0x573772
mov ecx, dword [0x7fd78c]
test ecx, ecx
je 0x5736da
call fcn.0051704c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x5739b8
push dword [ebp - 8]
mov edx, dword [ebp - 4]
movsx ecx, byte [edx + 0x214]
push ecx
push 0x81239b
lea eax, [ebp - 0x120]
push eax
call fcn.00670e94
add esp, 0x10
mov edx, dword [ebp - 4]
movsx ecx, byte [edx + 0x214]
push ecx
push 0x8123a8
lea eax, [ebp - 0x224]
push eax
call fcn.00670e94
add esp, 0xc
push 0
lea edx, [ebp - 0x120]
push edx
call fcn.0066e7cc
add esp, 8
test eax, eax
jne 0x573684
push 0
lea ecx, [ebp - 0x224]
push ecx
call fcn.0066e7cc
add esp, 8
test eax, eax
je 0x573684
lea eax, [ebp - 0x224]
push eax
lea edx, [ebp - 0x120]
push edx
push 0x5aad
call fcn.00402a64
pop ecx
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x2823c
push ecx
call fcn.00670e94
add esp, 0x10
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
add eax, 0x2823c
push eax
call fcn.00572d90
add esp, 8
push 1
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x120]
push ecx
call sub.KERNEL32.DLL_CopyFileA
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.0066e7cc
add esp, 8
test eax, eax
je 0x5739b8
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x120]
push ecx
push str.Error_copying_file__s_to__s.
mov eax, dword [ebp + 8]
add eax, 0x2823c
push eax
call fcn.00670e94
add esp, 0x10
push 1
mov edx, dword [ebp + 8]
add edx, 0x2823c
push edx
call fcn.00572d90
add esp, 8
jmp 0x5739b8
call fcn.0051704c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x5739b8
push dword [ebp - 8]
mov eax, dword [ebp - 4]
movsx edx, byte [eax + 0x214]
push edx
push str._c:_sEZLDR
lea ecx, [ebp - 0x120]
push ecx
call fcn.00670e94
add esp, 0x10
mov eax, dword [ebp - 4]
movsx edx, byte [eax + 0x214]
push edx
push str._c:EZLDR
lea ecx, [ebp - 0x224]
push ecx
call fcn.00670e94
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea edx, [ebp - 0x120]
push edx
push 0x5aad
call fcn.00402a64
pop ecx
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x2823c
push ecx
call fcn.00670e94
add esp, 0x10
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
add eax, 0x2823c
push eax
call fcn.00572d90
add esp, 8
jmp 0x5739b8
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x28228]
cmp ecx, 0xc
jne 0x5739b8
mov eax, dword [0x7fd78c]
test eax, eax
je 0x573847
mov edx, dword [ebp - 4]
movsx ecx, byte [edx + 0x214]
push ecx
push 0x8123ea
lea eax, [ebp - 0x224]
push eax
call fcn.00670e94
add esp, 0xc
push 0
lea edx, [ebp - 0x224]
push edx
call fcn.0066e7cc
add esp, 8
test eax, eax
je 0x5739b8
mov ecx, dword [ebp - 4]
movsx eax, byte [ecx + 0x214]
push eax
push 0x8123fb
lea edx, [ebp - 0x224]
push edx
call fcn.00670e94
add esp, 0xc
push 0
lea ecx, [ebp - 0x224]
push ecx
call fcn.0066e7cc
add esp, 8
test eax, eax
je 0x5739b8
mov eax, dword [ebp - 4]
movsx edx, byte [eax + 0x214]
push edx
push 0x812415
lea ecx, [ebp - 0x224]
push ecx
call fcn.00670e94
add esp, 0xc
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.0066e7cc
add esp, 8
test eax, eax
je 0x5739b8
push dword [ebp + 8]
call fcn.00527524
pop ecx
jmp 0x5739b8
call fcn.00517060
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
test edx, edx
jne 0x57385e
call fcn.0051704c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x5739b8
push dword [ebp - 8]
lea eax, [ebp - 0x120]
push eax
call fcn.0066c9ec
add esp, 8
push 0x2f
lea edx, [ebp - 0x120]
push edx
call fcn.0066cb35
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x57389f
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x120]
push edx
call fcn.0066ca1c
pop ecx
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
cmp eax, edx
jge 0x5738e6
mov ecx, dword [ebp - 0x18]
movsx eax, byte [ebp + ecx - 0x120]
cmp eax, 0x2f
jne 0x5738d9
mov edx, dword [ebp - 0x18]
mov byte [ebp + edx - 0x120], 0x5c
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
jl 0x5738be
movsx edx, byte [ebp - 0x120]
cmp edx, 0x5c
je 0x57394c
mov cl, byte [ebp - 0x120]
test cl, cl
jne 0x573924
lea eax, [ebp - 0x120]
push eax
mov edx, dword [ebp - 4]
movsx ecx, byte [edx + 0x214]
push ecx
push 0x812434
lea eax, [ebp - 0x224]
push eax
call fcn.00670e94
add esp, 0x10
jmp 0x573972
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp - 4]
movsx eax, byte [ecx + 0x214]
push eax
push 0x812445
lea edx, [ebp - 0x224]
push edx
call fcn.00670e94
add esp, 0x10
jmp 0x573972
lea ecx, [ebp - 0x120]
push ecx
mov eax, dword [ebp - 4]
movsx edx, byte [eax + 0x214]
push edx
push str._c:_s_syslinux.cfg
lea ecx, [ebp - 0x224]
push ecx
call fcn.00670e94
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
push 0x5aab
call fcn.00402a64
pop ecx
push eax
mov edx, dword [ebp + 8]
add edx, 0x2823c
push edx
call fcn.00670e94
add esp, 0xc
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
add ecx, 0x2823c
push ecx
call fcn.00572d90
add esp, 8
lea eax, [ebp - 0x224]
push eax
call fcn.00572e14
pop ecx
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_SetErrorMode
mov esp, ebp
pop ebp
ret