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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532122
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x5796f4]
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
mov dword [ebp - 0x74], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x57f3bc]
cmp eax, dword [ecx + 4]
jle 0x40f665
push 0x57f3bc
call fcn.004ee0bd
add esp, 4
cmp dword [0x57f3bc], 0xffffffff
jne 0x40f665
xor eax, eax
mov dword [0x57f3b8], 7
push 0x5397e0
mov dword [0x57f3b4], 0
mov word [0x57f3a4], ax
call fcn.004edf6f
push 0x57f3bc
call fcn.004ee07e
add esp, 8
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.00410cc0
mov ebx, eax
lea esi, [edi + 0x54]
cmp esi, ebx
je 0x40f6b6
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40f68f
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004017c0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40f6a7
mov eax, dword [esi]
jmp 0x40f6a9
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.004034c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
cmp eax, 8
jb 0x40f6d8
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.004017c0
mov ebx, dword [0x57f310]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x3e
xor eax, eax
mov dword [ebp - 0x7c], 7
push str._P_05d__T_05d___04d__02d__02d__02d:_02d:_02d._03d___s___04d_:
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
call fcn.00403170
push 0xc
push str.DL_TYPE_d_r_n
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 1
call fcn.00403390
mov dword [ebp - 0x74], eax
cmp dword [eax + 0x14], 8
jb 0x40f738
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
movzx eax, word [ebp - 0x12]
push ebx
push 0xc1
push str.CDownloadInstaller::Start
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp - 0x74]
call fcn.00421d70
mov dword [ebp - 4], 0xffffffff
add esp, 0x34
mov eax, dword [ebp - 0x7c]
cmp eax, 8
jb 0x40f7a1
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.004017c0
cmp dword [edi + 4], 0
jne 0x40f951
sub ebx, 2
je 0x40f8ba
sub ebx, 1
je 0x40f83d
push 0xf8
call fcn.004edccc
mov ebx, eax
mov dword [ebp - 0x78], ebx
push 0xf8
push 0
push ebx
mov dword [ebp - 4], 0xa
call fcn.004d7080
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], vtable.std::_Func_impl_class__lambda_1ef34beec4aa6ee6dcdb475b7b5e6dc9___class_std::allocator_int___void__int__double__wchar_t_const__.0
add esp, 0x10
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 0xb
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x74], 4
jb 0x40f811
mov ecx, dword [esi]
jmp 0x40f813
mov ecx, esi
cmp dword [edi + 0x20], 8
lea eax, [edi + 0xc]
jb 0x40f81e
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0xa0]
mov ecx, ebx
push eax
call fcn.004040c0
mov dword [edi + 4], eax
mov dword [ebp - 4], 0xd
jmp 0x40f92f
push 0xf0
call fcn.004edccc
mov ebx, eax
mov dword [ebp - 0x78], ebx
push 0xf0
push 0
push ebx
mov dword [ebp - 4], 2
call fcn.004d7080
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], vtable.std::_Func_impl_class__lambda_1ef34beec4aa6ee6dcdb475b7b5e6dc9___class_std::allocator_int___void__int__double__wchar_t_const__.0
add esp, 0x10
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x74], 1
jb 0x40f891
mov ecx, dword [esi]
jmp 0x40f893
mov ecx, esi
cmp dword [edi + 0x20], 8
lea eax, [edi + 0xc]
jb 0x40f89e
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0xa0]
mov ecx, ebx
push eax
call fcn.00408400
mov dword [edi + 4], eax
mov dword [ebp - 4], 5
jmp 0x40f92f
push 0x68
call fcn.004edccc
mov ebx, eax
mov dword [ebp - 0x78], ebx
push 0x68
push 0
push ebx
mov dword [ebp - 4], 6
call fcn.004d7080
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], vtable.std::_Func_impl_class__lambda_1ef34beec4aa6ee6dcdb475b7b5e6dc9___class_std::allocator_int___void__int__double__wchar_t_const__.0
add esp, 0x10
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x74], 2
jb 0x40f908
mov ecx, dword [esi]
jmp 0x40f90a
mov ecx, esi
cmp dword [edi + 0x20], 8
lea eax, [edi + 0xc]
jb 0x40f915
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0xa0]
mov ecx, ebx
push eax
call fcn.0041eed0
mov dword [edi + 4], eax
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x40f94a
mov edx, dword [ecx]
lea eax, [ebp - 0xa0]
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 0x40faa7
push 0xb0
call fcn.004edccc
mov ebx, eax
mov dword [ebp - 0x78], ebx
push 0xb0
push 0
push ebx
mov dword [ebp - 4], 0xe
call fcn.004d7080
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe0], vtable.std::_Func_impl_class__lambda_24067508fd8a8421ced2421109ecf87a___class_std::allocator_int___void__int__double__wchar_t_const__.0
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x28]
push esi
mov dword [ebp - 0x74], 8
call fcn.00410d80
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x90]
push 0x563b74
mov edx, eax
mov dword [ebp - 0x74], 0x18
call fcn.00410e50
add esp, 0x18
mov ecx, eax
mov dword [ebp - 4], 0x11
lea edx, [edi + 0x3c]
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x74], 0x38
jb 0x40f9ec
mov edx, dword [edx]
cmp dword [ecx + 0x14], 8
jb 0x40f9f4
mov ecx, dword [ecx]
movzx eax, byte [edi + 0x9e]
push ecx
push eax
movzx eax, byte [edi + 0x9d]
push eax
movzx eax, byte [edi + 0x9c]
push eax
push edx
push ecx
lea eax, [ebp - 0xe0]
mov ecx, ebx
push eax
call fcn.00411070
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x7c]
cmp eax, 8
jb 0x40fa3b
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.004017c0
xor eax, eax
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x80], 0
cmp eax, 8
jb 0x40fa67
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004017c0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0x15
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x40faa0
mov edx, dword [ecx]
lea eax, [ebp - 0xe0]
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 0x40fab2
mov edx, dword [edx]
cmp word [edx], 0
mov ebx, dword [edi + 8]
jne 0x40fabf
xor ecx, ecx
jmp 0x40fad3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fac4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x40]
call fcn.00403170
mov eax, dword [edi + 8]
mov cl, byte [edi + 0x9c]
push 0xffffffffffffffff
mov dword [ebp - 0xa4], 7
mov byte [eax + 0x71], cl
mov eax, dword [edi + 8]
mov cl, byte [edi + 0x9d]
mov dword [ebp - 0xa8], 0
mov byte [eax + 0x70], cl
mov eax, dword [edi + 8]
mov cl, byte [edi + 0x9e]
mov byte [eax + 0x90], cl
mov eax, dword [edi + 8]
mov cl, byte [edi + 0x9f]
mov byte [eax + 0x91], cl
xor ecx, ecx
push ecx
lea eax, [edi + 0x84]
mov word [ebp - 0xb8], cx
push eax
lea ecx, [ebp - 0xb8]
call fcn.00403270
mov ecx, dword [edi + 8]
add ecx, 0x94
mov dword [ebp - 4], 0x16
lea eax, [ebp - 0xb8]
cmp ecx, eax
je 0x40fb69
push 0xffffffffffffffff
push 0
push eax
call fcn.00403270
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa4]
cmp eax, 8
jb 0x40fb8e
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.004017c0
cmp dword [edi + 0x38], 8
lea esi, [edi + 0x24]
jb 0x40fb9b
mov eax, dword [esi]
jmp 0x40fb9d
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fd16
lea eax, [ebp - 0x58]
push eax
call fcn.00410c00
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0x17
push eax
mov ecx, edi
call fcn.00410b30
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
cmp dword [esi + 0x14], 8
jb 0x40fbde
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x80
call fcn.004edccc
mov esi, eax
mov dword [ebp - 0x78], esi
push 0x80
push 0
push esi
call fcn.004d7080
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe0], vtable.std::_Func_impl_class__lambda_961fe29c4bd361c4f51c5a55f0eb8428___class_std::allocator_int___void__int__double__wchar_t_const__.0
add esp, 0x10
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x58]
mov dword [ebp - 0x74], 0x40
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
mov ecx, esi
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0040bec0
mov dword [edi], eax
mov dword [ebp - 4], 0x1c
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x40fc7b
mov edx, dword [ecx]
lea eax, [ebp - 0xe0]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 4], 0x18
cmp byte [0x57f340], 0
je 0x40fccf
push 0x563b78
lea ecx, [ebp - 0x70]
call fcn.00403010
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
cmovae ecx, dword [ebp - 0x70]
call fcn.0040f4f0
push 0x64
mov esi, eax
call ebx
test esi, esi
jne 0x40fca0
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40fccf
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004017c0
mov ecx, dword [edi]
call fcn.0040c100
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40fceb
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004017c0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x40fd1d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004017c0
jmp 0x40fd1d
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.004edc8a
mov esp, ebp
pop ebp
ret