Function at 0x42fde0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521376
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x595be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0042f6c0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x42ff0c
push str.file_not_exists:
lea ecx, [ebp - 0x20]
call fcn.004289c0
mov dword [ebp - 4], 0
push 0x56275c
lea ecx, [ebp - 0x18]
call fcn.00428940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.0042a230
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x84], edx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
lea edx, [ebp - 0x6c]
push edx
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x64]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 4
push 2
mov edx, dword [ebp - 0x7c]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0042b420
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.00428a40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.00428a40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.00428a40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00428a40
push str.file_does_not_exists
mov ecx, dword [ebp + 0x14]
call fcn.00428d50
xor al, al
jmp 0x430110
push 1
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042f780
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x42fffd
push 0x562784
lea ecx, [ebp - 0x24]
call fcn.004289c0
mov dword [ebp - 4], 5
push str.CopyFile
lea ecx, [ebp - 0x1c]
call fcn.00428940
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.0042a230
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 7
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 9
push 2
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.0042b420
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
call fcn.00428a40
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.00428a40
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.00428a40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00428a40
xor al, al
jmp 0x430110
lea ecx, [ebp - 0x14]
call fcn.0042a230
mov dword [ebp - 4], 0xa
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
push 0x5627b4
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042a490
add esp, 0x10
push 0
lea ecx, [ebp - 0x14]
call fcn.00402a70
push eax
mov ecx, dword [ebp + 8]
call fcn.00402a70
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4300fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x90]
push edx
call fcn.0042a9d0
add esp, 8
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 0xb
push str.copyfile_failed_
lea ecx, [ebp - 0x88]
call fcn.004289c0
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.0042d650
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x80]
call fcn.00428a40
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x88]
call fcn.00428a40
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x90]
call fcn.00428a40
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00428a40
mov al, byte [ebp - 0xe]
jmp 0x430110
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00428a40
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret