Function at 0x40a0c0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push 0xffffffffffffffff
push 0x507498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x556998
lea ecx, [esp + 0x14]
call fcn.004ea7b5
mov eax, dword [esp + 0x454]
xor ebx, ebx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x44c], ebx
call fcn.004ea7b5
mov edi, eax
mov ecx, dword [esp + 0x458]
mov byte [esp + 0x448], 1
push ecx
lea ecx, [esp + 0x2c]
call fcn.004ea7b5
mov ebp, eax
mov edx, dword [esp + 0x450]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x44c], 2
call fcn.004ea7b5
mov ecx, dword [edi]
mov edx, dword [ebp]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str.Copy_File:_Copy_start...__s__s___s_..._r_nCopy_File:_Step1...
push ecx
mov byte [esp + 0x45c], 3
call fcn.004e3c81
add esp, 0x14
lea ecx, [esp + 0x2c]
mov byte [esp + 0x448], 2
call fcn.004ea741
lea ecx, [esp + 0x28]
mov byte [esp + 0x448], 1
call fcn.004ea741
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], bl
call fcn.004ea741
mov edx, dword [esp + 0x10]
push ebx
push 2
push edx
call fcn.0041e3a0
mov ebp, dword [esp + 0x464]
add esp, 0xc
lea eax, [esp + 0x30]
mov dword [esp + 0x30], ebx
push eax
push str._I64u
push ebp
mov dword [esp + 0x40], ebx
call fcn.00435574
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
or al, 2
add esp, 0xc
mov dword [esp + 0x30], eax
and eax, 0x80
or edi, ebx
or eax, ebx
mov dword [esp + 0x34], edi
je 0x40a1f5
mov ecx, dword [esp + 0x30]
mov eax, edi
and ecx, 0xfffffffd
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x10]
push str.Step2...
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x18]
push ebx
push 2
push edx
call fcn.0041e3a0
mov eax, dword [esp + 0x468]
add esp, 0x14
lea ecx, [esp + 0x14]
push eax
call fcn.004ea7b5
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x450], 4
call fcn.0040ba10
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], 6
call fcn.004ea741
mov edx, dword [esp + 0x18]
cmp dword [edx - 8], ebx
jne 0x40a2e8
push ebp
lea ecx, [esp + 0x30]
call fcn.004ea7b5
mov esi, eax
mov eax, dword [esp + 0x450]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x44c], 7
call fcn.004ea7b5
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push str.Copy_File:_replace_parameter_flag_failed:__s__s__r_n
push eax
mov byte [esp + 0x458], 8
call fcn.004e3c81
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0x448], 7
call fcn.004ea741
lea ecx, [esp + 0x2c]
mov byte [esp + 0x448], 6
call fcn.004ea741
mov ecx, dword [esp + 0x10]
push ebx
push 1
push ecx
call fcn.0041e3a0
add esp, 0xc
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 2
push 0x52b250
push edx
call fcn.0043553a
lea eax, [esp + 0x10]
push str.Step3...
push eax
call fcn.004e3c81
mov ecx, dword [esp + 0x18]
push ebx
push 2
push ecx
call fcn.0041e3a0
mov edx, dword [esp + 0x464]
add esp, 0x14
lea ecx, [esp + 0x24]
push edx
call fcn.004ea7b5
push 0x5c
lea ecx, [esp + 0x28]
mov byte [esp + 0x44c], 9
call fcn.004e3eed
lea eax, [esp + 0x24]
lea edi, [esi + 0x90]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.004ea980
mov eax, dword [eax]
mov byte [esp + 0x448], 0xa
push eax
call fcn.00420db0
add esp, 4
lea ecx, [esp + 0x14]
test eax, eax
sete byte [esp + 0x1f]
mov byte [esp + 0x448], 9
call fcn.004ea741
cmp byte [esp + 0x1f], bl
je 0x40a3d6
push ebp
lea ecx, [esp + 0x18]
call fcn.004ea7b5
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x18]
push str.Copy_File:_Cant_find_source_file:__s__s__r_n
push ecx
mov byte [esp + 0x458], 0xb
call fcn.004e3c81
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], 9
call fcn.004ea741
mov edx, dword [esp + 0x10]
push ebx
push 1
push edx
call fcn.0041e3a0
add esp, 0xc
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 2
push 0x52b250
push eax
call fcn.0043553a
lea ecx, [esp + 0x10]
push str.Step4...
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x18]
push ebx
push 2
push edx
call fcn.0041e3a0
mov eax, dword [esp + 0x2c]
add esp, 0x14
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x40a43b
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004ea980
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44c], 0xc
call fcn.004ea888
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], 9
call fcn.004ea741
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
call fcn.004ea980
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [eax]
push 1
push edx
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
mov ecx, esi
mov byte [esp + 0x45c], 0xd
call fcn.00411790
lea ecx, [esp + 0x14]
mov ebp, eax
mov byte [esp + 0x448], 9
call fcn.004ea741
cmp ebp, ebx
jne 0x40a4d8
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
call fcn.004ea980
mov edx, dword [eax]
lea eax, [esp + 0x10]
push edx
push str.Copy_File:_source_file_be_damaged__file__s__r_n
push eax
mov byte [esp + 0x454], 0xe
call fcn.004e3c81
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], 9
call fcn.004ea741
mov ecx, dword [esp + 0x10]
push ebx
push 1
push ecx
call fcn.0041e3a0
add esp, 0xc
jmp 0x40ab13
lea edx, [esp + 0x10]
push str.Step5...
push edx
call fcn.004e3c81
mov eax, dword [esp + 0x18]
push ebx
push 2
push eax
call fcn.0041e3a0
mov eax, dword [esp + 0x44]
add esp, 0x14
and eax, 0x20
or eax, ebx
je 0x40a58e
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push str.Copy_File:_Check_file_if_exist__file__s__r_n
push edx
call fcn.004e3c81
mov eax, dword [esp + 0x1c]
push ebx
push 1
push eax
call fcn.0041e3a0
mov ecx, dword [esp + 0x30]
add esp, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a563
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push str.Copy_File:_target_file_exist__file__s__r_n
push eax
call fcn.004e3c81
mov ecx, dword [esp + 0x1c]
push ebx
push 1
push ecx
call fcn.0041e3a0
add esp, 0x18
jmp 0x40ab13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x18]
push str.Copy_File:_target_file_not_exist__file__s___error__d__r_n
push eax
call fcn.004e3c81
mov ecx, dword [esp + 0x20]
push ebx
push 1
push ecx
call fcn.0041e3a0
add esp, 0x1c
lea edx, [esp + 0x10]
push str.Step6...
push edx
call fcn.004e3c81
mov eax, dword [esp + 0x18]
push ebx
push 2
push eax
call fcn.0041e3a0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00421920
add esp, 0x18
lea edx, [esp + 0x10]
push str.Step7...
push edx
call fcn.004e3c81
mov eax, dword [esp + 0x18]
push ebx
push 2
push eax
call fcn.0041e3a0
mov eax, dword [esp + 0x44]
add esp, 0x14
and eax, 8
or eax, ebx
je 0x40a653
cmp dword [esi + 0x8c], ebx
jne 0x40a653
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push edi
push edx
call fcn.004ea980
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0x450], 0xf
call fcn.00422f30
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne byte [esp + 0x1f]
mov byte [esp + 0x448], 9
call fcn.004ea741
cmp byte [esp + 0x1f], bl
je 0x40a653
lea edx, [esi + 0x54]
mov ebp, 1
push edx
mov dword [esi + 0x8c], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x4c]
lea ecx, [esi + 0x4c]
mov dword [esi + 0x80], ebp
call dword [eax + 0x14]
lea ecx, [esp + 0x10]
push str.Step8...
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x18]
push ebx
push 2
push edx
call fcn.0041e3a0
mov ebp, dword [esp + 0x44]
add esp, 0x14
lea ecx, [esp + 0x20]
and ebp, 2
push 0x556998
call fcn.004ea7b5
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov byte [esp + 0x454], 0x10
call fcn.004ea980
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
push ebp
lea edx, [esp + 0x24]
push ebx
push edx
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x45c], 0x11
call fcn.00410710
test eax, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], 0x10
sete byte [esp + 0x1f]
call fcn.004ea741
cmp byte [esp + 0x1f], bl
je 0x40a74f
mov edx, dword [esp + 0x458]
lea ecx, [esp + 0x14]
push edx
call fcn.004ea7b5
mov esi, eax
mov byte [esp + 0x448], 0x12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esi]
lea edx, [esp + 0x14]
push eax
push ecx
push str.CopyFile_to_target_failed:__s__s___LastError:_d
push edx
call fcn.004e3c81
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], 0x10
call fcn.004ea741
mov eax, dword [esp + 0x10]
push ebx
push 1
push eax
call fcn.0041e3a0
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 2
push 0x52b250
push ecx
call fcn.0043553a
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push 1
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00411790
cmp eax, ebx
je 0x40aad4
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push 0x10000000
push eax
push ecx
mov dword [esp + 0x38], ebx
call fcn.00405de0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push edx
mov edx, dword [esp + 0x30]
push ecx
push edx
push eax
lea eax, [esp + 0x20]
push str.Step9..._1__ret:__d___e:__d___p:__s__pTmp:__s_
push eax
call fcn.004e3c81
mov ecx, dword [esp + 0x28]
push ebx
push 1
push ecx
call fcn.0041e3a0
add esp, 0x24
call fcn.0047a8a0
test eax, eax
je 0x40a811
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push 0x10000000
push edx
push eax
mov dword [esp + 0x38], ebx
call fcn.00405e80
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
add esp, 0xc
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ecx
push eax
lea edx, [esp + 0x20]
push str.Step9..._2__ret:__d___e:__d___p:__s__pTmp:__s_
push edx
call fcn.004e3c81
mov eax, dword [esp + 0x28]
push ebx
push 1
push eax
call fcn.0041e3a0
add esp, 0x24
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 3
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40a96c
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x38]
push eax
call fcn.00454fb0
mov edi, eax
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x448], 0x13
push ecx
lea ecx, [esp + 0x2c]
call fcn.00454fb0
mov dword [esp + 0x14], eax
mov byte [esp + 0x448], 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x18]
push ebp
push edx
lea edx, [esp + 0x1c]
mov ecx, dword [eax]
push ecx
push str.Step10...___s____s___d__0x_08x_
push edx
call fcn.004e3c81
add esp, 0x18
lea ecx, [esp + 0x28]
mov byte [esp + 0x448], 0x13
call fcn.00455820
lea ecx, [esp + 0x38]
mov byte [esp + 0x448], 0x10
call fcn.00455820
mov eax, dword [esp + 0x10]
push ebx
push 2
push eax
call fcn.0041e3a0
add esp, 0xc
cmp ebp, ebx
je 0x40a9c2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 5
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
call fcn.00454fb0
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x448], 0x15
push ecx
lea ecx, [esp + 0x2c]
call fcn.00454fb0
mov dword [esp + 0x14], eax
mov byte [esp + 0x448], 0x16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
push eax
push edi
mov eax, dword [edx]
mov edx, dword [ecx]
push eax
push edx
lea eax, [esp + 0x20]
push str.Step11...___s___s___d__0x_08x_
push eax
call fcn.004e3c81
add esp, 0x18
lea ecx, [esp + 0x28]
mov byte [esp + 0x448], 0x15
call fcn.00455820
lea ecx, [esp + 0x3c]
mov byte [esp + 0x448], 0x10
call fcn.00455820
mov ecx, dword [esp + 0x10]
push ebx
push 2
push ecx
call fcn.0041e3a0
add esp, 0xc
cmp edi, ebx
jne 0x40a96c
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebp, ebx
je 0x40a99e
cmp dword [esi + 0x8c], ebx
jne 0x40a99e
lea edx, [esi + 0x54]
mov edi, 1
push edx
mov dword [esi + 0x8c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x80], edi
add esi, 0x4c
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [esp + 0x10]
push str.Step_End__r_n
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x18]
push ebx
push 2
push edx
call fcn.0041e3a0
add esp, 0x14
jmp 0x40ab02
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], bx
mov edx, dword [esp + 0x18]
push 0x200
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, esi
call fcn.00411d80
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x40]
push 3
push ecx
push edx
call edi
cmp eax, ebx
je 0x40a961
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push 3
push eax
push ecx
call edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push edx
mov edi, eax
call fcn.00454fb0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x44c], 0x17
call fcn.00454fb0
mov dword [esp + 0x38], eax
mov byte [esp + 0x448], 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push edi
mov edx, dword [ecx]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esp + 0x20]
push str.Step11...___s___s___d__0x_08x_
push edx
call fcn.004e3c81
add esp, 0x18
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], 0x17
call fcn.00455820
lea ecx, [esp + 0x28]
mov byte [esp + 0x448], 0x10
call fcn.00455820
mov eax, dword [esp + 0x10]
push ebx
push 2
push eax
call fcn.0041e3a0
add esp, 0xc
cmp edi, ebx
je 0x40aabd
push 4
lea ecx, [esp + 0x44]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40a99e
mov edx, dword [esp + 0x18]
push 3
lea eax, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40a961
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push str.Copy_File:_target_file_be_damaged__file__s__r_n
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x1c]
push ebx
push 1
push edx
call fcn.0041e3a0
mov eax, dword [esp + 0x38]
push eax
call fcn.0041c6d0
add esp, 0x1c
lea ecx, [esp + 0x20]
mov byte [esp + 0x448], 9
call fcn.004ea741
lea ecx, [esp + 0x24]
mov byte [esp + 0x448], 6
call fcn.004ea741
lea ecx, [esp + 0x18]
mov byte [esp + 0x448], bl
call fcn.004ea741
lea ecx, [esp + 0x10]
mov dword [esp + 0x448], 0xffffffff
call fcn.004ea741
mov ecx, dword [esp + 0x440]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x43c
ret 0xc