Function at 0x415ad0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab024
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4cc850]
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 - 0xa4], eax
mov eax, dword [eax + 0x68]
xor esi, esi
mov ebx, ecx
push 0xffffffffffffffff
add eax, 0x1c
push esi
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], esi
mov word [ebp - 0x9c], si
call fcn.00406430
mov dword [ebp - 4], esi
mov dword [ebp - 0xb0], esi
call fcn.004560b0
mov byte [ebp - 4], 1
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
mov dword [ebp - 0xf0], eax
jbe 0x415b64
call fcn.00484029
mov dword [ebp - 0xe4], esi
lea ebx, [ebx]
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
jbe 0x415b7d
call fcn.00484029
test ebx, ebx
je 0x415b85
cmp ebx, ebx
je 0x415b8a
call fcn.00484029
cmp esi, edi
je 0x416351
test ebx, ebx
jne 0x415b9b
call fcn.00484029
cmp esi, dword [ebx + 8]
jb 0x415ba5
call fcn.00484029
mov eax, dword [ebp - 0xf0]
test eax, eax
mov edi, dword [esi]
mov dword [ebp - 0xac], edi
jne 0x415bc3
cmp dword [edi + 0x10], 1
je 0x41631a
jmp 0x415bdd
cmp dword [edi + 0x10], 1
jne 0x415bd0
call fcn.00456260
jmp 0x415bd5
call fcn.004562f0
test al, al
je 0x416351
mov eax, dword [ebp - 0xa4]
add eax, 0x70
push eax
mov ebx, str.INST_
lea esi, [ebp - 0xd0]
call fcn.00407ff0
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x415c15
cmp dword [ecx + 0x20], 8
jb 0x415c10
mov ecx, dword [ecx + 0xc]
jmp 0x415c17
add ecx, 0xc
jmp 0x415c17
xor ecx, ecx
push eax
mov ebx, ecx
lea esi, [ebp - 0x84]
call fcn.00407ff0
add esp, 4
mov esi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0xb8], esi
jb 0x415c48
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.004692b1
add esp, 4
mov eax, dword [edi + 0x14]
xor ebx, ebx
cmp eax, ebx
mov ecx, 7
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xbc], ebx
mov word [ebp - 0xcc], bx
je 0x415c78
cmp dword [eax + 0x1c], esi
jb 0x415c73
mov edx, dword [eax + 8]
jmp 0x415c7a
lea edx, [eax + 8]
jmp 0x415c7a
xor edx, edx
mov eax, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], bx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415c90
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [ebp - 0x4c]
call fcn.00406d50
mov esi, dword [ebp - 0xa4]
mov byte [ebp - 4], 5
cmp dword [esi + 0x64], 1
jne 0x415d35
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x68]
lea edx, [esi + 0x90]
push edx
mov edx, dword [esi + 0x58]
push ecx
add eax, 0x1c
push edx
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00453430
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0xd0]
push edx
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 6
call fcn.00455920
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.00406430
cmp dword [ebp - 0xb8], 8
jb 0x415d1c
mov eax, dword [ebp - 0xcc]
push eax
call fcn.004692b1
add esp, 4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x11c]
mov dword [ebp - method.CAUEnv.virtual_0], vtable.CAUEnv.0
call fcn.00406b70
cmp dword [esi + 0x64], 2
jne 0x415dac
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x5c]
push ecx
add eax, 0x1c
push eax
lea edx, [ebp - 0x110]
push edx
call fcn.00452b10
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xd0]
push ecx
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 8
call fcn.00455920
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.00406430
cmp dword [ebp - 0xb8], 8
jb 0x415d93
mov edx, dword [ebp - 0xcc]
push edx
call fcn.004692b1
add esp, 4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x10c]
mov dword [ebp - method.CAUEnv.virtual_0], vtable.CAUEnv.0
call fcn.00406b70
mov esi, dword [ebp - 0xa4]
mov edi, dword [esi + 0xb4]
lea eax, [ebp - 0x128]
push eax
add esi, 0xb0
push esi
lea eax, [ebp - 0x4c]
mov byte [ebp - 0xa5], 0
call fcn.00423990
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x415de1
cmp eax, esi
je 0x415de6
call fcn.00484029
cmp dword [ebx + 4], edi
mov al, 1
jne 0x415df3
mov al, byte [ebp - 0xa5]
test al, al
mov byte [ebp - 0xec], 0
jne 0x416006
mov ebx, dword [ebp + 0xc]
test bl, bl
mov eax, dword [ebp - 0x48]
jne 0x415e76
cmp dword [ebp - 0x34], 8
jae 0x415e15
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x415f27
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x415f2d
cmp eax, 2
je 0x415f2d
cmp eax, 3
je 0x415f2d
lea ecx, [ebp - 0x100]
call fcn.00483c47
push 0x4c04d0
lea ecx, [ebp - 0x100]
push ecx
mov dword [ebp - method.CUpdaterException.virtual_0], vtable.CUpdaterException.0
mov dword [ebp - 0xf4], 0xffffffff
call fcn.0048aacb
cmp dword [ebp - 0x34], 8
jae 0x415e7f
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x415f27
lea edx, [ebp - 0x4c]
mov byte [ebp - 0xec], al
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.0041d1c0
test al, al
jne 0x415f27
mov ecx, dword [ebp - 0xac]
cmp dword [ecx + 8], 2
jne 0x415f0b
mov esi, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xb4]
cmp esi, dword [edx + 8]
jb 0x415ecb
call fcn.00484029
mov eax, dword [esi]
mov ecx, dword [ebp - 0xa4]
push ebx
push eax
call fcn.00419250
mov esi, dword [ebp - 0xa4]
cmp dword [esi + 0x64], 1
jne 0x416039
cmp byte [ebp + 0xc], 0
jne 0x416021
mov eax, dword [esi + 0xcc]
mov ecx, dword [ebp - 0xac]
push eax
call fcn.00428b40
jmp 0x416039
lea ecx, [ebp - 0x4c]
call fcn.00401a00
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00401a00
jmp 0x41631a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], di
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x48]
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jae 0x415f51
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x30]
push edx
call fcn.0043ddf0
lea eax, [ebp - 0x30]
add esp, 4
push eax
call fcn.0043e540
mov ecx, dword [ebp - 0x48]
add esp, 4
cmp dword [ebp - 0x34], ebx
jae 0x415f74
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x6c], ebx
mov eax, dword [ebp - 0x80]
jae 0x415f7f
lea eax, [ebp - 0x80]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x415fac
call esi
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x4c]
push ecx
push edx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xb0], eax
call fcn.0041d2f0
jmp 0x415fe8
call esi
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xac]
cmp dword [eax + 8], 2
jne 0x415fe8
mov esi, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xb4]
cmp esi, dword [ecx + 8]
jb 0x415fd6
call fcn.00484029
mov edx, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, dword [ebp - 0xa4]
push edx
push eax
call fcn.00419250
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], ebx
jb 0x415eda
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004692b1
add esp, 4
jmp 0x415eda
mov esi, dword [ebp - 0xa4]
lea edx, [ebp - 0x4c]
push edx
push esi
lea ecx, [ebp - 0x84]
call fcn.0041d2f0
jmp 0x415ee0
mov ecx, dword [ebp - 0xec]
mov edx, dword [ebp - 0xac]
push ecx
mov ecx, dword [esi + 0xcc]
call fcn.00427ce0
cmp dword [esi + 0x64], 2
jne 0x41604e
mov edx, dword [ebp - 0xac]
push esi
lea ecx, [ebp - 0x4c]
call fcn.00403990
xor edi, edi
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xd4], edi
mov ebx, 7
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], di
mov byte [ebp - 4], 0xc
push 1
push 0x4b3a90
lea esi, [ebp - 0x30]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], di
call fcn.00406d50
mov edx, esi
push edx
lea esi, [ebp - 0xe0]
mov byte [ebp - 4], 0xd
call fcn.004062b0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x18], 8
jb 0x4160b6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004692b1
add esp, 4
lea ecx, [ebp - 0x4c]
push ecx
lea esi, [ebp - 0xe0]
call fcn.004062b0
cmp dword [ebp - 0xb0], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], di
lea esi, [ebp - 0x30]
jne 0x416107
push ebx
push str.success
call fcn.00406d50
mov edx, esi
push edx
lea esi, [ebp - 0xe0]
mov byte [ebp - 4], 0xe
call fcn.004062b0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x18], 8
jb 0x41613c
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x416134
push 5
push str.error
call fcn.00406d50
lea ecx, [ebp - 0x30]
push ecx
lea esi, [ebp - 0xe0]
mov byte [ebp - 4], 0xf
call fcn.004062b0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x18], 8
jb 0x41613c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004692b1
add esp, 4
mov ecx, dword [ebp - 0xb0]
lea edx, [ebp - 0xd0]
call fcn.004451b0
push eax
lea esi, [ebp - 0xe0]
mov byte [ebp - 4], 0x10
call fcn.004062b0
mov esi, 8
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0xb8], esi
jb 0x41617d
mov eax, dword [ebp - 0xcc]
push eax
call fcn.004692b1
add esp, 4
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0xd0]
call fcn.0043e6a0
add esp, 4
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
call fcn.00406430
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0xb8], esi
jb 0x4161bc
mov edx, dword [ebp - 0xcc]
push edx
call fcn.004692b1
add esp, 4
cmp byte [ebp + 0xc], 1
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xbc], edi
mov word [ebp - 0xcc], di
lea esi, [ebp - 0xd0]
jne 0x41620a
push 8
push str.ADD_FILE
call fcn.00406d50
mov byte [ebp - 4], 0x12
push 2
push 0x4b3ac8
lea esi, [ebp - 0x30]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], di
call fcn.00406d50
mov byte [ebp - 4], 0x13
jmp 0x416237
push 0xf
push str.UPDATE_FILE_ADD
call fcn.00406d50
mov byte [ebp - 4], 0x14
push 2
push 0x4b3ac8
lea esi, [ebp - 0x30]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], di
call fcn.00406d50
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x30]
call fcn.004444d0
mov esi, 8
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x416262
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004692b1
add esp, 4
cmp dword [ebp - 0xb8], esi
mov word [ebp - 0x2c], di
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
jb 0x416283
mov edx, dword [ebp - 0xcc]
push edx
call fcn.004692b1
add esp, 4
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x416299
mov eax, dword [ebp - 0x64]
push eax
call fcn.004692b1
add esp, 4
mov eax, dword [ebp - 0xdc]
cmp eax, edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], di
je 0x4162d8
mov ecx, dword [ebp - 0xf0]
mov edi, dword [ebp - 0xd8]
push ecx
call fcn.00408440
mov edx, dword [ebp - 0xdc]
add esp, 4
push edx
call fcn.004692b1
add esp, 4
mov ebx, 7
xor edi, edi
cmp dword [ebp - 0x34], esi
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xd4], edi
jb 0x4162fb
mov eax, dword [ebp - 0x48]
push eax
call fcn.004692b1
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x6c], esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], di
jb 0x41631a
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004692b1
add esp, 4
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xe4]
cmp eax, dword [edx + 8]
jb 0x416330
call fcn.00484029
add dword [ebp - 0xe4], 4
mov ebx, dword [ebp - 0xb4]
mov esi, dword [ebp - 0xe4]
jmp 0x415b70
cmp dword [ebp - 0x88], 8
jb 0x416369
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004692b1
add esp, 4
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.00483bf3
mov esp, ebp
pop ebp
ret 8