Function at 0x40ad10
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51247d
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x55d198]
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 edi, ecx
lea eax, [ebp - 0x60]
mov dword [ebp - 0x44], 0
push eax
call fcn.0040b5e0
mov ebx, eax
lea esi, [edi + 0x54]
cmp esi, ebx
je 0x40ad93
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40ad6c
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403a50
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40ad84
mov eax, dword [esi]
jmp 0x40ad86
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.004032c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x40adaf
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.00403a50
call fcn.00404640
cmp dword [eax + 0x48], 2
jne 0x40ae35
cmp dword [edi + 4], 0
jne 0x40aecd
push 0xe8
call fcn.004d1637
mov ebx, eax
mov dword [ebp - 0x48], ebx
push 0xe8
push 0
push ebx
mov dword [ebp - 4], 1
call fcn.00444b40
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], vtable.std::_Func_impl_class__lambda_4221ece70c59842289871b2fb3427688___class_std::allocator_int___void__int__double__wchar_t_const__.0
add esp, 0x10
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x44], 1
jb 0x40ae0f
mov ecx, dword [esi]
jmp 0x40ae11
mov ecx, esi
cmp dword [edi + 0x20], 8
lea eax, [edi + 0xc]
jb 0x40ae1c
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.0040a3a0
mov dword [edi + 4], eax
mov dword [ebp - 4], 4
jmp 0x40aeae
cmp dword [edi + 4], 0
jne 0x40aecd
push 0xf8
call fcn.004d1637
mov ebx, eax
mov dword [ebp - 0x48], ebx
push 0xf8
push 0
push ebx
mov dword [ebp - 4], 5
call fcn.00444b40
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], vtable.std::_Func_impl_class__lambda_4221ece70c59842289871b2fb3427688___class_std::allocator_int___void__int__double__wchar_t_const__.0
add esp, 0x10
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 6
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x44], 2
jb 0x40ae8a
mov ecx, dword [esi]
jmp 0x40ae8c
mov ecx, esi
cmp dword [edi + 0x20], 8
lea eax, [edi + 0xc]
jb 0x40ae97
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.00404ed0
mov dword [edi + 4], eax
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x40aec6
mov edx, dword [ecx]
lea eax, [ebp - 0x70]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 8], 0
jne 0x40af6b
push 0x90
call fcn.004d1637
mov ebx, eax
mov dword [ebp - 0x48], ebx
push 0x90
push 0
push ebx
mov dword [ebp - 4], 9
call fcn.00444b40
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], vtable.std::_Func_impl_class__lambda_a56d5493187b1b0e92fb87195bf25472___class_std::allocator_int___void__int__double__wchar_t_const__.0
add esp, 0x10
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0xa
lea ecx, [edi + 0x3c]
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x44], 4
jb 0x40af23
mov ecx, dword [ecx]
cmp dword [esi + 0x14], 8
jb 0x40af2b
mov esi, dword [esi]
movzx eax, byte [edi + 0x6d]
push eax
movzx eax, byte [edi + 0x6c]
push eax
push ecx
push esi
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.0040b910
mov dword [edi + 8], eax
mov dword [ebp - 4], 0xc
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x40af64
mov edx, dword [ecx]
lea eax, [ebp - 0x70]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x50], 8
lea edx, [edi + 0x3c]
jb 0x40af76
mov edx, dword [edx]
cmp word [edx], 0
mov ebx, dword [edi + 8]
jne 0x40af83
xor ecx, ecx
jmp 0x40af9f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40af90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x40]
call fcn.00403800
mov eax, dword [edi + 8]
lea esi, [edi + 0x24]
mov cl, byte [edi + 0x6c]
mov byte [eax + 0x71], cl
mov eax, dword [edi + 8]
mov cl, byte [edi + 0x6d]
mov byte [eax + 0x70], cl
cmp dword [esi + 0x14], 8
jb 0x40afc8
mov eax, dword [esi]
jmp 0x40afca
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b0ed
lea eax, [ebp - 0x40]
push eax
call fcn.0040b520
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xd
push eax
mov ecx, edi
call fcn.0040b450
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
cmp dword [esi + 0x14], 8
jb 0x40b00b
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x80
call fcn.004d1637
mov esi, eax
mov dword [ebp - 0x48], esi
push 0x80
push 0
push esi
call fcn.00444b40
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], vtable.std::_Func_impl_class__lambda_155d13b2b784f25dc8ecb5ca956f44e7___class_std::allocator_int___void__int__double__wchar_t_const__.0
add esp, 0x10
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], 8
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00405580
mov dword [edi], eax
mov dword [ebp - 4], 0x12
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x40b0a2
mov edx, dword [ecx]
lea eax, [ebp - 0x98]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 4], 0xe
mov ecx, dword [edi]
call fcn.004057c0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40b0c2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403a50
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x40b0f4
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403a50
jmp 0x40b0f4
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax]
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.004d1626
mov esp, ebp
pop ebp
ret