Function at 0x48df40
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee2db
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x48dfcc
movzx ecx, byte [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, 4
call fcn.00413e50
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00413e50
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne dl
mov byte [ebp - 0x69], dl
cmp dword [ebp + 0x14], 0
je 0x48dfc4
movzx eax, byte [ebp - 0x69]
test eax, eax
je 0x48dfb3
mov dword [ebp - 0x70], 0
jmp 0x48dfbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x70]
mov dword [ecx], edx
mov al, byte [ebp - 0x69]
jmp 0x48e163
movzx eax, byte [ebp + 0x10]
neg eax
sbb eax, eax
add eax, 1
shl eax, 4
or eax, 0x300
mov word [ebp - 0x10], ax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00410bd0
add eax, 2
push eax
lea ecx, [ebp - 0x68]
call fcn.00432f90
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
add ecx, 4
call fcn.00410bd0
add eax, 2
push eax
lea ecx, [ebp - 0x60]
call fcn.00432f90
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00413e50
push eax
lea ecx, [ebp - 0x68]
call fcn.00412ab0
push eax
call fcn.0044ac48
add esp, 8
lea ecx, [ebp - 0x68]
call fcn.00412ab0
mov esi, eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00410bd0
xor ecx, ecx
mov word [esi + eax*2 + 2], cx
mov ecx, dword [ebp + 0xc]
add ecx, 4
call fcn.00413e50
push eax
lea ecx, [ebp - 0x60]
call fcn.00412ab0
push eax
call fcn.0044ac48
add esp, 8
lea ecx, [ebp - 0x60]
call fcn.00412ab0
mov esi, eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
call fcn.00410bd0
xor edx, edx
mov word [esi + eax*2 + 2], dx
lea ecx, [ebp - 0x6a]
call fcn.0040b800
push eax
push str.Copying_file:
lea ecx, [ebp - 0x34]
call fcn.00414c40
mov byte [ebp - 4], 2
cmp dword [ebp + 8], 0
je 0x48e0b9
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x74], eax
jmp 0x48e0c0
mov dword [ebp - 0x74], 0
mov ecx, dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00404ea0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 2
lea ecx, [ebp - 0x68]
call fcn.00412ab0
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x60]
call fcn.00412ab0
mov dword [ebp - 0x48], eax
mov dx, word [ebp - 0x10]
mov word [ebp - 0x44], dx
mov dword [ebp - 0x42], 0
mov dword [ebp - 0x3e], 0
lea ecx, [ebp - 0x30]
call fcn.00413e50
mov dword [ebp - 0x3a], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0x58], eax
cmp dword [ebp + 0x14], 0
je 0x48e12d
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
xor edx, edx
cmp dword [ebp - 0x58], 0
sete dl
mov byte [ebp - 0x6b], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00414a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.0042e380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0042e380
mov al, byte [ebp - 0x6b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret