Function at 0x40c7b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d73de
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x669404]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ecx
xor edi, edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 4], edi
lea eax, [edi + 0x10]
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov esi, esp
push 0xdead0009
push 0x25ebeef
lea edx, [ebp - 0x30]
push edx
call fcn.00404610
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x40c82a
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00406010
mov eax, 8
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov eax, esp
mov dword [ebp - 0x90], eax
cmp eax, edi
je 0x40c86b
mov dword [eax], 0xabab025e
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x90]
test esi, esi
je 0x40c888
mov dword [esi], 0xcdcd025e
mov dword [ebp - 0x80], 6
test byte [0x679728], 1
jne 0x40c8bf
or dword [0x679728], 1
mov dword [ebp - 4], 3
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x80]
push eax
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x40ca1c
mov dword [ebp - 0x40], 0xf
xor esi, esi
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 5
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 6
lea edi, [ebp - 0x54]
call fcn.004193b0
mov ecx, dword [eax + 0x1c]
cmp ecx, esi
jne 0x40c92c
push 0xd
push str.EnterFunction
mov ecx, eax
call fcn.004044f0
jmp 0x40c93a
push str.EnterFunction
push ecx
call fcn.004046b0
add esp, 8
push 0x1ff
push 0
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00403c90
mov esi, eax
mov byte [ebp - 4], 7
test byte [0x679728], 1
jne 0x40c97d
or dword [0x679728], 1
mov byte [ebp - 4], 8
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], 7
mov dword [ebp - 0x80], 0x6796dc
mov ecx, 0x6796dc
mov edx, dword [0x6796dc]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov ecx, dword [0x679724]
test ecx, ecx
je 0x40c9c7
cmp dword [esi + 0x14], 8
jb 0x40c9ac
mov eax, dword [esi]
jmp 0x40c9ae
mov eax, esi
mov edx, dword [ecx]
push 0x25e
push str.FileHandler::Copy
push str.FileHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 7
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x1c], 8
jb 0x40c9f2
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
xor edx, edx
mov word [ebp - 0x30], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x54]
push eax
call fcn.00419280
mov esi, dword [ebp - 0x90]
test esi, esi
je 0x40ca26
mov dword [esi], 0xcdcd025f
mov dword [ebp - 0x80], 6
test byte [0x679728], 1
jne 0x40ca5d
or dword [0x679728], 1
mov dword [ebp - 4], 0xa
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x40cbd1
mov dword [ebp - 0x40], 0xf
xor esi, esi
mov dword [ebp - 0x44], esi
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0xd
mov edx, dword [ebp - 0x88]
push edx
push ecx
push str.__DestPath_
push ecx
mov eax, dword [ebp - 0x8c]
push eax
push ecx
push str.EnterFunction_SourcePath_
push ecx
lea edi, [ebp - 0x54]
call fcn.004193b0
add esp, 4
mov ecx, eax
call fcn.004162f0
add esp, 8
push eax
call fcn.004049a0
add esp, 0xc
push eax
call fcn.00404bd0
add esp, 0xc
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push esi
lea ecx, [ebp - 0x30]
push ecx
mov edx, edi
push edx
call fcn.00419470
mov ecx, eax
call fcn.00403c90
mov esi, eax
mov bl, 0xe
mov byte [ebp - 4], bl
test byte [0x679728], 1
jne 0x40cb33
or dword [0x679728], 1
mov byte [ebp - 4], 0xf
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x80], 0x6796dc
mov ecx, 0x6796dc
mov eax, dword [0x6796dc]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 4], 0x10
mov ecx, dword [0x679724]
test ecx, ecx
je 0x40cb78
cmp dword [esi + 0x14], 8
jb 0x40cb5f
mov esi, dword [esi]
mov eax, dword [ecx]
push 0x25f
push str.FileHandler::Copy
push str.FileHandler.cpp
push esi
push 6
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 4], bl
mov eax, dword [0x6796dc]
mov ecx, 0x6796dc
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x1c], 8
jb 0x40cba1
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov word [ebp - 0x30], cx
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x54]
push edx
call fcn.00419280
mov ebx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x90]
mov byte [ebp - 0x81], 1
mov edi, dword [ebp - 0x8c]
push edi
lea ecx, [ebp - 0x79]
call fcn.00409f50
add esp, 4
test al, al
je 0x40cd02
cmp byte [ebp - 0x79], 0
jne 0x40cd09
test esi, esi
je 0x40cc06
mov dword [esi], 0xcdcd0268
mov dword [ebp - 0x80], 2
lea eax, [ebp - 0x80]
push eax
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x40cd02
mov dword [ebp - 0x40], 0xf
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 4], 0x11
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0x13
lea edi, [ebp - 0x54]
call fcn.004193b0
mov edx, str.IsFileExist_failed
mov esi, eax
call fcn.00418da0
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x40cc81
push 0xffffffffffffffff
push ebx
mov ecx, dword [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.00406070
jmp 0x40cc91
mov edx, dword [ebp - 0x8c]
push edx
push ecx
call fcn.004049a0
add esp, 8
push 0x1ff
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x14
push 0x268
push str.FileHandler::Copy
push str.FileHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x1c], 8
jb 0x40ccde
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
xor edx, edx
mov word [ebp - 0x30], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x54]
push eax
call fcn.00419280
xor al, al
jmp 0x40d119
mov ecx, dword [ebx + 0x10]
cmp dword [ebx + 0x14], 8
jb 0x40cd16
mov eax, dword [ebx]
jmp 0x40cd18
mov eax, ebx
push ecx
push eax
mov ecx, dword [edi + 0x10]
push ecx
push 0
mov ecx, edi
call fcn.00416c10
test eax, eax
jne 0x40cdfe
test esi, esi
je 0x40cd39
mov dword [esi], 0xcdcd026e
mov dword [ebp - 0x80], 2
lea edx, [ebp - 0x80]
push edx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x40cdf7
mov dword [ebp - 0x40], 0xf
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
mov dword [ebp - 4], 0x15
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0x16
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0x17
lea edi, [ebp - 0x54]
call fcn.004193b0
mov edx, str.Same_names._Path_
mov esi, eax
call fcn.00418da0
mov ecx, dword [ebp - 0x88]
mov esi, eax
call fcn.00418d70
push 0x1ff
push ebx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x18
push 0x26e
push str.FileHandler::Copy
push str.FileHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x30]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
push ecx
call fcn.00419280
xor al, al
jmp 0x40d119
push ebx
lea ecx, [ebp - 0x79]
call fcn.00409f50
add esp, 4
test al, al
je 0x40cd02
cmp byte [ebp - 0x79], 0
je 0x40cedc
cmp byte [ebp + 0xc], 0
jne 0x40cff7
test esi, esi
je 0x40ce30
mov dword [esi], 0xcdcd0278
mov dword [ebp - 0x80], 2
lea edx, [ebp - 0x80]
push edx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x40ced5
lea eax, [ebp - 0x54]
push eax
call fcn.00419220
mov dword [ebp - 4], 0x19
lea edi, [ebp - 0x54]
call fcn.004193b0
mov edx, str.IsFileExist_failed
mov esi, eax
call fcn.00418da0
mov ecx, dword [ebp - 0x88]
mov esi, eax
call fcn.00418d70
push 0x1ff
push 0
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x1a
push 0x278
push str.FileHandler::Copy
push str.FileHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x30]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
mov edx, edi
push edx
call fcn.00419280
xor al, al
jmp 0x40d119
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
call fcn.0040e450
add esp, 4
mov dword [ebp - 4], 0x1b
mov byte [ebp - 0x79], 0
cmp dword [ebp - 0x20], 0
je 0x40cf1c
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x79]
call fcn.0040b2e0
add esp, 4
test al, al
je 0x40cfd2
cmp byte [ebp - 0x79], 0
jne 0x40cfe8
lea edx, [ebp - 0x30]
push edx
call fcn.0040ac30
add esp, 4
test al, al
jne 0x40cfe8
test esi, esi
je 0x40cf3a
mov dword [esi], 0xcdcd028a
mov dword [ebp - 0x80], 2
lea eax, [ebp - 0x80]
push eax
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x40cfd2
lea ecx, [ebp - 0x78]
push ecx
call fcn.00419220
mov byte [ebp - 4], 0x1c
lea edi, [ebp - 0x78]
call fcn.004193b0
mov edx, str.CreateDirectory_failed
mov esi, eax
call fcn.00418da0
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.00418d70
push 0x1ff
push 0
lea edx, [ebp - 0x4c]
push edx
mov ecx, dword [ebp - 0x58]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x1d
push 0x28a
push str.FileHandler::Copy
push str.FileHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x4c]
call fcn.004068c0
mov byte [ebp - 4], 0x1b
mov eax, edi
push eax
call fcn.00419280
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004068c0
xor al, al
jmp 0x40d119
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004068c0
cmp dword [ebx + 0x14], 8
jb 0x40d001
mov esi, dword [ebx]
jmp 0x40d003
mov esi, ebx
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x14], 8
jb 0x40d011
mov eax, dword [eax]
xor ecx, ecx
cmp byte [ebp + 0xc], cl
sete cl
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40d02c
mov byte [ebp - 0x81], al
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x40d03c
mov dword [eax], 0xcdcd0296
mov dword [ebp - 0x80], 6
lea edx, [ebp - 0x80]
push edx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x40d113
lea eax, [ebp - 0x78]
push eax
call fcn.00419220
mov dword [ebp - 4], 0x1e
mov ecx, dword [ebp - 0x88]
push ecx
push ecx
push str.__DestPath_
push ecx
mov edx, dword [ebp - 0x8c]
push edx
push ecx
push str.ExitFunction_SourcePath_
push ecx
lea edi, [ebp - 0x78]
call fcn.004193b0
add esp, 4
mov ecx, eax
call fcn.004162f0
add esp, 8
push eax
call fcn.004049a0
add esp, 0xc
push eax
call fcn.00404bd0
add esp, 0xc
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
push ecx
call fcn.00419470
mov ecx, eax
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x1f
push 0x296
push str.FileHandler::Copy
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x4c]
call fcn.004068c0
mov dword [ebp - 4], 0xffffffff
mov edx, edi
push edx
call fcn.00419280
mov al, byte [ebp - 0x81]
lea esp, [ebp - 0xa0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00546bdc
mov esp, ebp
pop ebp
ret