Function at 0x40dbf0
Capabilities:
Check if file exists
Copy file
Create directory
Create process on windows
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c79bb
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x50545c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x24]
call fcn.00452618
mov byte [ebp - 4], 2
push 0x4d3b3c
lea ecx, [ebp - 0x5c]
call fcn.00412370
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.0040f190
add esp, 0xc
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x5c]
sub eax, 0x10
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
call fcn.004029d0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0xb4], ecx
push 0
mov edx, dword [ebp - 0xb4]
push edx
lea ecx, [ebp - 0x24]
call fcn.004526d5
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x40dd11
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
call fcn.004029d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00452641
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 8]
sub ecx, 0x10
mov dword [ebp - 0xbc], ecx
mov ecx, dword [ebp - 0xbc]
call fcn.004029d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
sub edx, 0x10
mov dword [ebp - 0xc0], edx
mov ecx, dword [ebp - 0xc0]
call fcn.004029d0
mov eax, dword [ebp - 0x60]
jmp 0x40e881
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dd37
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x38]
call fcn.00412940
mov byte [ebp - 4], 6
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x34]
call fcn.00412940
mov byte [ebp - 4], 7
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x44]
call fcn.00412940
mov byte [ebp - 4], 8
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x28]
call fcn.00412940
mov byte [ebp - 4], 9
cmp dword [ebp - 0x40], 0
je 0x40e807
lea ecx, [ebp - 0x24]
call fcn.0045221f
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x24]
call fcn.004525c2
test eax, eax
je 0x40dda2
jmp 0x40dd7f
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x24]
call fcn.004529c1
mov dword [ebp - 0x1dc], eax
mov ecx, dword [ebp - 0x1dc]
mov dword [ebp - 0xc8], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0xc8]
push edx
lea ecx, [ebp - 0x44]
call fcn.00412a10
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x64]
sub eax, 0x10
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
call fcn.004029d0
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00412a10
push 1
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x38]
call fcn.0040f040
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0xd0], edx
cmp dword [ebp - 0xd0], 1
jne 0x40de50
push 0
mov ecx, dword [ebp - 0xd4]
call fcn.0040fd40
movzx eax, ax
mov ecx, 0x5c
movzx edx, cx
cmp eax, edx
jne 0x40de50
mov dword [ebp - 0x1e0], 0
jmp 0x40de5a
mov dword [ebp - 0x1e0], 1
mov al, byte [ebp - 0x1e0]
mov byte [ebp - 0x65], al
mov ecx, dword [ebp - 0x6c]
sub ecx, 0x10
mov dword [ebp - 0xd8], ecx
mov ecx, dword [ebp - 0xd8]
call fcn.004029d0
movzx edx, byte [ebp - 0x65]
test edx, edx
je 0x40de92
mov ax, 0x5c
movzx ecx, ax
push ecx
lea ecx, [ebp - 0x38]
call fcn.00412b80
mov edx, dword [ebp - 0x44]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
push ecx
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x38]
call fcn.00411880
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
call fcn.00412a10
push 1
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040f040
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0xe0], ecx
cmp dword [ebp - 0xe0], 1
jne 0x40df13
push 0
mov ecx, dword [ebp - 0xe4]
call fcn.0040fd40
movzx edx, ax
mov eax, 0x5c
movzx ecx, ax
cmp edx, ecx
jne 0x40df13
mov dword [ebp - 0x1e4], 0
jmp 0x40df1d
mov dword [ebp - 0x1e4], 1
mov dl, byte [ebp - 0x1e4]
mov byte [ebp - 0x6d], dl
lea ecx, [ebp - 0x74]
call fcn.004129d0
movzx eax, byte [ebp - 0x6d]
test eax, eax
je 0x40df46
mov cx, 0x5c
movzx edx, cx
push edx
lea ecx, [ebp - 0x34]
call fcn.00412b80
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0xec], ecx
mov edx, dword [ebp - 0xec]
push edx
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x34]
call fcn.00411880
push 0x10
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
mov eax, dword [edx + 0x38]
call eax
test eax, eax
je 0x40e02a
mov ecx, dword [ebp + 0x10]
push ecx
push ecx
mov edx, esp
mov dword [ebp - 0x78], esp
mov dword [ebp - 0xf8], edx
mov eax, dword [ebp - 0x38]
sub eax, 0x10
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.00412ee0
add esp, 4
mov dword [ebp - 0xf4], eax
mov edx, dword [ebp - 0xf4]
add edx, 0x10
mov eax, dword [ebp - 0xf8]
mov dword [eax], edx
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0x1e8], ecx
mov byte [ebp - 4], 0xb
push ecx
mov edx, esp
mov dword [ebp - 0x7c], esp
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x34]
sub eax, 0x10
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.00412ee0
add esp, 4
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x100]
add edx, 0x10
mov eax, dword [ebp - 0x104]
mov dword [eax], edx
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x1ec], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1d8]
call fcn.0040dbf0
jmp 0x40e802
mov edx, str.UpdatePatch.exe
neg edx
sbb edx, edx
neg edx
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x108], edx
jne 0x40e04d
push 0x80004005
call fcn.00405b70
xor eax, eax
jne 0x40e02a
xor ecx, ecx
jne 0x40e051
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x10c], edx
push str.UpdatePatch.exe
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00494296
add esp, 8
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x40e086
jmp 0x40dd7f
mov ecx, str.CDGMenu64.dll
neg ecx
sbb ecx, ecx
neg ecx
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x114], ecx
jne 0x40e0a9
push 0x80004005
call fcn.00405b70
xor edx, edx
jne 0x40e086
xor eax, eax
jne 0x40e0ad
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x118], ecx
push str.CDGMenu64.dll
mov edx, dword [ebp - 0x118]
push edx
call fcn.00494296
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x40e138
mov eax, str.CDGMenu.dll
neg eax
sbb eax, eax
neg eax
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x120], eax
jne 0x40e100
push 0x80004005
call fcn.00405b70
xor ecx, ecx
jne 0x40e0dd
xor edx, edx
jne 0x40e104
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x124], eax
push str.CDGMenu.dll
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.00494296
add esp, 8
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x40e561
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x12c], eax
push 0
mov ecx, dword [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040ee60
cmp eax, 0xffffffff
je 0x40e561
call fcn.0044fb81
push eax
lea ecx, [ebp - 0x4c]
call fcn.00412940
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x38]
push edx
push str._u___s____
lea eax, [ebp - 0x80]
push eax
call fcn.0040f350
add esp, 0xc
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], ecx
mov byte [ebp - 4], 0xd
push 0x4d3ac8
mov edx, dword [ebp - 0x1f4]
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f8]
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00412a10
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x84]
call fcn.004129d0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x80]
call fcn.004129d0
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
push str.regsvr32.exe
push 0x4d3aa0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp - 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffff
je 0x40e24b
mov eax, dword [ebp - 0x48]
and eax, 1
je 0x40e24b
mov ecx, dword [ebp - 0x48]
and ecx, 0xfffffffe
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str.update_
mov eax, dword [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 0x1fc], eax
mov edx, dword [ebp - 0x1fc]
mov dword [ebp - 0x200], edx
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x200]
push ecx
lea edx, [ebp - 0x8c]
push edx
call fcn.0040f190
add esp, 0xc
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 0x10
push str..tmp
mov ecx, dword [ebp - 0x208]
push ecx
lea edx, [ebp - 0x90]
push edx
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00412a10
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x90]
call fcn.004129d0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x8c]
call fcn.004129d0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x88]
call fcn.004129d0
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x15c], edx
mov eax, dword [ebp - 0x15c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x160], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x164], eax
push 0
mov ecx, dword [ebp - 0x160]
push ecx
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40e36b
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x2c], 0
je 0x40e38f
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push str.CopyDriectory111_CopyFile_Succeed___s_____s.
mov edx, dword [ebp - 0x1d8]
push edx
call fcn.00401a70
add esp, 0x10
jmp 0x40e3b2
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyDriectory111_CopyFile_Fail__LastError__d___s_____s.
mov edx, dword [ebp - 0x1d8]
push edx
call fcn.00401a70
add esp, 0x14
cmp dword [ebp - 0x48], 0xffffffff
je 0x40e3ce
mov eax, dword [ebp - 0x48]
and eax, 1
je 0x40e3ce
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x38]
push eax
push str._s____
lea ecx, [ebp - 0x94]
push ecx
call fcn.0040f350
add esp, 0xc
mov dword [ebp - 0x210], eax
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x214], edx
mov byte [ebp - 4], 0x12
push 0x4d399c
mov eax, dword [ebp - 0x214]
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 0x218], eax
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x168], edx
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x168]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00412a10
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x98]
call fcn.004129d0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x94]
call fcn.004129d0
push 0
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
push str.regsvr32.exe
push 0x4d3aa0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push str.update_
mov edx, dword [ebp - 0x1d8]
push edx
lea eax, [ebp - 0x9c]
push eax
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0xa0]
push ecx
call fcn.0040f190
add esp, 0xc
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x228], edx
mov byte [ebp - 4], 0x15
push str..tmp
mov eax, dword [ebp - 0x228]
push eax
lea ecx, [ebp - 0xa4]
push ecx
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 0x22c], eax
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x174], edx
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x174]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00412a10
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xa4]
call fcn.004129d0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xa0]
call fcn.004129d0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x9c]
call fcn.004129d0
push 4
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4c]
call fcn.004129d0
jmp 0x40dd7f
cmp dword [ebp + 0x10], 0
je 0x40e6ff
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffffff
je 0x40e5db
mov ecx, dword [ebp - 0x50]
and ecx, 1
je 0x40e5db
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x18c], edx
mov eax, dword [ebp - 0x50]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp - 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x40e5db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x34]
push eax
push str.CopyDriectory222_Set_SetFileAttributes_Fail___s_____s.ErrorCode:_d
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.00401a70
add esp, 0x14
push 0x10000000
push str.EveryOne
mov edx, dword [ebp - 0x34]
push edx
call section..text
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x190], eax
push 0x10000000
push str.EveryOne
mov ecx, dword [ebp - 0x190]
push ecx
call section..text
add esp, 0xc
test eax, eax
je 0x40e635
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x34]
push eax
push str.CopyDriectory222_Set_EveryOneAccess_Ok___s_____s.
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.00401a70
add esp, 0x10
jmp 0x40e658
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x34]
push eax
push str.CopyDriectory222_Set_EveryOneAccess_Ok___s_____s.ErrorCode:_d
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.00401a70
add esp, 0x14
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x198], eax
push 5
mov ecx, dword [ebp - 0x194]
push ecx
mov edx, dword [ebp - 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40e6b3
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyDriectory2224444_MoveFileEx_Fail__LastError__d___s_____s.
mov edx, dword [ebp - 0x1d8]
push edx
call fcn.00401a70
add esp, 0x14
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x2c], 0
je 0x40e6d7
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push str.CopyDriectory222_MoveFileEx_Succeed___s_____s.
mov edx, dword [ebp - 0x1d8]
push edx
call fcn.00401a70
add esp, 0x10
jmp 0x40e6fa
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyDriectory222_MoveFileEx_Fail__LastError__d___s_____s.
mov edx, dword [ebp - 0x1d8]
push edx
call fcn.00401a70
add esp, 0x14
jmp 0x40e802
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x19c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
je 0x40e737
mov edx, dword [ebp - 0x58]
and edx, 1
je 0x40e737
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x28]
call fcn.00412a10
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1b4], ecx
push 0
mov edx, dword [ebp - 0x1b0]
push edx
mov eax, dword [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1b8], ecx
push 5
mov edx, dword [ebp - 0x1b8]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x2c], 0
jne 0x40e797
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x2c], 0
je 0x40e7bf
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x34]
push eax
push str.CopyDriectory333_CopyFile_Succeed___s_____s.strTemp:_s
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.00401a70
add esp, 0x14
jmp 0x40e7e6
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyDriectory333_CopyFile_Fail__LastError__d___s_____s.strTemp:_s
mov edx, dword [ebp - 0x1d8]
push edx
call fcn.00401a70
add esp, 0x18
cmp dword [ebp - 0x58], 0xffffffff
je 0x40e802
mov eax, dword [ebp - 0x58]
and eax, 1
je 0x40e802
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40dd7f
lea ecx, [ebp - 0x24]
call fcn.00452139
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.004129d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x44]
call fcn.004129d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.004129d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call fcn.004129d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.004129d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00452641
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004129d0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc