Function at 0x416740
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49fa95
mov eax, dword fs:[0]
push eax
sub esp, 0x540
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x538], eax
push ebx
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x550]
mov dword fs:[0], eax
mov edi, ecx
xor ecx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x158], 7
mov dword [esp + 0x154], ecx
mov word [esp + 0x144], cx
mov dword [esp + 0x558], ecx
mov eax, dword [edi + 0x28]
cmp eax, ecx
je 0x4167c2
push 0xffffffffffffffff
push ecx
add eax, 0x20
lea ecx, [esp + 0x148]
call fcn.00401b70
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + 8]
add eax, 4
cmp esi, dword [eax + 8]
mov dword [esp + 0x18], eax
jbe 0x4167d9
call fcn.00478a25
mov eax, dword [edi + 0x34]
cmp eax, 0xc
mov dword [esp + 0x24], esi
je 0x4167f4
cmp eax, 0xd
je 0x4167f4
mov dword [esp + 0x58], 0x418a90
jmp 0x416804
mov dword [esp + 0x58], 0x418b70
jmp 0x416804
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 0x2c]
mov ebx, dword [esi + 0xc]
add esi, 4
cmp dword [esi + 4], ebx
jbe 0x416817
call fcn.00478a25
cmp dword [esp + 0x18], esi
je 0x416822
call fcn.00478a25
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4171d2
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 8]
jb 0x41683c
call fcn.00478a25
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
mov ecx, 8
cmp dword [eax + 0x18], ecx
jb 0x416852
mov eax, dword [eax + 4]
jmp 0x416855
add eax, 4
cmp dword [esp + 0x158], ecx
mov ecx, dword [esp + 0x144]
jae 0x41686c
lea ecx, [esp + 0x144]
push eax
push ecx
lea eax, [esp + 0x164]
push 0x1f4
push eax
call fcn.00478ef6
xor ebx, ebx
add esp, 0x10
cmp dword [edi + 0x28], ebx
je 0x41692a
lea eax, [esp + 0x15c]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4168b2
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x160]
push ecx
lea esi, [esp + 0x84]
call fcn.00401c20
mov byte [esp + 0x558], 1
mov eax, dword [edi + 0x28]
push 0xffffffffffffffff
lea ecx, [eax + 0x20]
push ebx
mov eax, esi
call fcn.00401b70
mov byte [esp + 0x558], 0
cmp dword [esp + 0x94], 8
jb 0x416910
mov edx, dword [esp + 0x80]
push edx
call fcn.0045a870
add esp, 4
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
mov ecx, dword [0x4c8544]
cmp ecx, ebx
jne 0x416954
push 4
call fcn.0045a845
add esp, 4
cmp eax, ebx
je 0x41694a
mov dword [eax], vtable.CWinAUSystemUtil.0
jmp 0x41694c
xor eax, eax
mov ecx, eax
mov dword [0x4c8544], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
push 0x3e8
call edx
add edi, 0xc
push edi
mov ebx, 0x4a9c18
lea esi, [esp + 0xd4]
mov dword [esp + 0x68], edi
call fcn.00403760
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x558], 2
cmp eax, dword [ecx + 8]
jb 0x416998
call fcn.00478a25
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
cmp dword [eax + 0x18], 8
jb 0x4169aa
mov eax, dword [eax + 4]
jmp 0x4169ad
add eax, 4
push esi
mov ebx, eax
lea esi, [esp + 0xf0]
call fcn.00403760
add esp, 4
mov byte [esp + 0x558], 4
cmp dword [esp + 0xe8], 8
jb 0x4169e1
mov eax, dword [esp + 0xd4]
push eax
call fcn.0045a870
add esp, 4
xor eax, eax
push edi
mov ebx, 0x4a9c18
lea esi, [esp + 0x9c]
mov dword [esp + 0xec], 7
mov dword [esp + 0xe8], eax
mov word [esp + 0xd8], ax
call fcn.00403760
add esp, 4
mov esi, eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov byte [esp + 0x558], 5
cmp ecx, dword [edx + 8]
jb 0x416a2e
call fcn.00478a25
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
add eax, 0x1c
push eax
push esi
lea edi, [esp + 0xbc]
call fcn.00403f90
push eax
mov ebx, 0x4a9c18
lea esi, [esp + 0x114]
mov byte [esp + 0x564], 6
call fcn.00403760
add esp, 0xc
cmp dword [esp + 0xcc], 8
jb 0x416a7d
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0045a870
add esp, 4
xor ebx, ebx
mov esi, 7
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], bx
mov edi, 8
mov byte [esp + 0x558], 9
cmp dword [esp + 0xb0], edi
jb 0x416ac0
mov edx, dword [esp + 0x9c]
push edx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x104], edi
mov dword [esp + 0xb0], esi
mov esi, dword [esp + 0xf0]
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
jae 0x416aed
lea esi, [esp + 0xf0]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416b49
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x28], ebx
je 0x4170ec
mov ebx, ecx
mov eax, dword [ebx + 0x34]
cmp eax, 0xc
je 0x417055
cmp eax, 0xd
je 0x417055
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
cmp esi, dword [edx + 8]
jb 0x416b35
call fcn.00478a25
mov eax, dword [esi + 4]
cmp dword [eax + 0x18], edi
jb 0x416fcc
mov edx, dword [eax + 4]
jmp 0x416fcf
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x28]
fld qword [eax + 0x18]
mov dword [esp + 0x28], ebx
call fcn.00481236
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp esi, dword [ecx + 8]
jb 0x416b76
call fcn.00478a25
mov eax, dword [esp + 0x58]
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push edi
push eax
push ebx
push ecx
add edx, 0x1c
xor ecx, ecx
lea ebx, [esp + 0xfc]
call fcn.00403930
cmp eax, 3
jne 0x416e44
mov edx, dword [edi + 0x2c]
push edx
mov ecx, ebx
call fcn.004011e0
xor ebx, ebx
add esp, 4
mov byte [esp + 0x17], al
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov byte [esp + 0x558], 0xa
push 1
push 0x4a9464
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
call fcn.00401c20
mov eax, esi
push eax
lea esi, [esp + 0x4c]
mov byte [esp + 0x55c], 0xb
call fcn.00401650
mov byte [esp + 0x558], 0xa
cmp dword [esp + 0x44], 8
jb 0x416c17
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0045a870
add esp, 4
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
cmp edx, dword [eax + 8]
jb 0x416c29
call fcn.00478a25
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
push eax
lea esi, [esp + 0x4c]
call fcn.00401650
mov dword [esp + 0x13c], 7
mov dword [esp + 0x138], ebx
mov word [esp + 0x128], bx
mov edx, esi
push edx
lea ecx, [esp + 0xd4]
mov byte [esp + 0x55c], 0xc
call fcn.00431350
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x12c]
mov byte [esp + 0x560], 0xd
call fcn.00401b70
mov byte [esp + 0x558], 0xc
cmp dword [esp + 0xe8], 8
jb 0x416ca7
mov eax, dword [esp + 0xd4]
push eax
call fcn.0045a870
add esp, 4
cmp byte [esp + 0x17], bl
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], bx
lea esi, [esp + 0xd0]
jne 0x416d0d
push 0x11
push 0x4aa060
call fcn.00401c20
mov byte [esp + 0x558], 0xe
push 2
push 0x4a947c
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
call fcn.00401c20
mov byte [esp + 0x558], 0xf
jmp 0x416d4a
push 0xf
push str.SETDIFF_CORRECT
call fcn.00401c20
mov byte [esp + 0x558], 0x10
push 2
push 0x4a947c
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
call fcn.00401c20
mov byte [esp + 0x558], 0x11
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x128]
lea edx, [esp + 0x30]
call fcn.004323e0
add esp, 4
cmp dword [esp + 0x44], 8
jb 0x416d79
mov edx, dword [esp + 0x30]
push edx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0xe8], 8
mov word [esp + 0x30], bx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 7
jb 0x416da4
mov eax, dword [esp + 0xd4]
push eax
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x13c], 8
jb 0x416dbe
mov ecx, dword [esp + 0x128]
push ecx
call fcn.0045a870
add esp, 4
mov byte [esp + 0x558], 9
mov eax, dword [esp + 0x4c]
cmp eax, ebx
mov dword [esp + 0x13c], 7
mov dword [esp + 0x138], ebx
mov word [esp + 0x128], bx
je 0x416e2c
mov edi, dword [esp + 0x50]
cmp eax, edi
je 0x416e1f
lea esi, [eax + 0x18]
cmp dword [esi], 8
jb 0x416e04
mov eax, dword [esi - 0x14]
push eax
call fcn.0045a870
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], bx
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x416df3
mov eax, dword [esp + 0x4c]
push eax
call fcn.0045a870
mov edi, dword [esp + 0x20]
add esp, 4
cmp byte [esp + 0x17], bl
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
jne 0x416f16
jmp 0x416e46
xor ebx, ebx
cmp dword [esp + 0x104], 8
mov eax, dword [esp + 0xf0]
jae 0x416e5e
lea eax, [esp + 0xf0]
push eax
call fcn.00478f9d
add esp, 4
cmp dword [esp + 0x28], 2
jge 0x416efd
mov eax, dword [esp + 0x5c]
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x60]
mov edx, eax
and eax, 0x7fffffff
and edx, 0x80000000
mov dword [esp + 0x78], eax
fild qword [esp + 0x74]
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], ebx
fild qword [esp + 0x6c]
fchs
faddp st(1)
fstp qword [ecx + 0x18]
mov eax, dword [edi + 0x34]
cmp eax, 0xc
je 0x416ee8
cmp eax, 0xd
je 0x416ee8
mov eax, dword [edi + 0x28]
fld qword [eax + 0x18]
fadd qword [str.Apache_Error]
fstp qword [eax + 0x18]
mov esi, dword [edi + 0x28]
fld qword [esi + 0x18]
fdiv qword [esi + 0x10]
fmul qword [0x4ade38]
call fcn.00481200
add dword [esp + 0x28], 1
mov dword [esi + 0xc], eax
xor ebx, ebx
jmp 0x416b64
push ebx
push ebx
mov eax, edi
call fcn.00418ad0
add dword [esp + 0x28], 1
xor ebx, ebx
jmp 0x416b64
mov ecx, dword [esp + 0x64]
push ebx
push ecx
call fcn.00433390
mov eax, dword [edi + 0x28]
add esp, 8
cmp eax, ebx
je 0x416f16
mov byte [eax + 0x58], 1
cmp dword [esp + 0x120], 8
mov esi, dword [esp + 0x10c]
jae 0x416f2e
lea esi, [esp + 0x10c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416f42
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
jmp 0x416f8a
lea edx, [esp + 0x108]
push ebx
push edx
call fcn.00433390
mov eax, dword [0x4c8540]
add esp, 8
cmp eax, ebx
jne 0x416f79
push 4
call fcn.0045a845
add esp, 4
cmp eax, ebx
je 0x416f72
mov dword [eax], vtable.CWinAUFileUtil.0
jmp 0x416f74
xor eax, eax
mov dword [0x4c8540], eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [esp + 0x108]
push ecx
mov ecx, eax
call edx
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0xf0]
call fcn.004452b0
add esp, 4
test al, al
je 0x417165
cmp dword [esp + 0x104], 8
mov eax, dword [esp + 0xf0]
jae 0x416fc1
lea eax, [esp + 0xf0]
push eax
call fcn.00478f9d
jmp 0x4170e9
lea edx, [eax + 4]
xor edi, edi
mov eax, edx
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], edi
mov word [esp + 0xd4], di
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x416ff0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0xd8]
call fcn.00401c20
mov eax, dword [ebx + 0x2c]
push eax
mov ecx, esi
call fcn.00419220
test eax, eax
mov ecx, dword [ebx + 0x28]
fld qword [ecx + 0x18]
mov dword [esp + 0x64], eax
fild dword [esp + 0x64]
mov dword [esp + 0x68], edi
jge 0x417034
fadd qword [0x4ade30]
faddp st(1)
fstp qword [ecx + 0x18]
mov esi, dword [ebx + 0x28]
fld qword [esi + 0x18]
fdiv qword [esi + 0x10]
fmul qword [0x4ade38]
call fcn.00481200
mov dword [esi + 0xc], eax
jmp 0x4170d2
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
cmp esi, dword [edx + 8]
jb 0x417067
call fcn.00478a25
mov eax, dword [esi + 4]
cmp dword [eax + 0x18], edi
jb 0x417074
mov edx, dword [eax + 4]
jmp 0x417077
lea edx, [eax + 4]
xor edi, edi
mov eax, edx
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], edi
mov word [esp + 0xd4], di
lea esi, [eax + 2]
jmp 0x4170a0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4170a0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0xd8]
call fcn.00401c20
mov eax, dword [ebx + 0x2c]
push eax
mov ecx, esi
call fcn.00419220
push 0
push eax
mov eax, ebx
call fcn.00418ad0
cmp dword [esp + 0xe8], 8
jb 0x4170ec
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.0045a870
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
cmp eax, dword [edx + 8]
jb 0x4170fe
call fcn.00478a25
mov esi, 8
add dword [esp + 0x24], esi
cmp dword [esp + 0x120], esi
jb 0x417120
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.0045a870
add esp, 4
xor eax, eax
mov byte [esp + 0x558], al
cmp dword [esp + 0x104], esi
mov dword [esp + 0x120], 7
mov dword [esp + 0x11c], eax
mov word [esp + 0x10c], ax
jb 0x416800
mov edx, dword [esp + 0xf0]
push edx
call fcn.0045a870
add esp, 4
jmp 0x416800
mov eax, dword [edi + 0x28]
cmp eax, ebx
je 0x417170
mov byte [eax + 0x58], 1
push ebx
add edi, 0xc
push edi
call fcn.00433390
mov esi, 8
add esp, 8
cmp dword [esp + 0x120], esi
jb 0x41719b
mov eax, dword [esp + 0x10c]
push eax
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x104], esi
mov dword [esp + 0x120], 7
mov dword [esp + 0x11c], ebx
mov word [esp + 0x10c], bx
jb 0x4171ce
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.0045a870
add esp, 4
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x417209
mov edi, dword [edi + 0x34]
cmp edi, 0xc
je 0x4171ec
cmp edi, 0xd
je 0x4171ec
mov byte [eax + 0x5b], 1
jmp 0x417209
push 0
push 0
push 0x80c8
push 0
push str.Canon.IC.AutoUpdate.StartUpdateChecker
call dword [sym.imp.USER32.dll_FindWindowW]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x158], 8
jb 0x417223
mov edx, dword [esp + 0x144]
push edx
call fcn.0045a870
add esp, 4
mov ecx, dword [esp + 0x550]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.00478599
mov esp, ebp
pop ebp
ret