Function at 0x40baf0
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cbac
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x448684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x418], ebx
mov byte [ebp - 0x428], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], 1
cmp dword [esi + 0x14], ebx
jne 0x40bc2a
mov eax, 0x449b08
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x458], ebx
mov byte [ebp - 0x468], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bb73
sub eax, edx
push eax
push 0x449b08
lea ecx, [ebp - 0x46c]
call fcn.004055e0
mov byte [ebp - 4], 1
push str..exe
lea ecx, [ebp - 0x46c]
push ecx
lea edx, [ebp - 0x450]
push edx
call fcn.00408090
add esp, 0xc
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x42c]
call fcn.004053a0
mov byte [ebp - 4], 1
mov edi, 0x10
cmp dword [ebp - 0x438], edi
jb 0x40bbdf
mov eax, dword [ebp - 0x44c]
push eax
call fcn.004127b1
add esp, 4
mov dword [ebp - 0x438], 0xf
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 0x44c], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x454], edi
jb 0x40bc0f
mov ecx, dword [ebp - 0x468]
push ecx
call fcn.004127b1
add esp, 4
mov dword [ebp - 0x454], 0xf
mov dword [ebp - 0x458], ebx
mov byte [ebp - 0x468], bl
jmp 0x40bca9
push 1
push ebx
push 0x43e9ac
mov ecx, esi
call fcn.00402b90
cmp eax, 0xffffffff
jne 0x40bc95
push str..exe
lea edx, [ebp - 0x450]
push esi
push edx
call fcn.00408090
add esp, 0xc
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x42c]
call fcn.004053a0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x438], 0x10
jb 0x40bc81
mov eax, dword [ebp - 0x44c]
push eax
call fcn.004127b1
add esp, 4
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 0x44c], bl
jmp 0x40bca4
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x42c]
call fcn.004053a0
mov edi, 0x10
mov eax, dword [ebp - 0x428]
cmp dword [ebp - 0x414], edi
jae 0x40bcbd
lea eax, [ebp - 0x428]
push 0xb
push eax
push 0x449b08
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40bdba
mov eax, dword [ebp - 0x428]
cmp dword [ebp - 0x414], edi
jae 0x40bce7
lea eax, [ebp - 0x428]
push ebx
push eax
push 0x449b08
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40bdba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x434]
push eax
push str.CopyFile_error:
push edi
call fcn.0040a440
add esp, 8
mov ecx, eax
call fcn.0040a990
push 0x449b08
push str._src:
push edi
call fcn.0040a440
add esp, 8
push eax
call fcn.0040a440
add esp, 8
push esi
push str._dst:
push edi
call fcn.0040a440
add esp, 8
push eax
call fcn.0040a630
add esp, 8
mov edi, eax
push 0xa
mov ecx, edi
call fcn.0040aaf0
mov ecx, edi
call fcn.004095f0
push 0x3ff
lea ecx, [ebp - 0x40f]
push ebx
push ecx
mov byte [ebp - 0x410], bl
call fcn.00412950
add esp, 0xc
push 0x400
lea edx, [ebp - 0x410]
push edx
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push ebx
push 0x43e958
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x430], ebx
mov edi, 0x10
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x42c]
push ecx
mov ecx, esi
call fcn.004053a0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x414], edi
jb 0x40bde9
mov edx, dword [ebp - 0x428]
push edx
call fcn.004127b1
add esp, 4
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], ebx
mov byte [ebp - 0x428], bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004126c6
mov esp, ebp
pop ebp
ret 8